#define CMD_COORDINATOR_ADDR_INFO 0
#define CMD_COORDINATOR_DISCOVERED_DEVICES 1
#define CMD_COORDINATOR_BONDED_DEVICES 2
#define CMD_COORDINATOR_CLEAR_ALL_BONDS 3
#define CMD_COORDINATOR_BOND_NODE 4
#define CMD_COORDINATOR_REMOVE_BOND 5
#define CMD_COORDINATOR_DISCOVERY 7
#define CMD_COORDINATOR_SET_DPAPARAMS 8
#define CMD_COORDINATOR_SET_HOPS 9
#define CMD_COORDINATOR_BACKUP 11
#define CMD_COORDINATOR_RESTORE 12
#define CMD_COORDINATOR_AUTHORIZE_BOND 13
#define CMD_COORDINATOR_SMART_CONNECT 18
#define CMD_COORDINATOR_SET_MID 19
#define CMD_NODE_READ 0
#define CMD_NODE_REMOVE_BOND 1
#define CMD_NODE_BACKUP 6
#define CMD_NODE_RESTORE 7
#define CMD_NODE_VALIDATE_BONDS 8
#define CMD_OS_READ 0
#define CMD_OS_RESET 1
#define CMD_OS_READ_CFG 2
#define CMD_OS_RFPGM 3
#define CMD_OS_SLEEP 4
#define CMD_OS_BATCH 5
#define CMD_OS_SET_SECURITY 6
#define CMD_OS_INDICATE 7
#define CMD_OS_RESTART 8
#define CMD_OS_WRITE_CFG_BYTE 9
#define CMD_OS_LOAD_CODE 10
#define CMD_OS_SELECTIVE_BATCH 11
#define CMD_OS_TEST_RF_SIGNAL 12
#define CMD_OS_FACTORY_SETTINGS 13
#define CMD_OS_WRITE_CFG 15
#define CMD_RAM_READ 0
#define CMD_RAM_WRITE 1
#define CMD_EEPROM_READ CMD_RAM_READ
#define CMD_EEPROM_WRITE CMD_RAM_WRITE
#define CMD_EEEPROM_XREAD ( CMD_RAM_READ + 2 )
#define CMD_EEEPROM_XWRITE ( CMD_RAM_WRITE + 2 )
#define CMD_LED_SET_OFF 0
#define CMD_LED_SET_ON 1
#define CMD_LED_PULSE 3
#define CMD_LED_FLASHING 4
#define CMD_IO_DIRECTION 0
#define CMD_IO_SET 1
#define CMD_IO_GET 2
#define CMD_THERMOMETER_READ 0
#define CMD_UART_OPEN 0
#define CMD_UART_CLOSE 1
#define CMD_UART_WRITE_READ 2
#define CMD_UART_CLEAR_WRITE_READ 3
#define CMD_FRC_SEND 0
#define CMD_FRC_EXTRARESULT 1
#define CMD_FRC_SEND_SELECTIVE 2
#define CMD_FRC_SET_PARAMS 3
#define CMD_GET_PER_INFO 0x3f