usb_hid.h 634 B

12345678910111213141516171819202122232425
  1. #ifndef _USB_HID_H
  2. #define _USB_HID_H
  3. typedef struct _udh_t {
  4. epcb_t *int_in;
  5. epcb_t *int_out;
  6. bool valid;
  7. } udh_t;
  8. void usb_hid_init(void);
  9. void usb_hid_deinit(void);
  10. bool usb_hid_buffer_push(uint8_t *buf, uint32_t size);
  11. bool usb_hid_buffer_push_check(void);
  12. void udh_init(void);
  13. void usb_int_ep_reset(void);
  14. void ude_hid_setvalid(bool valid);
  15. void usb_hid_receive_callback(uint8_t *buf, uint32_t size);
  16. void usb_hid_send_prepare(uint8_t *buf, uint32_t *size);
  17. void usb_hid_send_kick(void);
  18. void usb_hid_suspend_callback(bool suspend);
  19. void usb_sof_hid_isr(void);
  20. void usb_hid_process(void);
  21. #endif // _USB_HID_H