27#ifndef _TUSB_HID_HOST_H_
28#define _TUSB_HID_HOST_H_
41#ifndef CFG_TUH_HID_EPIN_BUFSIZE
42#define CFG_TUH_HID_EPIN_BUFSIZE 64
45#ifndef CFG_TUH_HID_EPOUT_BUFSIZE
46#define CFG_TUH_HID_EPOUT_BUFSIZE 64
66uint8_t tuh_hid_itf_get_count(uint8_t dev_addr);
69uint8_t tuh_hid_itf_get_total_count(
void);
72#define tuh_hid_instance_count tuh_hid_itf_get_count
75bool tuh_hid_itf_get_info(uint8_t daddr, uint8_t idx,
tuh_itf_info_t* itf_info);
79uint8_t tuh_hid_itf_get_index(uint8_t daddr, uint8_t itf_num);
82uint8_t tuh_hid_interface_protocol(uint8_t dev_addr, uint8_t idx);
85bool tuh_hid_mounted(uint8_t dev_addr, uint8_t idx);
89uint8_t tuh_hid_parse_report_descriptor(
tuh_hid_report_info_t* reports_info_arr, uint8_t arr_count, uint8_t
const* desc_report, uint16_t desc_len) TU_ATTR_UNUSED;
98uint8_t tuh_hid_get_protocol(uint8_t dev_addr, uint8_t idx);
102bool tuh_hid_set_protocol(uint8_t dev_addr, uint8_t idx, uint8_t protocol);
106bool tuh_hid_set_report(uint8_t dev_addr, uint8_t idx, uint8_t report_id, uint8_t report_type,
void* report, uint16_t len);
113bool tuh_hid_receive_ready(uint8_t dev_addr, uint8_t idx);
118bool tuh_hid_receive_report(uint8_t dev_addr, uint8_t idx);
121bool tuh_hid_send_ready(uint8_t dev_addr, uint8_t idx);
125bool tuh_hid_send_report(uint8_t dev_addr, uint8_t idx, uint8_t report_id,
const void* report, uint16_t len);
136TU_ATTR_WEAK
void tuh_hid_mount_cb(uint8_t dev_addr, uint8_t idx, uint8_t
const* report_desc, uint16_t desc_len);
139TU_ATTR_WEAK
void tuh_hid_umount_cb(uint8_t dev_addr, uint8_t idx);
143void tuh_hid_report_received_cb(uint8_t dev_addr, uint8_t idx, uint8_t
const* report, uint16_t len);
146TU_ATTR_WEAK
void tuh_hid_report_sent_cb(uint8_t dev_addr, uint8_t idx, uint8_t
const* report, uint16_t len);
150TU_ATTR_WEAK
void tuh_hid_set_report_complete_cb(uint8_t dev_addr, uint8_t idx, uint8_t report_id, uint8_t report_type, uint16_t len);
153TU_ATTR_WEAK
void tuh_hid_set_protocol_complete_cb(uint8_t dev_addr, uint8_t idx, uint8_t protocol);
158void hidh_init (
void);
159bool hidh_open (uint8_t rhport, uint8_t dev_addr,
tusb_desc_interface_t const *desc_itf, uint16_t max_len);
160bool hidh_set_config (uint8_t dev_addr, uint8_t itf_num);
161bool hidh_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint32_t xferred_bytes);
162void hidh_close (uint8_t dev_addr);
AUDIO Channel Cluster Descriptor (4.1)
Definition audio.h:647