hid_service.h 544 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #define HID_SVC_REPORT_MAP_MAX_LEN (120)
  5. #define HID_SVC_REPORT_MAX_LEN (9)
  6. #define HID_SVC_BOOT_KEYBOARD_INPUT_REPORT_MAX_LEN (8)
  7. #define HID_SVC_REPORT_REF_LEN (2)
  8. #define HID_SVC_INFO_LEN (4)
  9. #define HID_SVC_CONTROL_POINT_LEN (1)
  10. void hid_svc_start();
  11. void hid_svc_stop();
  12. bool hid_svc_is_started();
  13. bool hid_svc_update_report_map(uint8_t* data, uint16_t len);
  14. bool hid_svc_update_input_report(uint8_t* data, uint16_t len);
  15. bool hid_svc_update_info(uint8_t* data, uint16_t len);