nRF52840 only: USB Audio class internals.
More...
|
#define | APP_USBD_AUDIO_CONFIG(iface_control, iface_stream) |
| Audio class configuration macro. More...
|
|
#define | APP_USBD_AUDIO_CONFIG_IN(iface_control, iface_stream_in) ((iface_control), (iface_stream_in, NRF_DRV_USBD_EPIN8)) |
| Only IN audio stream configuration. More...
|
|
#define | APP_USBD_AUDIO_CONFIG_OUT(iface_control, iface_stream_out) ((iface_control), (iface_stream_out, NRF_DRV_USBD_EPOUT8)) |
| Only OUT audio stream configuration. More...
|
|
#define | APP_USBD_AUDIO_INSTANCE_SPECIFIC_DEC app_usbd_audio_inst_t inst; |
| Specific class constant data for audio class. More...
|
|
#define | APP_USBD_AUDIO_INST_CONFIG(descriptors, user_event_handler) |
| Configures audio class instance. More...
|
|
#define | APP_USBD_AUDIO_DATA_SPECIFIC_DEC app_usbd_audio_ctx_t ctx; |
| Specific class data for audio class. More...
|
|
#define | APP_USBD_AUDIO_DSC_CONFIG(interface_number,...) |
| Audio class descriptors config macro. More...
|
|
#define | APP_USBD_AUDIO_GLOBAL_DEF_INTERNAL(instance_name,interfaces_configs,user_ev_handler,raw_descriptors) |
| Global definition of app_usbd_audio_t class. More...
|
|
nRF52840 only: USB Audio class internals.
#define APP_USBD_AUDIO_CONFIG |
( |
|
iface_control, |
|
|
|
iface_stream |
|
) |
| |
Value:((iface_control), \
(iface_stream, 0))
Audio class configuration macro.
Used by APP_USBD_AUDIO_GLOBAL_DEF
- Parameters
-
iface_control | Interface number of audio control |
iface_stream | Interface number of audio stream |
#define APP_USBD_AUDIO_CONFIG_IN |
( |
|
iface_control, |
|
|
|
iface_stream_in |
|
) |
| ((iface_control), (iface_stream_in, NRF_DRV_USBD_EPIN8)) |
Only IN audio stream configuration.
- Parameters
-
iface_control | Interface number of audio control |
iface_stream_in | Interface number of audio stream on IN endpoint |
#define APP_USBD_AUDIO_CONFIG_OUT |
( |
|
iface_control, |
|
|
|
iface_stream_out |
|
) |
| ((iface_control), (iface_stream_out, NRF_DRV_USBD_EPOUT8)) |
Only OUT audio stream configuration.
- Parameters
-
iface_control | Interface number of audio control |
iface_stream_out | Interface number of audio stream on OUT endpoint |
#define APP_USBD_AUDIO_DSC_CONFIG |
( |
|
interface_number, |
|
|
|
... |
|
) |
| |
Value:{ \
APP_USBD_AUDIO_INTERFACE_DSC(interface_number, \
0, \
0, \
}
Audio class descriptors config macro.
- Parameters
-
interface_number | Interface number |
... | Extracted endpoint list |
#define APP_USBD_AUDIO_GLOBAL_DEF_INTERNAL |
( |
|
instance_name, |
|
|
|
interfaces_configs, |
|
|
|
user_ev_handler, |
|
|
|
raw_descriptors |
|
) |
| |
Value:
instance_name, \
app_usbd_audio, \
interfaces_configs, \
user_ev_handler)) \
)
Global definition of app_usbd_audio_t class.
#define APP_USBD_AUDIO_INST_CONFIG |
( |
|
descriptors, |
|
|
|
user_event_handler |
|
) |
| |
Value:.inst = { \
.p_raw_desc = descriptors, \
.raw_desc_size = sizeof(descriptors), \
.user_ev_handler = user_event_handler, \
}
Configures audio class instance.
- Parameters
-
descriptors | Mass storage class descriptors (raw table) |
user_event_handler | User event handler |
User event handler.
- Parameters
-
[in] | p_inst | Class instance |
[in] | event | User event |
Audio class request target.
Enumerator |
---|
APP_USBD_AUDIO_CLASS_REQ_IN |
Audio class request IN
|
APP_USBD_AUDIO_CLASS_REQ_OUT |
Audio class request OUT
|
APP_USBD_AUDIO_EP_REQ_IN |
Audio class endpoint request IN
|
APP_USBD_AUDIO_EP_REQ_OUT |
Audio class endpoint request OUT
|