Class Drivers¶
Class drivers implement USB protocols such as CDC serial, HID, mass storage,
and MIDI. Enable only the classes your product uses: device APIs start with
tud_ and host APIs start with tuh_.
Start with Using Device Classes or Using Host Classes, then use the class page for its configuration, data flow, callbacks, and examples. The API lists below focus on the calls normally needed by an application; the public headers remain the complete API reference.
Support matrix¶
Class |
Device |
Host |
Guide |
|---|---|---|---|
Audio 1.0/2.0 |
Yes |
Yes |
|
Bluetooth HCI |
Yes |
No |
|
CDC serial |
Yes |
Yes |
|
DFU 1.1 |
Yes |
No |
|
HID 1.11 |
Yes |
Yes |
|
MIDI 1.0/2.0 |
Yes |
Yes |
|
Mass Storage (BOT) |
Yes |
Yes |
|
Media Transfer (MTP) |
Yes |
No |
|
Network (ECM/RNDIS/NCM) |
Yes |
No |
|
Printer |
Yes |
No |
|
Test and Measurement (USBTMC) |
Yes |
No |
|
Vendor-specific |
Yes |
Custom driver |
|
Video 1.5 |
Yes |
No |