Macros | Enumerations
Usbd_audio_Exported_Defines
Collaboration diagram for Usbd_audio_Exported_Defines:

Macros

#define AUDIO_CONFIG_DESC_SIZE   109
 
#define AUDIO_CONTROL_FEATURE_UNIT   0x06
 
#define AUDIO_CONTROL_HEADER   0x01
 
#define AUDIO_CONTROL_INPUT_TERMINAL   0x02
 
#define AUDIO_CONTROL_MUTE   0x0001
 
#define AUDIO_CONTROL_OUTPUT_TERMINAL   0x03
 
#define AUDIO_DESCRIPTOR_TYPE   0x21
 
#define AUDIO_ENDPOINT_DESCRIPTOR_TYPE   0x25
 
#define AUDIO_ENDPOINT_GENERAL   0x01
 
#define AUDIO_FAIL   0xFF
 
#define AUDIO_FORMAT_TYPE_I   0x01
 
#define AUDIO_FORMAT_TYPE_III   0x03
 
#define AUDIO_INPUT_TERMINAL_DESC_SIZE   0x0C
 
#define AUDIO_INTERFACE_DESC_SIZE   9
 
#define AUDIO_INTERFACE_DESCRIPTOR_TYPE   0x24
 
#define AUDIO_MUTE   0x01
 
#define AUDIO_OK   0x00
 
#define AUDIO_OUT_PACKET   (uint32_t)(((USBD_AUDIO_FREQ * 2 * 2) /1000))
 
#define AUDIO_OUT_STREAMING_CTRL   0x02
 
#define AUDIO_OUTPUT_TERMINAL_DESC_SIZE   0x09
 
#define AUDIO_PROTOCOL_UNDEFINED   0x00
 
#define AUDIO_REQ_GET_CUR   0x81
 
#define AUDIO_REQ_SET_CUR   0x01
 
#define AUDIO_STANDARD_ENDPOINT_DESC_SIZE   0x09
 
#define AUDIO_STATE_ACTIVE   0x01
 
#define AUDIO_STATE_ERROR   0x05
 
#define AUDIO_STATE_INACTIVE   0x00
 
#define AUDIO_STATE_PAUSED   0x03
 
#define AUDIO_STATE_PLAYING   0x02
 
#define AUDIO_STATE_STOPPED   0x04
 
#define AUDIO_STREAMING_ENDPOINT_DESC_SIZE   0x07
 
#define AUDIO_STREAMING_FORMAT_TYPE   0x02
 
#define AUDIO_STREAMING_GENERAL   0x01
 
#define AUDIO_STREAMING_INTERFACE_DESC_SIZE   0x07
 
#define AUDIO_SUBCLASS_AUDIOCONTROL   0x01
 
#define AUDIO_SUBCLASS_AUDIOSTREAMING   0x02
 
#define AUDIO_UNMUTE   0x00
 
#define OUT_PACKET_NUM   4
 
#define TOTAL_OUT_BUF_SIZE   ((uint32_t)(AUDIO_OUT_PACKET * OUT_PACKET_NUM))
 
#define USB_AUDIO_DESC_SIZ   0x09
 
#define USB_DEVICE_CLASS_AUDIO   0x01
 
#define USB_ENDPOINT_TYPE_ISOCHRONOUS   0x01
 

Enumerations

enum  AUDIO_CMD_TypeDef { AUDIO_CMD_PLAY = 1, AUDIO_CMD_PAUSE, AUDIO_CMD_STOP }
 

Detailed Description

Macro Definition Documentation

#define AUDIO_CONFIG_DESC_SIZE   109

Definition at line 63 of file usbd_audio_core.h.

#define AUDIO_CONTROL_FEATURE_UNIT   0x06

Definition at line 85 of file usbd_audio_core.h.

#define AUDIO_CONTROL_HEADER   0x01

Definition at line 82 of file usbd_audio_core.h.

#define AUDIO_CONTROL_INPUT_TERMINAL   0x02

Definition at line 83 of file usbd_audio_core.h.

#define AUDIO_CONTROL_MUTE   0x0001

Definition at line 91 of file usbd_audio_core.h.

#define AUDIO_CONTROL_OUTPUT_TERMINAL   0x03

Definition at line 84 of file usbd_audio_core.h.

#define AUDIO_DESCRIPTOR_TYPE   0x21

Definition at line 69 of file usbd_audio_core.h.

#define AUDIO_ENDPOINT_DESCRIPTOR_TYPE   0x25

Definition at line 79 of file usbd_audio_core.h.

