Add macros to initialize full set of descriptors required for USB Audio Class 2 instance. Descriptors start with Interface Association Descriptor that binds together the AudioControl interface and all AudioStreaming interfaces. AudioStreaming interfaces have alternate setting 0 without any endpoints and alternate setting 1 with isochronous endpoint with max packet size calculated on maximum sample frequency, number of channels, subslot size and clock synchronization (asynchronous endpoints require +1 sample). Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| class | ||
| CMakeLists.txt | ||
| Kconfig | ||
| usbd_ch9.c | ||
| usbd_ch9.h | ||
| usbd_class_api.h | ||
| usbd_class.c | ||
| usbd_class.h | ||
| usbd_config.c | ||
| usbd_config.h | ||
| usbd_core.c | ||
| usbd_data.ld | ||
| usbd_desc.c | ||
| usbd_desc.h | ||
| usbd_device.c | ||
| usbd_device.h | ||
| usbd_endpoint.c | ||
| usbd_endpoint.h | ||
| usbd_init.c | ||
| usbd_init.h | ||
| usbd_interface.c | ||
| usbd_interface.h | ||
| usbd_shell.c | ||