42 #ifndef _TUSB_HID_HOST_H_
43 #define _TUSB_HID_HOST_H_
63 extern uint8_t
const hid_keycode_to_ascii_tbl[2][128];
202 void tusbh_hid_generic_isr(uint8_t dev_addr, tusb_event_t event);
210 #ifdef _TINY_USB_SOURCE_FILE_
214 uint16_t report_size;
215 uint8_t interface_number;
216 }hidh_interface_info_t;
218 void hidh_init(
void);
220 void hidh_isr(
pipe_handle_t pipe_hdl, tusb_event_t event, uint32_t xferred_bytes);
221 void hidh_close(uint8_t dev_addr);
USB Standard Interface Descriptor (section 9.6.1 table 9-12)
void tusbh_hid_keyboard_isr(uint8_t dev_addr, tusb_event_t event)
Callback function that is invoked when an transferring event occurred.
#define ATTR_WARN_UNUSED_RESULT
The warn_unused_result attribute causes a warning to be emitted if a caller of the function with this...
void tusbh_hid_mouse_mounted_cb(uint8_t dev_addr)
Callback function that will be invoked when a device with Mouse interface is mounted.
tusb_error_t tusbh_hid_keyboard_get_report(uint8_t dev_addr, void *p_report)
Perform a get report from Keyboard interface.
void tusbh_hid_keyboard_mounted_cb(uint8_t dev_addr)
Callback function that will be invoked when a device with Keyboard interface is mounted.
#define ATTR_PURE
Many functions have no effects except the return value and their return value depends only on the par...
void tusbh_hid_keyboard_unmounted_cb(uint8_t dev_addr)
Callback function that will be invoked when a device with Keyboard interface is unmounted.
enum tusb_interface_status_ tusb_interface_status_t
bool tusbh_hid_keyboard_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT
Check if device supports Keyboard interface or not.
bool tusbh_hid_mouse_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT
Check if device supports Mouse interface or not.
bool tusbh_hid_mouse_is_busy(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT
Check if the interface is currently busy or not.
tusb_error_t
Error Code returned.
tusb_error_t tusbh_hid_mouse_get_report(uint8_t dev_addr, void *p_report)
Perform a get report from Mouse interface.
bool tusbh_hid_keyboard_is_busy(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT
Check if the interface is currently busy or not.
void tusbh_hid_mouse_unmounted_cb(uint8_t dev_addr)
Callback function that will be invoked when a device with Mouse interface is unmounted.
void tusbh_hid_mouse_isr(uint8_t dev_addr, tusb_event_t event)
Callback function that is invoked when an transferring event occurred.