Make modules send their features (key count and whether they have pointer input) to the master upon enumeration.
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
} uhk_module_id_t;
|
||||
|
||||
typedef enum {
|
||||
UhkModulePhase_RequestModuleFeatures,
|
||||
UhkModulePhase_ReceiveModuleFeatures,
|
||||
UhkModulePhase_ProcessModuleFeatures,
|
||||
UhkModulePhase_RequestKeyStates,
|
||||
UhkModulePhase_ReceiveKeystates,
|
||||
UhkModulePhase_ProcessKeystates,
|
||||
@@ -39,6 +42,7 @@
|
||||
i2c_message_t rxMessage;
|
||||
uint8_t firmwareI2cAddress;
|
||||
uint8_t bootloaderI2cAddress;
|
||||
uhk_module_features_t features;
|
||||
} uhk_module_state_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user