Make modules send their features (key count and whether they have pointer input) to the master upon enumeration.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user