stm32f4xx_hal_dcmi_ex.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32F4xx_HAL_DCMI_EX_H
22 #define __STM32F4xx_HAL_DCMI_EX_H
23 
24 #ifdef __cplusplus
25  extern "C" {
26 #endif
27 
28 #if defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) ||\
29  defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) ||\
30  defined(STM32F479xx)
31 
32 /* Includes ------------------------------------------------------------------*/
33 #include "stm32f4xx_hal_def.h"
34 
35 
45 /* Exported types ------------------------------------------------------------*/
52 typedef struct
53 {
54  uint8_t FrameStartCode;
55  uint8_t LineStartCode;
56  uint8_t LineEndCode;
57  uint8_t FrameEndCode;
58 }DCMI_CodesInitTypeDef;
59 
63 typedef struct
64 {
65  uint32_t SynchroMode;
68  uint32_t PCKPolarity;
71  uint32_t VSPolarity;
74  uint32_t HSPolarity;
77  uint32_t CaptureRate;
80  uint32_t ExtendedDataMode;
83  DCMI_CodesInitTypeDef SyncroCode;
85  uint32_t JPEGMode;
87 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
88  uint32_t ByteSelectMode;
91  uint32_t ByteSelectStart;
94  uint32_t LineSelectMode;
97  uint32_t LineSelectStart;
100 #endif /* STM32F446xx || STM32F469xx || STM32F479xx */
101 }DCMI_InitTypeDef;
102 
107 /* Exported constants --------------------------------------------------------*/
108 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
109 
116 #define DCMI_BSM_ALL 0x00000000U
117 #define DCMI_BSM_OTHER ((uint32_t)DCMI_CR_BSM_0)
118 #define DCMI_BSM_ALTERNATE_4 ((uint32_t)DCMI_CR_BSM_1)
119 #define DCMI_BSM_ALTERNATE_2 ((uint32_t)(DCMI_CR_BSM_0 | DCMI_CR_BSM_1))
128 #define DCMI_OEBS_ODD 0x00000000U
129 #define DCMI_OEBS_EVEN ((uint32_t)DCMI_CR_OEBS)
138 #define DCMI_LSM_ALL 0x00000000U
139 #define DCMI_LSM_ALTERNATE_2 ((uint32_t)DCMI_CR_LSM)
148 #define DCMI_OELS_ODD 0x00000000U
149 #define DCMI_OELS_EVEN ((uint32_t)DCMI_CR_OELS)
158 #endif /* STM32F446xx || STM32F469xx || STM32F479xx */
159 
160 /* Exported macro ------------------------------------------------------------*/
161 /* Exported functions --------------------------------------------------------*/
162 /* Private types -------------------------------------------------------------*/
163 /* Private variables ---------------------------------------------------------*/
164 /* Private constants ---------------------------------------------------------*/
165 #define DCMI_POSITION_ESCR_LSC (uint32_t)DCMI_ESCR_LSC_Pos
166 #define DCMI_POSITION_ESCR_LEC (uint32_t)DCMI_ESCR_LEC_Pos
167 #define DCMI_POSITION_ESCR_FEC (uint32_t)DCMI_ESCR_FEC_Pos
169 /* Private macro -------------------------------------------------------------*/
170 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
171 
174 #define IS_DCMI_BYTE_SELECT_MODE(MODE)(((MODE) == DCMI_BSM_ALL) || \
175  ((MODE) == DCMI_BSM_OTHER) || \
176  ((MODE) == DCMI_BSM_ALTERNATE_4) || \
177  ((MODE) == DCMI_BSM_ALTERNATE_2))
178 
179 #define IS_DCMI_BYTE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OEBS_ODD) || \
180  ((POLARITY) == DCMI_OEBS_EVEN))
181 
182 #define IS_DCMI_LINE_SELECT_MODE(MODE)(((MODE) == DCMI_LSM_ALL) || \
183  ((MODE) == DCMI_LSM_ALTERNATE_2))
184 
185 #define IS_DCMI_LINE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OELS_ODD) || \
186  ((POLARITY) == DCMI_OELS_EVEN))
187 #endif /* STM32F446xx || STM32F469xx || STM32F479xx */
188 
192 /* Private functions ---------------------------------------------------------*/
193 #endif /* STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx ||\
194  STM32F429xx || STM32F439xx || STM32F446xx || STM32F469xx ||\
195  STM32F479xx */
196 
197 
206 #ifdef __cplusplus
207 }
208 #endif
209 
210 #endif /* __STM32F4xx_HAL_DCMI_H */
211 
212 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:52