Use hex numbers as the values of UsbCommandId_*

This commit is contained in:
László Monda
2017-11-23 04:18:37 +01:00
parent b68e8a736e
commit ab7e25692a

View File

@@ -13,21 +13,21 @@
// Typedefs:
typedef enum {
UsbCommandId_GetProperty = 0,
UsbCommandId_Reenumerate = 1,
UsbCommandId_SetTestLed = 2,
UsbCommandId_WriteUserConfig = 8,
UsbCommandId_ApplyConfig = 9,
UsbCommandId_SetLedPwmBrightness = 10,
UsbCommandId_GetAdcValue = 11,
UsbCommandId_LaunchEepromTransferLegacy = 12,
UsbCommandId_ReadHardwareConfig = 13,
UsbCommandId_WriteHardwareConfig = 14,
UsbCommandId_ReadUserConfig = 15,
UsbCommandId_GetKeyboardState = 16,
UsbCommandId_GetDebugBuffer = 17,
UsbCommandId_JumpToModuleBootloader = 18,
UsbCommandId_SendKbootCommandToModule = 19,
UsbCommandId_GetProperty = 0x00,
UsbCommandId_Reenumerate = 0x01,
UsbCommandId_SetTestLed = 0x02,
UsbCommandId_WriteUserConfig = 0x08,
UsbCommandId_ApplyConfig = 0x09,
UsbCommandId_SetLedPwmBrightness = 0x0A,
UsbCommandId_GetAdcValue = 0x0B,
UsbCommandId_LaunchEepromTransferLegacy = 0x0C,
UsbCommandId_ReadHardwareConfig = 0x0D,
UsbCommandId_WriteHardwareConfig = 0x0E,
UsbCommandId_ReadUserConfig = 0x0F,
UsbCommandId_GetKeyboardState = 0x10,
UsbCommandId_GetDebugBuffer = 0x11,
UsbCommandId_JumpToModuleBootloader = 0x12,
UsbCommandId_SendKbootCommandToModule = 0x13,
} usb_command_id_t;
typedef enum {