#define AUDIO_ENDPOINT_GENERAL   0x01

Definition at line 97 of file usbd_audio_core.h.

#define AUDIO_FAIL   0xFF

Definition at line 68 of file usbd_audio_out_if.h.

#define AUDIO_FORMAT_TYPE_I   0x01

Definition at line 93 of file usbd_audio_core.h.

#define AUDIO_FORMAT_TYPE_III   0x03

Definition at line 94 of file usbd_audio_core.h.

#define AUDIO_INPUT_TERMINAL_DESC_SIZE   0x0C

Definition at line 87 of file usbd_audio_core.h.

#define AUDIO_INTERFACE_DESC_SIZE   9

Definition at line 64 of file usbd_audio_core.h.

#define AUDIO_INTERFACE_DESCRIPTOR_TYPE   0x24

Definition at line 78 of file usbd_audio_core.h.

#define AUDIO_MUTE   0x01

Definition at line 63 of file usbd_audio_out_if.h.

#define AUDIO_OK   0x00

Definition at line 67 of file usbd_audio_out_if.h.

#define AUDIO_OUT_PACKET   (uint32_t)(((USBD_AUDIO_FREQ * 2 * 2) /1000))

Definition at line 55 of file usbd_audio_core.h.

#define AUDIO_OUT_STREAMING_CTRL   0x02

Definition at line 102 of file usbd_audio_core.h.

#define AUDIO_OUTPUT_TERMINAL_DESC_SIZE   0x09

Definition at line 88 of file usbd_audio_core.h.

#define AUDIO_PROTOCOL_UNDEFINED   0x00

Definition at line 73 of file usbd_audio_core.h.

#define AUDIO_REQ_GET_CUR   0x81

Definition at line 99 of file usbd_audio_core.h.

#define AUDIO_REQ_SET_CUR   0x01

Definition at line 100 of file usbd_audio_core.h.

#define AUDIO_STANDARD_ENDPOINT_DESC_SIZE   0x09

Definition at line 66 of file usbd_audio_core.h.

#define AUDIO_STATE_ACTIVE   0x01

Definition at line 72 of file usbd_audio_out_if.h.

#define AUDIO_STATE_ERROR   0x05

Definition at line 76 of file usbd_audio_out_if.h.

#define AUDIO_STATE_INACTIVE   0x00

Definition at line 71 of file usbd_audio_out_if.h.

#define AUDIO_STATE_PAUSED   0x03

Definition at line 74 of file usbd_audio_out_if.h.

#define AUDIO_STATE_PLAYING   0x02

Definition at line 73 of file usbd_audio_out_if.h.

#define AUDIO_STATE_STOPPED   0x04

Definition at line 75 of file usbd_audio_out_if.h.

#define AUDIO_STREAMING_ENDPOINT_DESC_SIZE   0x07

Definition at line 67 of file usbd_audio_core.h.

#define AUDIO_STREAMING_FORMAT_TYPE   0x02

Definition at line 75 of file usbd_audio_core.h.

#define AUDIO_STREAMING_GENERAL   0x01

Definition at line 74 of file usbd_audio_core.h.

#define AUDIO_STREAMING_INTERFACE_DESC_SIZE   0x07

Definition at line 89 of file usbd_audio_core.h.

#define AUDIO_SUBCLASS_AUDIOCONTROL   0x01

Definition at line 71 of file usbd_audio_core.h.

#define AUDIO_SUBCLASS_AUDIOSTREAMING   0x02

Definition at line 72 of file usbd_audio_core.h.

#define AUDIO_UNMUTE   0x00

Definition at line 64 of file usbd_audio_out_if.h.

#define OUT_PACKET_NUM   4

Definition at line 59 of file usbd_audio_core.h.

#define TOTAL_OUT_BUF_SIZE   ((uint32_t)(AUDIO_OUT_PACKET * OUT_PACKET_NUM))

Definition at line 61 of file usbd_audio_core.h.

#define USB_AUDIO_DESC_SIZ   0x09

Definition at line 65 of file usbd_audio_core.h.

#define USB_DEVICE_CLASS_AUDIO   0x01

Definition at line 70 of file usbd_audio_core.h.

#define USB_ENDPOINT_TYPE_ISOCHRONOUS   0x01

Definition at line 96 of file usbd_audio_core.h.

Enumeration Type Documentation

Enumerator
AUDIO_CMD_PLAY 
AUDIO_CMD_PAUSE 
AUDIO_CMD_STOP 

Definition at line 55 of file usbd_audio_out_if.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:22