Contains the BSP driver for the B-L475E-IOT01 board.
Dependents: mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more
https://os.mbed.com/platforms/ST-Discovery-L475E-IOT01A/
Drivers/BSP/Components/Common/audio.h@7:bfe8272ced90, 2019-09-24 (annotated)
- Committer:
- jeromecoutant
- Date:
- Tue Sep 24 15:30:09 2019 +0200
- Revision:
- 7:bfe8272ced90
- Parent:
- 6:9dfa42666f03
Update BSP files with STM32Cube L4 V1.14.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 1:138e8076f348 | 1 | /** |
bcostm | 1:138e8076f348 | 2 | ****************************************************************************** |
bcostm | 1:138e8076f348 | 3 | * @file audio.h |
bcostm | 1:138e8076f348 | 4 | * @author MCD Application Team |
bcostm | 1:138e8076f348 | 5 | * @brief This header file contains the common defines and functions prototypes |
bcostm | 1:138e8076f348 | 6 | * for the Audio driver. |
bcostm | 1:138e8076f348 | 7 | ****************************************************************************** |
bcostm | 1:138e8076f348 | 8 | * @attention |
bcostm | 1:138e8076f348 | 9 | * |
jeromecoutant | 7:bfe8272ced90 | 10 | * <h2><center>© Copyright (c) 2017 STMicroelectronics. |
jeromecoutant | 7:bfe8272ced90 | 11 | * All rights reserved.</center></h2> |
bcostm | 1:138e8076f348 | 12 | * |
jeromecoutant | 7:bfe8272ced90 | 13 | * This software component is licensed by ST under BSD 3-Clause license, |
jeromecoutant | 7:bfe8272ced90 | 14 | * the "License"; You may not use this file except in compliance with the |
jeromecoutant | 7:bfe8272ced90 | 15 | * License. You may obtain a copy of the License at: |
jeromecoutant | 7:bfe8272ced90 | 16 | * opensource.org/licenses/BSD-3-Clause |
bcostm | 1:138e8076f348 | 17 | * |
bcostm | 1:138e8076f348 | 18 | ****************************************************************************** |
bcostm | 1:138e8076f348 | 19 | */ |
bcostm | 1:138e8076f348 | 20 | |
bcostm | 1:138e8076f348 | 21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 1:138e8076f348 | 22 | #ifndef __AUDIO_H |
bcostm | 1:138e8076f348 | 23 | #define __AUDIO_H |
bcostm | 1:138e8076f348 | 24 | |
bcostm | 1:138e8076f348 | 25 | #ifdef __cplusplus |
bcostm | 1:138e8076f348 | 26 | extern "C" { |
bcostm | 1:138e8076f348 | 27 | #endif |
bcostm | 1:138e8076f348 | 28 | |
bcostm | 1:138e8076f348 | 29 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 1:138e8076f348 | 30 | #include <stdint.h> |
bcostm | 1:138e8076f348 | 31 | |
bcostm | 1:138e8076f348 | 32 | /** @addtogroup BSP |
bcostm | 1:138e8076f348 | 33 | * @{ |
bcostm | 1:138e8076f348 | 34 | */ |
bcostm | 1:138e8076f348 | 35 | |
bcostm | 1:138e8076f348 | 36 | /** @addtogroup Components |
bcostm | 1:138e8076f348 | 37 | * @{ |
bcostm | 1:138e8076f348 | 38 | */ |
bcostm | 1:138e8076f348 | 39 | |
bcostm | 1:138e8076f348 | 40 | /** @addtogroup AUDIO |
bcostm | 1:138e8076f348 | 41 | * @{ |
bcostm | 1:138e8076f348 | 42 | */ |
bcostm | 1:138e8076f348 | 43 | |
bcostm | 1:138e8076f348 | 44 | /** @defgroup AUDIO_Exported_Constants |
bcostm | 1:138e8076f348 | 45 | * @{ |
bcostm | 1:138e8076f348 | 46 | */ |
bcostm | 1:138e8076f348 | 47 | |
bcostm | 1:138e8076f348 | 48 | /* Codec audio Standards */ |
bcostm | 1:138e8076f348 | 49 | #define CODEC_STANDARD 0x04 |
bcostm | 1:138e8076f348 | 50 | #define I2S_STANDARD I2S_STANDARD_PHILIPS |
bcostm | 1:138e8076f348 | 51 | |
bcostm | 1:138e8076f348 | 52 | /** |
bcostm | 1:138e8076f348 | 53 | * @} |
bcostm | 1:138e8076f348 | 54 | */ |
bcostm | 1:138e8076f348 | 55 | |
bcostm | 1:138e8076f348 | 56 | /** @defgroup AUDIO_Exported_Types |
bcostm | 1:138e8076f348 | 57 | * @{ |
bcostm | 1:138e8076f348 | 58 | */ |
bcostm | 1:138e8076f348 | 59 | |
bcostm | 1:138e8076f348 | 60 | /** @defgroup AUDIO_Driver_structure Audio Driver structure |
bcostm | 1:138e8076f348 | 61 | * @{ |
bcostm | 1:138e8076f348 | 62 | */ |
bcostm | 1:138e8076f348 | 63 | typedef struct |
bcostm | 1:138e8076f348 | 64 | { |
bcostm | 1:138e8076f348 | 65 | uint32_t (*Init)(uint16_t, uint16_t, uint8_t, uint32_t); |
bcostm | 1:138e8076f348 | 66 | void (*DeInit)(void); |
bcostm | 1:138e8076f348 | 67 | uint32_t (*ReadID)(uint16_t); |
bcostm | 1:138e8076f348 | 68 | uint32_t (*Play)(uint16_t, uint16_t*, uint16_t); |
bcostm | 1:138e8076f348 | 69 | uint32_t (*Pause)(uint16_t); |
bcostm | 1:138e8076f348 | 70 | uint32_t (*Resume)(uint16_t); |
bcostm | 1:138e8076f348 | 71 | uint32_t (*Stop)(uint16_t, uint32_t); |
bcostm | 1:138e8076f348 | 72 | uint32_t (*SetFrequency)(uint16_t, uint32_t); |
bcostm | 1:138e8076f348 | 73 | uint32_t (*SetVolume)(uint16_t, uint8_t); |
bcostm | 1:138e8076f348 | 74 | uint32_t (*SetMute)(uint16_t, uint32_t); |
bcostm | 1:138e8076f348 | 75 | uint32_t (*SetOutputMode)(uint16_t, uint8_t); |
bcostm | 1:138e8076f348 | 76 | uint32_t (*Reset)(uint16_t); |
bcostm | 1:138e8076f348 | 77 | }AUDIO_DrvTypeDef; |
bcostm | 1:138e8076f348 | 78 | /** |
bcostm | 1:138e8076f348 | 79 | * @} |
bcostm | 1:138e8076f348 | 80 | */ |
bcostm | 1:138e8076f348 | 81 | |
bcostm | 1:138e8076f348 | 82 | /** |
bcostm | 1:138e8076f348 | 83 | * @} |
bcostm | 1:138e8076f348 | 84 | */ |
bcostm | 1:138e8076f348 | 85 | |
bcostm | 1:138e8076f348 | 86 | /** |
bcostm | 1:138e8076f348 | 87 | * @} |
bcostm | 1:138e8076f348 | 88 | */ |
bcostm | 1:138e8076f348 | 89 | |
bcostm | 1:138e8076f348 | 90 | /** |
bcostm | 1:138e8076f348 | 91 | * @} |
bcostm | 1:138e8076f348 | 92 | */ |
bcostm | 1:138e8076f348 | 93 | |
bcostm | 1:138e8076f348 | 94 | /** |
bcostm | 1:138e8076f348 | 95 | * @} |
bcostm | 1:138e8076f348 | 96 | */ |
bcostm | 1:138e8076f348 | 97 | |
bcostm | 1:138e8076f348 | 98 | #ifdef __cplusplus |
bcostm | 1:138e8076f348 | 99 | } |
bcostm | 1:138e8076f348 | 100 | #endif |
bcostm | 1:138e8076f348 | 101 | |
bcostm | 1:138e8076f348 | 102 | #endif /* __AUDIO_H */ |
bcostm | 1:138e8076f348 | 103 | |
bcostm | 1:138e8076f348 | 104 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |