wireless_cmd.h 710 B

123456789101112131415161718192021222324
  1. #ifndef _WIRELESS_CMD_H
  2. #define _WIRELESS_CMD_H
  3. #define CTRL_CMD_PACKET_NUM 5
  4. #define CTRL_CMD_PACKET_SIZE 16
  5. typedef enum {
  6. WIRELESS_CTRL_CMD_CODE_MIC_DISALLOW,
  7. WIRELESS_CTRL_CMD_CODE_MIC_ALLOW,
  8. WIRELESS_CTRL_CMD_CODE_USB_CONNECTED,
  9. WIRELESS_CTRL_CMD_CODE_USB_DISCONNECTED,
  10. WIRELESS_CTRL_CMD_CODE_CAPS_LOCK_CHANGE,
  11. WIRELESS_CTRL_CMD_CODE_TEST = 0xff,
  12. } WIRELESS_CTRL_CMD_CODE_TYPEDEF;
  13. uint8_t wireless_cmd_get_buf(uint8_t *buf);
  14. void wireless_cmd_send_ctrl_command_asyn(uint8_t type, uint8_t length, uint8_t *value);
  15. void wireless_user_event_handle(uint8_t *buf, uint32_t size);
  16. void wireless_cmd_init(void);
  17. #endif // _WIRELESS_CMD_H