STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
audio.h
Go to the documentation of this file.
1 
39 /* Define to prevent recursive inclusion -------------------------------------*/
40 #ifndef __AUDIO_H
41 #define __AUDIO_H
42 
43 #ifdef __cplusplus
44  extern "C" {
45 #endif
46 
47 /* Includes ------------------------------------------------------------------*/
48 #include <stdint.h>
49 
66 /* Codec audio Standards */
67 #define CODEC_STANDARD 0x04
68 #define I2S_STANDARD I2S_STANDARD_PHILIPS
69 
81 typedef struct
82 {
83  uint32_t (*Init)(uint16_t, uint16_t, uint8_t, uint32_t);
84  void (*DeInit)(void);
85  uint32_t (*ReadID)(uint16_t);
86  uint32_t (*Play)(uint16_t, uint16_t*, uint16_t);
87  uint32_t (*Pause)(uint16_t);
88  uint32_t (*Resume)(uint16_t);
89  uint32_t (*Stop)(uint16_t, uint32_t);
90  uint32_t (*SetFrequency)(uint16_t, uint32_t);
91  uint32_t (*SetVolume)(uint16_t, uint8_t);
92  uint32_t (*SetMute)(uint16_t, uint32_t);
93  uint32_t (*SetOutputMode)(uint16_t, uint8_t);
94  uint32_t (*Reset)(uint16_t);
116 #ifdef __cplusplus
117 }
118 #endif
119 
120 #endif /* __AUDIO_H */
121 
122 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/