update hid host get/set protocol to match device
This commit is contained in:
@@ -74,16 +74,16 @@ uint8_t tuh_n_hid_instance_count(uint8_t dev_addr);
|
||||
// Check if HID instance is mounted
|
||||
bool tuh_n_hid_n_mounted(uint8_t dev_addr, uint8_t instance);
|
||||
|
||||
// Get boot interface protocol check out hid_protocol_type_t for possible value
|
||||
// Get interface supported protocol (bInterfaceProtocol) check out hid_interface_protocol_enum_t for possible values
|
||||
uint8_t tuh_n_hid_n_interface_protocol(uint8_t dev_addr, uint8_t instance);
|
||||
|
||||
// Get current protocol mode: Boot (true) or Report (false)
|
||||
// By HID spec, device will be initialized in Report mode
|
||||
// Get current active protocol: HID_PROTOCOL_BOOT (0) or HID_PROTOCOL_REPORT (1)
|
||||
// Note: as HID spec, device will be initialized in Report mode
|
||||
bool tuh_n_hid_n_get_protocol(uint8_t dev_addr, uint8_t instance);
|
||||
|
||||
// Set protocol to Boot or Report mode.
|
||||
// Set protocol to HID_PROTOCOL_BOOT (0) or HID_PROTOCOL_REPORT (1)
|
||||
// This function is only supported by Boot interface tuh_n_hid_n_boot_interface()
|
||||
bool tuh_n_hid_n_set_protocol(uint8_t dev_addr, uint8_t instance, bool boot_mode);
|
||||
bool tuh_n_hid_n_set_protocol(uint8_t dev_addr, uint8_t instance, uint8_t protocol);
|
||||
|
||||
// Parse report descriptor into array of report_info struct and return number of reports.
|
||||
// If return 0, this is a ingle report, otherwise it is composite report with 1st byte as ID.
|
||||
|
||||
Reference in New Issue
Block a user