6#if ARDUINO_USB_CDC_ON_BOOT
7#error USB Audio is only available in OTG mode, not CDC-on-boot mode
16#include "esp32-hal-tinyusb.h"
20class Emulated_TinyUSB;
74 if (itf) dev.config_.itf_num_ac = *itf;
75 uint16_t len = dev.getDescriptor(dst);
76 if (itf) *itf += dev.numInterfaces();
93 USB.usbClass(TUSB_CLASS_MISC);
94 USB.usbSubClass(MISC_SUBCLASS_COMMON);
95 USB.usbProtocol(MISC_PROTOCOL_IAD);
102 tinyusb_enable_interface(USB_INTERFACE_AUDIO, audio_len,
173 if (!
device().begin_called)
return true;
174 return tud_mounted();
177 bool ready(
void) {
return tud_ready(); }
180 if (!
device().begin_called)
return true;
181 return tud_disconnect();
184 if (!
device().begin_called) {
189 return tud_connect();
If you want to use the framework w/o Arduino you need to provide the implementation of a couple of cl...
#define USB_DESCR_MAX_LEN
Definition USBAudioDeviceBase.h:37
#define assert(T)
Definition avr.h:10