|
arduino-audio-tools
|
USB Audio 2.0 device backend for Zephyr RTOS. More...
#include <USBAudioDeviceZephyr.h>
Public Member Functions | |
| USBAudioDeviceZephyr ()=default | |
| USBAudioDeviceZephyr (USBAudioConfig cfg) | |
| uint16_t | audioPacketSize () const |
| bool | begin () |
| bool | begin (const USBAudioConfig &cfg) |
| USBAudioConfig | defaultConfig (RxTxMode mode=RXTX_MODE) |
| void | end () |
| bool | mounted () const |
| True while the USB host is actively streaming. | |
| void | process () |
| void | reenumerateUSBOnChange (const USBAudioConfig &cfg) |
| void | setRxCallback (std::function< void(const uint8_t *, uint16_t)> cb) |
| void | setTxCallback (std::function< uint16_t(uint8_t *, uint16_t)> cb) |
USB Audio 2.0 device backend for Zephyr RTOS.
Uses Zephyr's native usbd_uac2 API. The USB descriptor is fixed at build time via the board device tree; dynamic re-enumeration is not supported. Conforms to the duck-typing interface expected by USBAudioStream<Device> — no TinyUSB dependency.
DTS requirements:
uac2_dev pointing to the UAC2 node.CONFIG_USBD_UAC2=y, CONFIG_USB_DEVICE_STACK_NEXT=y.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
True while the USB host is actively streaming.
|
inline |
|
inline |
Zephyr UAC2 descriptors are fixed in the device tree at build time. This method logs a warning if the audio format changes and is otherwise a no-op.