12
12
* This software component is licensed by ST under Ultimate Liberty license
13
13
* SLA0044, the "License"; You may not use this file except in compliance with
14
14
* the License. You may obtain a copy of the License at:
15
- * http:// www.st.com/SLA0044
15
+ * www.st.com/SLA0044
16
16
*
17
17
******************************************************************************
18
18
*/
@@ -102,14 +102,16 @@ extern "C" {
102
102
#define AUDIO_TOTAL_BUF_SIZE ((uint16_t)(AUDIO_OUT_PACKET * AUDIO_OUT_PACKET_NUM))
103
103
104
104
/* Audio Commands enumeration */
105
- typedef enum {
105
+ typedef enum
106
+ {
106
107
AUDIO_CMD_START = 1 ,
107
108
AUDIO_CMD_PLAY ,
108
109
AUDIO_CMD_STOP ,
109
110
} AUDIO_CMD_TypeDef ;
110
111
111
112
112
- typedef enum {
113
+ typedef enum
114
+ {
113
115
AUDIO_OFFSET_NONE = 0 ,
114
116
AUDIO_OFFSET_HALF ,
115
117
AUDIO_OFFSET_FULL ,
@@ -124,7 +126,8 @@ AUDIO_OffsetTypeDef;
124
126
/** @defgroup USBD_CORE_Exported_TypesDefinitions
125
127
* @{
126
128
*/
127
- typedef struct {
129
+ typedef struct
130
+ {
128
131
uint8_t cmd ;
129
132
uint8_t data [USB_MAX_EP0_SIZE ];
130
133
uint8_t len ;
@@ -134,7 +137,8 @@ USBD_AUDIO_ControlTypeDef;
134
137
135
138
136
139
137
- typedef struct {
140
+ typedef struct
141
+ {
138
142
uint32_t alt_setting ;
139
143
uint8_t buffer [AUDIO_TOTAL_BUF_SIZE ];
140
144
AUDIO_OffsetTypeDef offset ;
@@ -146,7 +150,8 @@ typedef struct {
146
150
USBD_AUDIO_HandleTypeDef ;
147
151
148
152
149
- typedef struct {
153
+ typedef struct
154
+ {
150
155
int8_t (* Init )(uint32_t AudioFreq , uint32_t Volume , uint32_t options );
151
156
int8_t (* DeInit )(uint32_t options );
152
157
int8_t (* AudioCmd )(uint8_t * pbuf , uint32_t size , uint8_t cmd );
@@ -182,7 +187,7 @@ extern USBD_ClassTypeDef USBD_AUDIO;
182
187
/** @defgroup USB_CORE_Exported_Functions
183
188
* @{
184
189
*/
185
- uint8_t USBD_AUDIO_RegisterInterface (USBD_HandleTypeDef * pdev ,
190
+ uint8_t USBD_AUDIO_RegisterInterface (USBD_HandleTypeDef * pdev ,
186
191
USBD_AUDIO_ItfTypeDef * fops );
187
192
188
193
void USBD_AUDIO_Sync (USBD_HandleTypeDef * pdev , AUDIO_OffsetTypeDef offset );
0 commit comments