summaryrefslogtreecommitdiff
path: root/src/class/hid/hid_host.c
AgeCommit message (Collapse)Author
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-06-15zero-extend usage page before copying shorter payloaddxbjavid
2026-06-12bound item size to remaining length in hid report descriptor parserdxbjavid
2026-05-04add default implementation for tuh_hid_report_received_cb()hathach
2026-03-18Update HID host to correctly handle protocol mode initialization and ↵hathach
CONFIG_GET_REPORT_DESC response
2026-03-17CFG_TUH_HID_SET_PROTOCOL_ON_ENUM option to skip set_protocol on enum, ↵hathach
default is 1
2025-12-11refactor usbh_class_driver_t's open() to return number of driver len instead ↵hathach
of bool. help to simplify parsing configuration
2025-11-20Revert "add find_hid_desc"hathach
support rare case where hid descriptor is after endpoint descriptor
2025-11-15add find_hid_descdin
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-09-12Fix some IAR warningsHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-07-09Add spec reference for 4-byte HID item sizeHa Thach
2025-07-09fix HID parser variable size handlingHa Thach
2025-07-08Fix HID descriptor parser size handlingHa Thach
2025-05-13fix warnings, minor clean uphathach
2025-01-15src/class/hid/hid_host.c: fix logging calls for epbufDan Halbert
2024-11-27minor clean uphathach
2024-11-26add TUH_EPBUF_DEF for hid hosthathach
2024-07-18fix some clang compiler warningsgraham sanderson
2024-04-10Adding tuh_hid_get_report(...) to hid_host.hLuke A
This allows USB host functionality to call HID_REQ_CONTROL_GET_REPORT on the IN Endpoint, and read the report buffer in the callback.
2024-03-31fix hid close not clear datahathach
2024-03-22implement tuh_init()hathach
change usbh driver init() return type from void to bool
2024-03-22adding deinit() stub for usbh/hcd class driverhathach
add TUSB_VERSION_BUILD, also add TUSB_VERSION_NUMBER
2024-03-01add tuh_hid_receive_abort() APIhathach
2024-03-01reformat code hid_host.chathach
- fix ceedling with ruby 3.1 - allow overwrite CMAKE_C_COMPILER/CMAKE_CXX_COMPILER from command line
2024-01-30fix tuh_hid_mounted() similar to #2437IngHK
2023-11-24minor updatehathach
2023-11-24add tuh_hid_set_default_protocol() to set default USB host HID protocolXudong Zheng
2023-08-15more minor clean uphathach
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-02default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to ↵hathach
selectively disable usbd/usbh or driver log
2023-05-16EHCI: fix xfer failed with disconnected device as stalledhathach
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if not defined - change QHD_MAX for EHCI, should be user configurable and more optimized in the future
2023-05-16correct EHCI reporting failed xfer (instead of stalled) when device is unpluggedhathach
2023-04-06implement tuh_hid_receive_ready() and tuh_hid_send_ready()hathach
2023-03-24separate CFG_TUSB_MEM_SECTION and CFG_TUSB_MEM_ALIGN tohathach
- CFG_TUD_MEM_SECTION and CFG_TUD_MEM_ALIGN - CFG_TUH_MEM_SECTION and CFG_TUH_MEM_ALIGN - fix missing mem section and align for host
2023-03-22add tuh_hid_itf_get_info() and change tuh_cdc_itf_get_info() to use new ↵hathach
tuh_itf_info_t
2023-03-21change meaning of CFG_TUH_HID to total number of HID interfaces supported.hathach
- 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-21relax hid host enumeration, allow set protocol to be stalledhathach
2023-03-13Updated host hid_controller example to demo tuh_hid_send_reportJames Smith
2023-03-13Implemented tuh_hid_send_reportJames Smith
2022-12-20fix hid host incorrect edpt release if failed to transmithathach
add CDC_CONTROL_LINE_STATE_DTR/RTS, TUSB_INDEX_INVALID enum
2022-12-16minor renamehathach
2022-06-27fix all warnings with host rp2040hathach
2022-04-01hid example work wellhathach
2022-03-19rename usbh_edpt_open() to tuh_edpt_open()hathach
2022-03-19add parse config descriptor to examplehathach
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-18implement tuh_edpt_xfer() for non-controlhathach
2022-03-18move daddr into xfer structhathach
2022-03-17rename user_arg to user_datahathach
2022-03-17rename tuh_control_xfer_t to tuh_xfer_thathach
2022-03-17slightly change the signature of tuh_control_xferhathach