wireless_service.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _WIRELESS_SERVICE_H
  2. #define _WIRELESS_SERVICE_H
  3. /* ___________________________________________________________________________________
  4. * HEAD(1B) | HID(0 or 5B) | MIC(0 or 32B) | CMD(TLV Format)
  5. * ___________________________________________________________________________________
  6. */
  7. /* TLV Format
  8. * __________________________________________________________
  9. * TYPE(1B) | LENGTH(1B) | VALUE(0 or nB)
  10. * __________________________________________________________
  11. */
  12. #define WIRELESS_HEAD_POS 0
  13. #define WIRELESS_PAYLOAD_POS 1
  14. #define WIRELESS_CMD_DATA_TYPE_POS 0
  15. #define WIRELESS_CMD_DATA_LENGTH_POS 1
  16. #define WIRELESS_CMD_DATA_VALUE_POS 2
  17. #define WIRELESS_HEADER_HID_BIT 0x01
  18. #define WIRELESS_HEADER_AUDIO_BIT 0x02
  19. #define WIRELESS_HEADER_CTRL_BIT 0x04
  20. #define WIRELESS_DATA_LENGTH_HID WIRELESS_PACKET_LEN_HID
  21. #define WIRELESS_DATA_LENGTH_AUDIO WIRELESS_PACKET_LEN_AUDIO
  22. void wireless_service_init(void);
  23. void wireless_service_proc(void);
  24. #endif // _WIRELESS_SERVICE_H