Espressif ESP32-S2 Programming Manual page 492

Table of Contents

Advertisement

Chapter 2. API Reference
Hardware USB Connection
• Any board with the ESP32-S2 chip with USB connectors or with exposed USB' s D+ and D- (DATA+/DATA-)
pins.
If the board has no USB connector but has the pins, connect pins directly to the host (e.g. with do-it-yourself cable
from any USB connection cable).
On ESP32-S2, connect GPIO 20 and 19 to D+/D- respectively:
Driver Structure
As the basis is used the TinyUSB stack.
On top of it the driver implements:
• Customization of USB descriptors
• Serial device support
• Redirecting of standard streams through the Serial device
• Encapsulated driver's task servicing the TinyuSB
Configuration
Via Menuconfig options you can specify:
• Several of descriptor's parameters (see: Descriptors Configuration bellow)
• USB Serial low-level Configuration
• The verbosity of the TinyUSB's log
• Disable the TinyUSB main task (for the custom implementation)
Descriptors Configuration
descriptor and string_descriptor members. Therefore, users should initialize
to their desired descriptor before calling
However, the driver also provides a default descriptor. The driver can be installed with the default descriptor by
setting the descriptor and string_descriptor members of
ing tinyusb_driver_install(). The driver's default descriptor is specified using Menuconfig, where the
following fields should be configured:
• PID
• VID
• bcdDevice
• Manufacturer
• Product name
Espressif Systems
The driver's descriptors are provided by the
tinyusb_driver_install()
481
Submit Document Feedback
tinyusb_config_t
tinyusb_config_t
to install driver.
tinyusb_config_t
to NULL before call-
structure's
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF