ST / BSP_DISCO_F413ZH

Dependents:   DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more

Committer:
Jerome Coutant
Date:
Wed Feb 28 14:35:04 2018 +0100
Revision:
3:42b354f5069c
Parent:
0:4af3ca173992
STM32Cube_FW_F4_V1.19.0 BSP_DISCO_F413ZH

Who changed what in which revision?

UserRevisionLine numberNew contents of line
arostm 0:4af3ca173992 1 /**
arostm 0:4af3ca173992 2 ******************************************************************************
arostm 0:4af3ca173992 3 * @file audio.h
arostm 0:4af3ca173992 4 * @author MCD Application Team
arostm 0:4af3ca173992 5 * @version V4.0.1
arostm 0:4af3ca173992 6 * @date 21-July-2015
arostm 0:4af3ca173992 7 * @brief This header file contains the common defines and functions prototypes
arostm 0:4af3ca173992 8 * for the Audio driver.
arostm 0:4af3ca173992 9 ******************************************************************************
arostm 0:4af3ca173992 10 * @attention
arostm 0:4af3ca173992 11 *
arostm 0:4af3ca173992 12 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
arostm 0:4af3ca173992 13 *
arostm 0:4af3ca173992 14 * Redistribution and use in source and binary forms, with or without modification,
arostm 0:4af3ca173992 15 * are permitted provided that the following conditions are met:
arostm 0:4af3ca173992 16 * 1. Redistributions of source code must retain the above copyright notice,
arostm 0:4af3ca173992 17 * this list of conditions and the following disclaimer.
arostm 0:4af3ca173992 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
arostm 0:4af3ca173992 19 * this list of conditions and the following disclaimer in the documentation
arostm 0:4af3ca173992 20 * and/or other materials provided with the distribution.
arostm 0:4af3ca173992 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
arostm 0:4af3ca173992 22 * may be used to endorse or promote products derived from this software
arostm 0:4af3ca173992 23 * without specific prior written permission.
arostm 0:4af3ca173992 24 *
arostm 0:4af3ca173992 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
arostm 0:4af3ca173992 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
arostm 0:4af3ca173992 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
arostm 0:4af3ca173992 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
arostm 0:4af3ca173992 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
arostm 0:4af3ca173992 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
arostm 0:4af3ca173992 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
arostm 0:4af3ca173992 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
arostm 0:4af3ca173992 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
arostm 0:4af3ca173992 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
arostm 0:4af3ca173992 35 *
arostm 0:4af3ca173992 36 ******************************************************************************
arostm 0:4af3ca173992 37 */
arostm 0:4af3ca173992 38
arostm 0:4af3ca173992 39 /* Define to prevent recursive inclusion -------------------------------------*/
arostm 0:4af3ca173992 40 #ifndef __AUDIO_H
arostm 0:4af3ca173992 41 #define __AUDIO_H
arostm 0:4af3ca173992 42
arostm 0:4af3ca173992 43 #ifdef __cplusplus
arostm 0:4af3ca173992 44 extern "C" {
arostm 0:4af3ca173992 45 #endif
arostm 0:4af3ca173992 46
arostm 0:4af3ca173992 47 /* Includes ------------------------------------------------------------------*/
arostm 0:4af3ca173992 48 #include <stdint.h>
arostm 0:4af3ca173992 49
arostm 0:4af3ca173992 50 /** @addtogroup BSP
arostm 0:4af3ca173992 51 * @{
arostm 0:4af3ca173992 52 */
arostm 0:4af3ca173992 53
arostm 0:4af3ca173992 54 /** @addtogroup Components
arostm 0:4af3ca173992 55 * @{
arostm 0:4af3ca173992 56 */
arostm 0:4af3ca173992 57
arostm 0:4af3ca173992 58 /** @addtogroup AUDIO
arostm 0:4af3ca173992 59 * @{
arostm 0:4af3ca173992 60 */
arostm 0:4af3ca173992 61
arostm 0:4af3ca173992 62 /** @defgroup AUDIO_Exported_Constants
arostm 0:4af3ca173992 63 * @{
arostm 0:4af3ca173992 64 */
arostm 0:4af3ca173992 65
arostm 0:4af3ca173992 66 /* Codec audio Standards */
arostm 0:4af3ca173992 67 #define CODEC_STANDARD 0x04
arostm 0:4af3ca173992 68 #define I2S_STANDARD I2S_STANDARD_PHILIPS
arostm 0:4af3ca173992 69
arostm 0:4af3ca173992 70 /**
arostm 0:4af3ca173992 71 * @}
arostm 0:4af3ca173992 72 */
arostm 0:4af3ca173992 73
arostm 0:4af3ca173992 74 /** @defgroup AUDIO_Exported_Types
arostm 0:4af3ca173992 75 * @{
arostm 0:4af3ca173992 76 */
arostm 0:4af3ca173992 77
arostm 0:4af3ca173992 78 /** @defgroup AUDIO_Driver_structure Audio Driver structure
arostm 0:4af3ca173992 79 * @{
arostm 0:4af3ca173992 80 */
arostm 0:4af3ca173992 81 typedef struct
arostm 0:4af3ca173992 82 {
arostm 0:4af3ca173992 83 uint32_t (*Init)(uint16_t, uint16_t, uint8_t, uint32_t);
arostm 0:4af3ca173992 84 void (*DeInit)(void);
arostm 0:4af3ca173992 85 uint32_t (*ReadID)(uint16_t);
arostm 0:4af3ca173992 86 uint32_t (*Play)(uint16_t, uint16_t*, uint16_t);
arostm 0:4af3ca173992 87 uint32_t (*Pause)(uint16_t);
arostm 0:4af3ca173992 88 uint32_t (*Resume)(uint16_t);
arostm 0:4af3ca173992 89 uint32_t (*Stop)(uint16_t, uint32_t);
arostm 0:4af3ca173992 90 uint32_t (*SetFrequency)(uint16_t, uint32_t);
arostm 0:4af3ca173992 91 uint32_t (*SetVolume)(uint16_t, uint8_t);
arostm 0:4af3ca173992 92 uint32_t (*SetMute)(uint16_t, uint32_t);
arostm 0:4af3ca173992 93 uint32_t (*SetOutputMode)(uint16_t, uint8_t);
arostm 0:4af3ca173992 94 uint32_t (*Reset)(uint16_t);
arostm 0:4af3ca173992 95 }AUDIO_DrvTypeDef;
arostm 0:4af3ca173992 96 /**
arostm 0:4af3ca173992 97 * @}
arostm 0:4af3ca173992 98 */
arostm 0:4af3ca173992 99
arostm 0:4af3ca173992 100 /**
arostm 0:4af3ca173992 101 * @}
arostm 0:4af3ca173992 102 */
arostm 0:4af3ca173992 103
arostm 0:4af3ca173992 104 /**
arostm 0:4af3ca173992 105 * @}
arostm 0:4af3ca173992 106 */
arostm 0:4af3ca173992 107
arostm 0:4af3ca173992 108 /**
arostm 0:4af3ca173992 109 * @}
arostm 0:4af3ca173992 110 */
arostm 0:4af3ca173992 111
arostm 0:4af3ca173992 112 /**
arostm 0:4af3ca173992 113 * @}
arostm 0:4af3ca173992 114 */
arostm 0:4af3ca173992 115
arostm 0:4af3ca173992 116 #ifdef __cplusplus
arostm 0:4af3ca173992 117 }
arostm 0:4af3ca173992 118 #endif
arostm 0:4af3ca173992 119
arostm 0:4af3ca173992 120 #endif /* __AUDIO_H */
arostm 0:4af3ca173992 121
arostm 0:4af3ca173992 122 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/