Commit Graph

104 Commits

Author SHA1 Message Date
hathach
f27486e19a add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new tuh_itf_info_t 2023-03-22 10:00:42 +07:00
hathach
d22fc550c7 change meaning of CFG_TUH_HID to total number of HID interfaces supported.
- previously CFG_TUH_HID is max number of interfaces per device which is
rather limited and consume more resources than needed.
- change hid host instance in API to index
2023-03-21 21:04:06 +07:00
hathach
878f2b54fe relax hid host enumeration, allow set protocol to be stalled 2023-03-21 18:12:55 +07:00
James Smith
296ce528fc Updated host hid_controller example to demo tuh_hid_send_report 2023-03-13 16:31:25 +07:00
James Smith
f6774d5611 Implemented tuh_hid_send_report 2023-03-13 16:31:25 +07:00
hathach
7004914d8c fix hid host incorrect edpt release if failed to transmit
add CDC_CONTROL_LINE_STATE_DTR/RTS, TUSB_INDEX_INVALID enum
2022-12-20 12:06:59 +07:00
hathach
f62f973956 minor rename 2022-12-16 17:08:37 +07:00
hathach
a0ef489890 fix all warnings with host rp2040 2022-06-27 17:11:24 +07:00
hathach
e6e3dfedc8 hid example work well 2022-04-01 16:34:36 +07:00
hathach
821be65b03 rename usbh_edpt_open() to tuh_edpt_open() 2022-03-19 14:59:31 +07:00
hathach
4795cca04a add parse config descriptor to example
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
hathach
ba1185bf28 implement tuh_edpt_xfer() for non-control 2022-03-18 22:22:21 +07:00
hathach
8750e3b577 move daddr into xfer struct 2022-03-18 16:39:35 +07:00
hathach
f89ff939d8 rename user_arg to user_data 2022-03-17 22:37:51 +07:00
hathach
55428d7dd2 rename tuh_control_xfer_t to tuh_xfer_t 2022-03-17 20:52:16 +07:00
hathach
8aedb2ff37 slightly change the signature of tuh_control_xfer 2022-03-17 17:25:53 +07:00
hathach
66942b814b change return type of callback to void 2022-03-17 16:55:29 +07:00
hathach
deab8c276a remove const in xfer callback 2022-03-17 16:53:54 +07:00
hathach
6df420f7f3 move result into transfer struct 2022-03-17 16:24:43 +07:00
hathach
68bfd048a5 change tuh_control_xfer_t struct 2022-03-17 12:53:52 +07:00
hathach
98d4ed0584 update hid host to use new control xfer for set config 2022-03-16 18:44:41 +07:00
hathach
2929afe2fa add synchronous (blocking) support for usbh control transfer
- add synchronous version of all get descriptor API
- update bare example to use sync API for string descriptor
- change order of index, language_id in tuh_descriptor_get_string() to
match similar API of libusb
- add index to tuh_descriptor_get_hid_report()
2022-03-13 17:45:46 +07:00
hathach
ec28593ce5 update hid,msc to new usbh control API 2022-03-11 22:13:57 +07:00
hathach
f920e1c171 rename host descriptor function 2022-03-09 11:21:13 +07:00
hathach
db9d97c947 add tuh_descriptor_hid_report_get() 2022-03-09 11:03:29 +07:00
Ha Thach
7c627f58d7 Merge pull request #1343 from Daft-Freak/patch-1
Open OUT endpoint for HID host
2022-02-28 20:00:40 +07:00
hathach
31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00
Charlie Birks
83b638f230 Open OUT endpoint for HID host 2022-02-23 13:03:20 +00:00
hathach
5af989384b remove ep descriptor wMaxPacketSize bitfield due to endian issue 2021-10-24 13:11:21 +07:00
Charlie Birks
aa97b419b2 Handle HID devices with OUT endpoint listed first
This happens on my PowerA wired Switch pro controller
2021-10-04 11:43:12 +01:00
hathach
3c0c051df1 add tuh_vid_pid_get()
complete Sony PS4 dualshock controller example
2021-08-24 19:10:23 +07:00
hathach
353c070d00 exclude dev0 from usbh devices pool 2021-08-24 01:06:05 +07:00
hathach
3309425211 sepearate CFG_TUH_DEVICE_MAX and CFG_TUH_HUB
separate dev0 from _usbh_devices pool to save sram
2021-08-23 19:56:53 +07:00
hathach
6a16f6ccdd rename CFG_TUSB_HOST_DEVICE_MAX to CFG_TUH_DEVICE_MAX 2021-08-23 11:01:40 +07:00
hathach
800f85329e add tuh_hid_receive_report() for applicaiton to explicitly request report 2021-08-23 11:00:21 +07:00
hathach
22a5b1608c change host driver open return type to bool
the descriptor len used by driver will be calculated by usbh
2021-08-20 19:31:38 +07:00
hathach
62f2efbe8c hid host skip get report descriptor if too large instead of assert 2021-08-20 18:26:56 +07:00
hathach
c172caa288 clean up 2021-06-29 00:03:34 +07:00
hathach
efc12ae7d4 fix SET_PROTOCOl, update hid host behavior for default boot interface 2021-06-28 23:57:57 +07:00
hathach
c99b70c08c force boot protocol for keyboard/mouse 2021-06-28 17:39:57 +07:00
hathach
5811122cfd change usbh open driver to have max_len and return driver len 2021-06-28 17:39:57 +07:00
Ha Thach
6e939de9d6 Merge pull request #891 from hathach/host-rp2040-double-buffer
RP2040 double buffer
2021-06-28 17:39:09 +07:00
Niklas Hauser
264dc35b95 Fix typo in TUH configuration define 2021-06-21 05:32:43 +02:00
hathach
dfe5a727c6 log clean up 2021-06-11 18:54:09 +07:00
hathach
572d986a02 improve usbh 2021-06-11 17:14:22 +07:00
hathach
c7f51cde40 implement usbh_edpt_busy (WIP), remove hcd_edpt_busy 2021-06-10 17:19:21 +07:00
hathach
13cb016042 add usbh_classdriver.h 2021-06-10 16:48:20 +07:00
hathach
9ad6fadf6a more include clean up 2021-05-27 18:34:07 +07:00
hathach
3654d96e07 only invoke tuh_msc_umount_cb() if needed 2021-05-23 14:11:12 +07:00
hathach
a1dab1611b get protocol when enum with hid boot interface 2021-05-22 23:30:41 +07:00