Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
|
USB Audio Class 2 device API . More...
Data Structures | |
struct | uac2_ops |
USB Audio 2 application event handlers. More... | |
Macros | |
#define | UAC2_ENTITY_ID(node) |
Get entity ID. | |
Functions | |
void | usbd_uac2_set_ops (const struct device *dev, const struct uac2_ops *ops, void *user_data) |
Register USB Audio 2 application callbacks. | |
int | usbd_uac2_send (const struct device *dev, uint8_t terminal, void *data, uint16_t size) |
Send audio data to output terminal. | |
USB Audio Class 2 device API .
#define UAC2_ENTITY_ID | ( | node | ) |
#include <zephyr/usb/class/usbd_uac2.h>
Get entity ID.
node | node identifier |
#include <zephyr/usb/class/usbd_uac2.h>
Send audio data to output terminal.
Data buffer must be sufficiently aligned and otherwise suitable for use by UDC driver.
dev | USB Audio 2 device |
terminal | Output Terminal ID linked to AudioStreaming interface |
data | Buffer containing outgoing data |
size | Number of bytes to send |
#include <zephyr/usb/class/usbd_uac2.h>
Register USB Audio 2 application callbacks.
dev | USB Audio 2 device instance |
ops | USB Audio 2 callback structure |
user_data | Opaque user data to pass to ops callbacks |