summaryrefslogtreecommitdiff
path: root/src/class/cdc/cdc_host.h
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-03-12refactor(config): separate endpoint buffer sizes into RX and TX definitions ↵hathach
for clarity and flexibility
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-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-06-20cdch clean up and refactor, add explicit sync() APIhathach
2025-06-19rename tuh_cdc_get_local_line_coding to tuh_cdc_get_line_coding_localhathach
add tuh_cdc_get_control_line_state_local() implement tuh_cdc_get/set_dtr/rts() as inline
2025-06-16Merge branch 'master' into fork/IngHK/cdch_upgradehathach
# Conflicts: # README.rst # docs/reference/index.rst # src/class/cdc/cdc_device.c # src/class/cdc/cdc_host.c
2025-02-24add tuh_midi_mount_cb_t struct for tuh_midi_mount_cb()hathach
change tuh_midi_rx/tx_cb() to have xferred_bytes rename tuh_midi_get_num_rx/tx_cables() to tuh_midi_get_rx/tx_cable_count() use default empty callback instead of weak null to be compatible with keil compiler
2024-11-26add TUH_EPBUF_DEF for cdc hosthathach
2024-04-04Merge remote-tracking branch 'remotes/hathach/master' into cdch_upgradeIngHK
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-10added line control function using cdc_line_control_state_tIngHK
2024-02-24fixed CFG_TUH_CDC_LINE_CONTROL_ON_ENUM handling. only set if defined. value ↵IngHK
0 is also valid
2024-01-19- add new API tuh_cdc_set_data_format()hathach
- add typedef for cdc enum
2023-11-22fix typo in cdc line coding enumhathach
2023-04-28more update to host serial APIhathach
2023-04-28allow call tuh cdc with blocking (callback = NULL)hathach
- tuh_cdc_set_control_line_state() - tuh_cdc_set_baudrate() - tuh_cdc_set_line_coding()
2023-04-28improve host serial drivershathach
- tuh_control_xfer() update xfer result to user_data if complete callback = NULL (sync/blocking) - refactor host serial driver for acm/ftdi/cp210x
2023-04-27add tuh_cdc_set_baudrate()hathach
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-21add tuh_set_interfacehathach
2023-03-17fix trailing space and new linehathach
temporarily disable codespell
2022-12-24add tuh_cdc_peek()hathach
2022-12-22add tuh_cdc_get_local_line_coding()hathach
2022-12-22cdc host, add set line coding APIhathach
2022-12-22minor clean uphathach
2022-12-21add tuh_cdc_write_clear, rename read_flush() to read_clear()hathach
2022-12-21add tuh_cdc_tx_complete_cb() callbackhathach
2022-12-21add more host cdc APIhathach
tuh_cdc_write_available(), tuh_cdc_read_flush(), tuh_cdc_rx_cb() callback
2022-12-21finalizing cdc host, has a working read/writehathach
TODO: first character seems not to get echoed. set control line state seems to failed with LOG < 2
2022-12-16add common EPSIZE for bulk/iso in full and highspeedhathach
adding cdc host fifo tx/rx
2022-12-16minor renamehathach
2022-12-16adding tuh_cdc_mount_cb/tuh_cdc_umount_cbhathach
start adding cdc_app.c to example
2022-03-17rename tuh_control_xfer_t to tuh_xfer_thathach
2022-03-11rework usbh control xferhathach
- change API of tuh_control_xfer and its callback - rename tuh_control_complete_cb_t to tuh_control_xfer_cb_t - add user argument to control callback - migrate usbh and hub
2021-08-20change host driver open return type to boolhathach
the descriptor len used by driver will be calculated by usbh
2021-06-28change usbh open driver to have max_len and return driver lenhathach
2021-05-27more include clean uphathach
2020-11-02remove legacy blocking usbh_control_xfer()hathach
reworking cdc host driver
2020-09-06change xfer_cb return type from void to boolhathach
2020-09-05defer xfer_isr to xfer_cbhathach
2020-01-15Normalize line endingsNathan Conrad
2019-05-14update license year to 2019hathach
2019-03-27cleanup, remove the use of _TINY_USB_SOURCE_FILE_hathach
2019-03-20migrate license from BSD 3 clause to MIThathach
2018-12-10usbh name changehathach
2018-12-10host msc built but got hardfault with inquiry commandhathach
2018-12-10add tuh_mount_cb/tuh_umount_cbhathach