![]() |
nRF5 SDK
v12.3.0
|
| Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API |
nRF52840 only: Descriptors used in the USB Audio class. More...
Macros | |
| #define | APP_USBD_AUDIO_INTERFACE_DSC(interface_number, alt_setting, ep_num, subclass) |
| Initializer of interface descriptor for AUDIO class. More... | |
| #define | APP_USBD_AUDIO_ISO_EP_DSC(ep, ep_size, interval, refresh, synch_addr) |
| Initializer of isochronous endpoint descriptors for audio class. More... | |
| #define | APP_USBD_AUDIO_ISO_EP_IN_DSC(ep_size) APP_USBD_AUDIO_ISO_EP_DSC(NRF_DRV_USBD_EPIN8, ep_size, 1, 0, 0) |
| Simplified version of APP_USBD_AUDIO_ISO_EP_DSC for ISO IN endpoint. | |
| #define | APP_USBD_AUDIO_ISO_EP_OUT_DSC(ep_size) APP_USBD_AUDIO_ISO_EP_DSC(NRF_DRV_USBD_EPOUT8, ep_size, 1, 0, 0) |
| Simplified version of APP_USBD_AUDIO_ISO_EP_DSC for ISO OUT endpoint. | |
| #define | APP_USBD_AUDIO_AC_IFACE_HEADER_DSC(descriptor_list,...) |
| Initializer of app_usbd_audio_ac_iface_header_desc_t. More... | |
| #define | APP_USBD_AUDIO_INPUT_TERMINAL_DSC(terminal_id, terminal_type, nr_channels, ch_config) |
| Initializer of app_usbd_audio_input_terminal_desc_t. More... | |
| #define | APP_USBD_AUDIO_OUTPUT_TERMINAL_DSC(terminal_id, terminal_type, source_id) |
| Initializer of app_usbd_audio_output_terminal_desc_t. More... | |
| #define | APP_USBD_AUDIO_FEATURE_UNIT_DSC(unit_id, source_id,...) |
| Initializer of app_usbd_audio_feature_unit_desc_t. More... | |
| #define | APP_USBD_AUDIO_AS_IFACE_DSC(terminal_link, delay, format_tag) |
| Initializer of app_usbd_audio_as_iface_desc_t. More... | |
| #define | APP_USBD_AUDIO_AS_FORMAT_I_DSC(nr_channels, subframe_size, resolution, freq_type,...) |
| Initializer of app_usbd_audio_as_format_type_one_desc_t. More... | |
| #define | APP_USBD_AUDIO_AS_FORMAT_II_DSC(max_bitrate, samples_per_frame, freq_type,...) |
| Initializer of app_usbd_audio_as_format_type_two_desc_t. More... | |
| #define | APP_USBD_AUDIO_AS_FORMAT_III_DSC(nr_channels, subframe_size, resolution, freq_type,...) |
| Initializer of app_usbd_audio_as_format_type_three_desc_t. More... | |
| #define | APP_USBD_AUDIO_EP_GENERAL_DSC(attributes, lock_delay_units, lock_delay) |
| Initializer of app_usbd_audio_as_endpoint_desc_t. More... | |
| #define | APP_USBD_AUDIO_CONTROL_DSC(interface_number, descriptor_list, interface_list) |
| Macro to configure Audio Class control descriptor. More... | |
| #define | APP_USBD_AUDIO_STREAMING_DSC(interface_number, alt_setting, ep_num) |
| Macro to configure Audio Class streaming descriptor. More... | |
| #define | APP_USBD_AUDIO_MIDI_STREAMING_DSC(interface_number, alt_setting, ep_num) |
| Macro to configure Audio Class MIDI streaming descriptor. More... | |
nRF52840 only: Descriptors used in the USB Audio class.
| #define APP_USBD_AUDIO_AC_IFACE_HEADER_DSC | ( | descriptor_list, | |
| ... | |||
| ) |
Initializer of app_usbd_audio_ac_iface_header_desc_t.
| descriptor_list | Descriptor list following audio interface header descriptor |
| ... | List of interfaces following audio control interface |
| #define APP_USBD_AUDIO_AS_FORMAT_I_DSC | ( | nr_channels, | |
| subframe_size, | |||
| resolution, | |||
| freq_type, | |||
| ... | |||
| ) |
Initializer of app_usbd_audio_as_format_type_one_desc_t.
| nr_channels | Number of channels |
| subframe_size | Subframe size |
| resolution | Bit resolution |
| freq_type | Frequency type |
| ... | List of frequencies |
| #define APP_USBD_AUDIO_AS_FORMAT_II_DSC | ( | max_bitrate, | |
| samples_per_frame, | |||
| freq_type, | |||
| ... | |||
| ) |
Initializer of app_usbd_audio_as_format_type_two_desc_t.
| max_bitrate | Maximum bitrate |
| samples_per_frame | Samples per frame |
| freq_type | Frequency type |
| ... | List of frequencies |
| #define APP_USBD_AUDIO_AS_FORMAT_III_DSC | ( | nr_channels, | |
| subframe_size, | |||
| resolution, | |||
| freq_type, | |||
| ... | |||
| ) |
Initializer of app_usbd_audio_as_format_type_three_desc_t.
| nr_channels | Number of channels |
| subframe_size | Subframe size |
| resolution | Bit resolution |
| freq_type | Frequency type |
| ... | List of frequencies |
| #define APP_USBD_AUDIO_AS_IFACE_DSC | ( | terminal_link, | |
| delay, | |||
| format_tag | |||
| ) |
Initializer of app_usbd_audio_as_iface_desc_t.
| terminal_link | Terminal link |
| delay | Delay |
| format_tag | Format TAG |
| #define APP_USBD_AUDIO_CONTROL_DSC | ( | interface_number, | |
| descriptor_list, | |||
| interface_list | |||
| ) |
Macro to configure Audio Class control descriptor.
| interface_number | Interface number |
| descriptor_list | List of descriptors after Audio interface header descriptor |
| interface_list | List of interfaces passed to APP_USBD_AUDIO_AC_IFACE_HEADER_DSC |
| #define APP_USBD_AUDIO_EP_GENERAL_DSC | ( | attributes, | |
| lock_delay_units, | |||
| lock_delay | |||
| ) |
Initializer of app_usbd_audio_as_endpoint_desc_t.
| attributes | Endpoint attributes |
| lock_delay_units | Lock delay units |
| lock_delay | Lock delay |
| #define APP_USBD_AUDIO_FEATURE_UNIT_DSC | ( | unit_id, | |
| source_id, | |||
| ... | |||
| ) |
Initializer of app_usbd_audio_feature_unit_desc_t.
| unit_id | Unit ID |
| source_id | Source ID |
| ... | List of controls |
| #define APP_USBD_AUDIO_INPUT_TERMINAL_DSC | ( | terminal_id, | |
| terminal_type, | |||
| nr_channels, | |||
| ch_config | |||
| ) |
Initializer of app_usbd_audio_input_terminal_desc_t.
| terminal_id | Terminal ID |
| terminal_type | Terminal type app_usbd_audio_terminal_type_t |
| nr_channels | Number of channels |
| ch_config | CHannel config bitmask |
| #define APP_USBD_AUDIO_INTERFACE_DSC | ( | interface_number, | |
| alt_setting, | |||
| ep_num, | |||
| subclass | |||
| ) |
Initializer of interface descriptor for AUDIO class.
| interface_number | Interface number |
| alt_setting | Interface alternate setting |
| ep_num | Number of endpoints |
| subclass | Audio subclass app_usbd_audio_subclass_t |
| #define APP_USBD_AUDIO_ISO_EP_DSC | ( | ep, | |
| ep_size, | |||
| interval, | |||
| refresh, | |||
| synch_addr | |||
| ) |
Initializer of isochronous endpoint descriptors for audio class.
| ep | ISO endpoint id: NRF_DRV_USBD_EPIN8, NRF_DRV_USBD_EPOUT8 |
| ep_size | Endpoint size (bytes) |
| interval | Endpoint interval (milliseconds) |
| refresh | Refresh value (usually 0) |
| synch_addr | Synch address (usually 0) |
| #define APP_USBD_AUDIO_MIDI_STREAMING_DSC | ( | interface_number, | |
| alt_setting, | |||
| ep_num | |||
| ) |
Macro to configure Audio Class MIDI streaming descriptor.
| interface_number | Interface number |
| alt_setting | Alternate interface setting |
| ep_num | Number of endpoints |
| #define APP_USBD_AUDIO_OUTPUT_TERMINAL_DSC | ( | terminal_id, | |
| terminal_type, | |||
| source_id | |||
| ) |
Initializer of app_usbd_audio_output_terminal_desc_t.
| terminal_id | Terminal ID |
| terminal_type | Terminal type app_usbd_audio_terminal_type_t |
| source_id | Source ID |
| #define APP_USBD_AUDIO_STREAMING_DSC | ( | interface_number, | |
| alt_setting, | |||
| ep_num | |||
| ) |
Macro to configure Audio Class streaming descriptor.
| interface_number | Interface number |
| alt_setting | Alternate interface setting |
| ep_num | Number of endpoints |