Make modules send their features (key count and whether they have pointer input) to the master upon enumeration.

This commit is contained in:
László Monda
2017-09-30 00:08:28 +02:00
parent e7a1d27cde
commit 04047eb128
7 changed files with 59 additions and 5 deletions

View File

@@ -9,12 +9,22 @@
// Typedefs:
typedef enum {
SlaveCommand_RequestProperty,
SlaveCommand_RequestKeyStates,
SlaveCommand_SetTestLed,
SlaveCommand_SetLedPwmBrightness,
SlaveCommand_JumpToBootloader,
} slave_command_t;
typedef enum {
SlaveProperty_Features,
} slave_property_t;
typedef struct {
uint8_t keyCount;
bool hasPointer;
} uhk_module_features_t;
typedef struct {
uint8_t length;
uint16_t crc;