Chapter 2. API Reference
struct tinyusb_config_cdcacm_t
Configuration structure for CDC-ACM.
Public Members
tinyusb_usbdev_t
usb_dev
Usb device to set up
tinyusb_cdcacm_itf_t
CDC port
size_t rx_unread_buf_sz
Amount of data that can be passed to the AMC at once
tusb_cdcacm_callback_t
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
tusb_cdcacm_callback_t
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
tusb_cdcacm_callback_t
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
tusb_cdcacm_callback_t
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
Type Definitions
typedef void (*tusb_cdcacm_callback_t)(int itf,
CDC-ACM callback type.
Enumerations
enum tinyusb_cdcacm_itf_t
CDC ports available to setup.
Values:
TINYUSB_CDC_ACM_0 = 0x0
enum cdcacm_event_type_t
Types of CDC ACM events.
Values:
CDC_EVENT_RX
CDC_EVENT_RX_WANTED_CHAR
CDC_EVENT_LINE_STATE_CHANGED
CDC_EVENT_LINE_CODING_CHANGED
Header File
•
components/tinyusb/additions/include/tusb_console.h
Functions
esp_err_t
esp_tusb_init_console(int cdc_intf)
Redirect output to the USB serial.
Return esp_err_t - ESP_OK, ESP_FAIL or an error code
Parameters
• cdc_intf: - interface number of TinyUSB's CDC
Espressif Systems
cdc_port
callback_rx
callback_rx_wanted_char
callback_line_state_changed
callback_line_coding_changed
Submit Document Feedback
cdcacm_event_t
*event)
486
Release v4.4
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?
Questions and answers