EasyManua.ls Logo

Espressif ESP32-S2 - Page 497

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
CDC port
size_t rx_unread_buf_sz
Amount of data that can be passed to the AMC at once
tusb_cdcacm_callback_t callback_rx
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
tusb_cdcacm_callback_t callback_rx_wanted_char
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
tusb_cdcacm_callback_t callback_line_state_changed
Pointer to the function with the tusb_cdcacm_callback_t type that will be handled as a callback
tusb_cdcacm_callback_t callback_line_coding_changed
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, cdcacm_event_t *event)
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 TinyUSBs CDC
Espressif Systems 486
Submit Document Feedback
Release v4.4

Table of Contents