libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
USB Audio Type Definitions

Defined Constants and Types for the USB Audio Type Definitions More...

Data Structures

struct  usb_audio_header_descriptor_head
 
struct  usb_audio_header_descriptor_body
 
struct  usb_audio_input_terminal_descriptor
 
struct  usb_audio_output_terminal_descriptor
 
struct  usb_audio_feature_unit_descriptor_head
 
struct  usb_audio_feature_unit_descriptor_body
 
struct  usb_audio_feature_unit_descriptor_tail
 
struct  usb_audio_feature_unit_descriptor_2ch
 
struct  usb_audio_stream_interface_descriptor
 
struct  usb_audio_stream_endpoint_descriptor
 
struct  usb_audio_stream_audio_endpoint_descriptor
 
struct  usb_audio_format_type1_descriptor_head
 
struct  usb_audio_format_continuous_sampling_frequency
 
struct  usb_audio_format_discrete_sampling_frequency
 
struct  usb_audio_format_type1_descriptor_1freq
 
struct  usb_midi_header_descriptor
 
struct  usb_midi_in_jack_descriptor
 
struct  usb_midi_out_jack_descriptor_head
 
struct  usb_midi_out_jack_descriptor_body
 
struct  usb_midi_out_jack_descriptor_tail
 
struct  usb_midi_out_jack_descriptor
 
struct  usb_midi_element_descriptor_head
 
struct  usb_midi_element_descriptor_body
 
struct  usb_midi_element_descriptor_tail
 
struct  usb_midi_element_descriptor
 
struct  usb_midi_endpoint_descriptor_head
 
struct  usb_midi_endpoint_descriptor_body
 
struct  usb_midi_endpoint_descriptor
 

Macros

#define USB_CLASS_AUDIO   0x01
 
#define USB_AUDIO_SUBCLASS_UNDEFINED   0x00
 
#define USB_AUDIO_SUBCLASS_CONTROL   0x01
 
#define USB_AUDIO_SUBCLASS_AUDIOSTREAMING   0x02
 
#define USB_AUDIO_SUBCLASS_MIDISTREAMING   0x03
 
#define USB_AUDIO_DT_CS_UNDEFINED   0x20
 
#define USB_AUDIO_DT_CS_DEVICE   0x21
 
#define USB_AUDIO_DT_CS_CONFIGURATION   0x22
 
#define USB_AUDIO_DT_CS_STRING   0x23
 
#define USB_AUDIO_DT_CS_INTERFACE   0x24
 
#define USB_AUDIO_DT_CS_ENDPOINT   0x25
 
#define USB_AUDIO_TYPE_AC_DESCRIPTOR_UNDEFINED   0x00
 
#define USB_AUDIO_TYPE_HEADER   0x01
 
#define USB_AUDIO_TYPE_INPUT_TERMINAL   0x02
 
#define USB_AUDIO_TYPE_OUTPUT_TERMINAL   0x03
 
#define USB_AUDIO_TYPE_MIXER_UNIT   0x04
 
#define USB_AUDIO_TYPE_SELECTOR_UNIT   0x05
 
#define USB_AUDIO_TYPE_FEATURE_UNIT   0x06
 
#define USB_AUDIO_TYPE_PROCESSING_UNIT   0x07
 
#define USB_AUDIO_TYPE_EXTENSION_UNIT   0x08
 
#define USB_MIDI_SUBTYPE_MS_DESCRIPTOR_UNDEFINED   0x00
 
#define USB_MIDI_SUBTYPE_MS_HEADER   0x01
 
#define USB_MIDI_SUBTYPE_MIDI_IN_JACK   0x02
 
#define USB_MIDI_SUBTYPE_MIDI_OUT_JACK   0x03
 
#define USB_MIDI_SUBTYPE_MIDI_ELEMENT   0x04
 
#define USB_MIDI_SUBTYPE_DESCRIPTOR_UNDEFINED   0x00
 
#define USB_MIDI_SUBTYPE_MS_GENERAL   0x01
 
#define USB_MIDI_JACK_TYPE_UNDEFINED   0x00
 
#define USB_MIDI_JACK_TYPE_EMBEDDED   0x01
 
#define USB_MIDI_JACK_TYPE_EXTERNAL   0x02
 
#define USB_MIDI_EP_CONTROL_UNDEFINED   0x00
 
#define USB_MIDI_ASSOCIATION_CONTROL   0x01
 

Detailed Description

Defined Constants and Types for the USB Audio Type Definitions

Defined Constants and Types for the USB MIDI Type Definitions

Version
1.0.0
Author
© 2014 Daniel Thompson danie.nosp@m.l@re.nosp@m.dfeli.nosp@m.neni.nosp@m.nja.o.nosp@m.rg.u.nosp@m.k Seb Holzapfel schno.nosp@m.mmus.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
19 April 2014

LGPL License Terms libopencm3 License

Version
1.0.0
Author
© 2014 Daniel Thompson danie.nosp@m.l@re.nosp@m.dfeli.nosp@m.neni.nosp@m.nja.o.nosp@m.rg.u.nosp@m.k
Date
19 April 2014

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ USB_AUDIO_DT_CS_CONFIGURATION

#define USB_AUDIO_DT_CS_CONFIGURATION   0x22

Definition at line 62 of file audio.h.

◆ USB_AUDIO_DT_CS_DEVICE

#define USB_AUDIO_DT_CS_DEVICE   0x21

Definition at line 61 of file audio.h.

◆ USB_AUDIO_DT_CS_ENDPOINT

#define USB_AUDIO_DT_CS_ENDPOINT   0x25

