X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Scan%2FUARTConnect%2Fconnect_scan.h;h=cdd7ed0ae6ff5da84069e7bcdd5ecd19623db3d2;hb=7e68e81f4757ffff2261ab4a887d4114318aa5b6;hp=1b752e6b4006a0850ee2e06f31b90118e65fb853;hpb=ecd9923926af0f500e8f65e665687b7d99219118;p=kiibohd-controller.git diff --git a/Scan/UARTConnect/connect_scan.h b/Scan/UARTConnect/connect_scan.h index 1b752e6..cdd7ed0 100644 --- a/Scan/UARTConnect/connect_scan.h +++ b/Scan/UARTConnect/connect_scan.h @@ -41,6 +41,7 @@ typedef enum Command { RemoteInput, // Remote command to send to a given node's debug cli Command_TOP, // Enum bounds + Command_SYN = 0x16, // Reserved for error handling } Command; // UART Rx/Tx Status @@ -118,11 +119,14 @@ typedef struct AnimationCommand { // Remote Capability Command // Initiated by the master to trigger a capability on a given node // RemoteOutput is enabled while capability is activated +// Set id to 255 if command should be sent in all directions typedef struct RemoteCapabilityCommand { Command command; uint8_t id; - Capability capability; - uint8_t numArgs; + uint8_t capabilityIndex; + uint8_t state; + uint8_t stateType; + uint8_t numArgs; // # of bytes, args may be larger than 1 byte uint8_t firstArg[0]; } RemoteCapabilityCommand; @@ -161,4 +165,5 @@ void Connect_setup( uint8_t master ); void Connect_scan(); void Connect_send_ScanCode( uint8_t id, TriggerGuide *scanCodeStateList, uint8_t numScanCodes ); +void Connect_send_RemoteCapability( uint8_t id, uint8_t capabilityIndex, uint8_t state, uint8_t stateType, uint8_t numArgs, uint8_t *args );