extern
porcupine
demo
mcu
stm32f411
stm32f411e-disco
Drivers
STM32F4xx_HAL_Driver
Inc
stm32f411/stm32f411e-disco/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sai_ex.h
Go to the documentation of this file.
1
20
/* Define to prevent recursive inclusion -------------------------------------*/
21
#ifndef __STM32F4xx_HAL_SAI_EX_H
22
#define __STM32F4xx_HAL_SAI_EX_H
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
/* Includes ------------------------------------------------------------------*/
29
#include "
stm32f4xx_hal_def.h
"
30
39
#if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) || \
40
defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F413xx) || \
41
defined(STM32F423xx)
42
43
/* Exported types ------------------------------------------------------------*/
44
/* Exported constants --------------------------------------------------------*/
48
#if defined(STM32F413xx) || defined(STM32F423xx)
49
#define SAI_CLKSOURCE_PLLI2S 0x00000000U
50
#define SAI_CLKSOURCE_EXT 0x00100000U
51
#define SAI_CLKSOURCE_PLLR 0x00200000U
52
#define SAI_CLKSOURCE_HS 0x00300000U
53
#else
54
#define SAI_CLKSOURCE_PLLSAI 0x00000000U
55
#define SAI_CLKSOURCE_PLLI2S 0x00100000U
56
#define SAI_CLKSOURCE_EXT 0x00200000U
57
#define SAI_CLKSOURCE_NA 0x00400000U
58
#endif
59
60
65
/* Exported functions --------------------------------------------------------*/
74
/* Extended features functions ************************************************/
75
void
SAI_BlockSynchroConfig(
SAI_HandleTypeDef
*hsai);
76
uint32_t SAI_GetInputClock(
SAI_HandleTypeDef
*hsai);
84
/* Private types -------------------------------------------------------------*/
85
/* Private variables ---------------------------------------------------------*/
86
/* Private constants ---------------------------------------------------------*/
87
/* Private macros ------------------------------------------------------------*/
88
#if defined(STM32F413xx) || defined(STM32F423xx)
89
#define IS_SAI_CLK_SOURCE(SOURCE) (((SOURCE) == SAI_CLKSOURCE_PLLI2S) ||\
90
((SOURCE) == SAI_CLKSOURCE_EXT)||\
91
((SOURCE) == SAI_CLKSOURCE_PLLR)||\
92
((SOURCE) == SAI_CLKSOURCE_HS))
93
#else
94
#define IS_SAI_CLK_SOURCE(SOURCE) (((SOURCE) == SAI_CLKSOURCE_PLLSAI) ||\
95
((SOURCE) == SAI_CLKSOURCE_EXT)||\
96
((SOURCE) == SAI_CLKSOURCE_PLLI2S)||\
97
((SOURCE) == SAI_CLKSOURCE_NA))
98
#endif
99
/* Private functions ---------------------------------------------------------*/
100
101
#endif
/* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx || STM32F479xx || STM32F413xx || STM32F423xx */
102
110
#ifdef __cplusplus
111
}
112
#endif
113
114
#endif
/* __STM32F4xx_HAL_SAI_EX_H */
115
116
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
stm32f4xx_hal_def.h
This file contains HAL common defines, enumeration, macros and structures definitions.
__SAI_HandleTypeDef
Definition:
stm32f7xx_hal_sai.h:191
picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:52