Definition at line 65 of file audio.h.

◆ USB_AUDIO_DT_CS_INTERFACE

#define USB_AUDIO_DT_CS_INTERFACE   0x24

Definition at line 64 of file audio.h.

◆ USB_AUDIO_DT_CS_STRING

#define USB_AUDIO_DT_CS_STRING   0x23

Definition at line 63 of file audio.h.

◆ USB_AUDIO_DT_CS_UNDEFINED

#define USB_AUDIO_DT_CS_UNDEFINED   0x20

Definition at line 60 of file audio.h.

◆ USB_AUDIO_SUBCLASS_AUDIOSTREAMING

#define USB_AUDIO_SUBCLASS_AUDIOSTREAMING   0x02

Definition at line 56 of file audio.h.

◆ USB_AUDIO_SUBCLASS_CONTROL

#define USB_AUDIO_SUBCLASS_CONTROL   0x01

Definition at line 55 of file audio.h.

◆ USB_AUDIO_SUBCLASS_MIDISTREAMING

#define USB_AUDIO_SUBCLASS_MIDISTREAMING   0x03

Definition at line 57 of file audio.h.

◆ USB_AUDIO_SUBCLASS_UNDEFINED

#define USB_AUDIO_SUBCLASS_UNDEFINED   0x00

Definition at line 54 of file audio.h.

◆ USB_AUDIO_TYPE_AC_DESCRIPTOR_UNDEFINED

#define USB_AUDIO_TYPE_AC_DESCRIPTOR_UNDEFINED   0x00

Definition at line 68 of file audio.h.

◆ USB_AUDIO_TYPE_EXTENSION_UNIT

#define USB_AUDIO_TYPE_EXTENSION_UNIT   0x08

Definition at line 76 of file audio.h.

◆ USB_AUDIO_TYPE_FEATURE_UNIT

#define USB_AUDIO_TYPE_FEATURE_UNIT   0x06

Definition at line 74 of file audio.h.

◆ USB_AUDIO_TYPE_HEADER

#define USB_AUDIO_TYPE_HEADER   0x01

Definition at line 69 of file audio.h.

◆ USB_AUDIO_TYPE_INPUT_TERMINAL

#define USB_AUDIO_TYPE_INPUT_TERMINAL   0x02

Definition at line 70 of file audio.h.

◆ USB_AUDIO_TYPE_MIXER_UNIT

#define USB_AUDIO_TYPE_MIXER_UNIT   0x04

Definition at line 72 of file audio.h.

◆ USB_AUDIO_TYPE_OUTPUT_TERMINAL

#define USB_AUDIO_TYPE_OUTPUT_TERMINAL   0x03

Definition at line 71 of file audio.h.

◆ USB_AUDIO_TYPE_PROCESSING_UNIT

#define USB_AUDIO_TYPE_PROCESSING_UNIT   0x07

Definition at line 75 of file audio.h.

◆ USB_AUDIO_TYPE_SELECTOR_UNIT

#define USB_AUDIO_TYPE_SELECTOR_UNIT   0x05

Definition at line 73 of file audio.h.

◆ USB_CLASS_AUDIO

#define USB_CLASS_AUDIO   0x01

Definition at line 51 of file audio.h.

◆ USB_MIDI_ASSOCIATION_CONTROL

#define USB_MIDI_ASSOCIATION_CONTROL   0x01

Definition at line 66 of file midi.h.

◆ USB_MIDI_EP_CONTROL_UNDEFINED

#define USB_MIDI_EP_CONTROL_UNDEFINED   0x00

Definition at line 65 of file midi.h.

◆ USB_MIDI_JACK_TYPE_EMBEDDED

#define USB_MIDI_JACK_TYPE_EMBEDDED   0x01

Definition at line 61 of file midi.h.

◆ USB_MIDI_JACK_TYPE_EXTERNAL

#define USB_MIDI_JACK_TYPE_EXTERNAL   0x02

Definition at line 62 of file midi.h.

◆ USB_MIDI_JACK_TYPE_UNDEFINED

#define USB_MIDI_JACK_TYPE_UNDEFINED   0x00

Definition at line 60 of file midi.h.

◆ USB_MIDI_SUBTYPE_DESCRIPTOR_UNDEFINED

#define USB_MIDI_SUBTYPE_DESCRIPTOR_UNDEFINED   0x00

Definition at line 56 of file midi.h.

◆ USB_MIDI_SUBTYPE_MIDI_ELEMENT

#define USB_MIDI_SUBTYPE_MIDI_ELEMENT   0x04

Definition at line 53 of file midi.h.

◆ USB_MIDI_SUBTYPE_MIDI_IN_JACK

#define USB_MIDI_SUBTYPE_MIDI_IN_JACK   0x02

Definition at line 51 of file midi.h.

◆ USB_MIDI_SUBTYPE_MIDI_OUT_JACK

#define USB_MIDI_SUBTYPE_MIDI_OUT_JACK   0x03

Definition at line 52 of file midi.h.

◆ USB_MIDI_SUBTYPE_MS_DESCRIPTOR_UNDEFINED

#define USB_MIDI_SUBTYPE_MS_DESCRIPTOR_UNDEFINED   0x00

Definition at line 49 of file midi.h.

◆ USB_MIDI_SUBTYPE_MS_GENERAL

#define USB_MIDI_SUBTYPE_MS_GENERAL   0x01

Definition at line 57 of file midi.h.

◆ USB_MIDI_SUBTYPE_MS_HEADER

#define USB_MIDI_SUBTYPE_MS_HEADER   0x01

Definition at line 50 of file midi.h.