ARMEBS4
revision-26.06.2015
Main Page
Modules
Data Structures
Files
File List
Globals
include
stm32
usb
usbd_audio_out_if.h
1
#include "
heivs/config.h
"
2
#if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
3
/**
4
******************************************************************************
5
* @file usbd_audio_out_if.h
6
* @author MCD Application Team
7
* @version V1.1.0
8
* @date 19-March-2012
9
* @brief header file for the usbd_audio_out_if.c file.
10
******************************************************************************
11
* @attention
12
*
13
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
14
*
15
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16
* You may not use this file except in compliance with the License.
17
* You may obtain a copy of the License at:
18
*
19
* http://www.st.com/software_license_agreement_liberty_v2
20
*
21
* Unless required by applicable law or agreed to in writing, software
22
* distributed under the License is distributed on an "AS IS" BASIS,
23
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
* See the License for the specific language governing permissions and
25
* limitations under the License.
26
*
27
******************************************************************************
28
*/
29
30
/* Includes ------------------------------------------------------------------*/
31
32
#ifndef __USB_AUDIO_OUT_IF_H_
33
#define __USB_AUDIO_OUT_IF_H_
34
35
#ifdef STM32F2XX
36
#include "stm322xg_usb_audio_codec.h"
37
#elif defined(STM32F4XX)
38
#include "stm324xg_usb_audio_codec.h"
39
#elif defined(STM32F10X_CL)
40
#include "stm3210c_usb_audio_codec.h"
41
#endif
/* STM32F2XX */
42
43
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
44
* @{
45
*/
46
47
/** @defgroup usbd_audio
48
* @brief This file is the Header file for USBD_audio.c
49
* @{
50
*/
51
52
53
/** @defgroup usbd_audio_Exported_Defines
54
* @{
55
*/
56
/* Audio Commands enmueration */
57
typedef
enum
58
{
59
AUDIO_CMD_PLAY = 1,
60
AUDIO_CMD_PAUSE,
61
AUDIO_CMD_STOP,
62
}AUDIO_CMD_TypeDef;
63
64
/* Mute commands */
65
#define AUDIO_MUTE 0x01
66
#define AUDIO_UNMUTE 0x00
67
68
/* Functions return value */
69
#define AUDIO_OK 0x00
70
#define AUDIO_FAIL 0xFF
71
72
/* Audio Machine States */
73
#define AUDIO_STATE_INACTIVE 0x00
74
#define AUDIO_STATE_ACTIVE 0x01
75
#define AUDIO_STATE_PLAYING 0x02
76
#define AUDIO_STATE_PAUSED 0x03
77
#define AUDIO_STATE_STOPPED 0x04
78
#define AUDIO_STATE_ERROR 0x05
79
80
/**
81
* @}
82
*/
83
84
85
/** @defgroup USBD_CORE_Exported_TypesDefinitions
86
* @{
87
*/
88
/**
89
* @}
90
*/
91
92
93
94
/** @defgroup USBD_CORE_Exported_Macros
95
* @{
96
*/
97
/**
98
* @}
99
*/
100
101
/** @defgroup USBD_CORE_Exported_Variables
102
* @{
103
*/
104
105
extern
AUDIO_FOPS_TypeDef AUDIO_OUT_fops;
106
107
/**
108
* @}
109
*/
110
111
/** @defgroup USB_CORE_Exported_Functions
112
* @{
113
*/
114
/**
115
* @}
116
*/
117
118
#endif
/* __USB_AUDIO_OUT_IF_H_ */
119
/**
120
* @}
121
*/
122
123
/**
124
* @}
125
*/
126
127
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
128
#endif
/* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
config.h
libheivs configuration file
Generated on Fri Jun 26 2015 13:11:51 for ARMEBS4 by
1.8.9.1