21 #ifndef __STM32F4xx_HAL_DCMI_EX_H
22 #define __STM32F4xx_HAL_DCMI_EX_H
28 #if defined(STM32F407xx) || defined(STM32F417xx) || defined(STM32F427xx) || defined(STM32F437xx) ||\
29 defined(STM32F429xx) || defined(STM32F439xx) || defined(STM32F446xx) || defined(STM32F469xx) ||\
33 #include "stm32f4xx_hal_def.h"
54 uint8_t FrameStartCode;
55 uint8_t LineStartCode;
58 }DCMI_CodesInitTypeDef;
80 uint32_t ExtendedDataMode;
83 DCMI_CodesInitTypeDef SyncroCode;
87 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
88 uint32_t ByteSelectMode;
91 uint32_t ByteSelectStart;
94 uint32_t LineSelectMode;
97 uint32_t LineSelectStart;
108 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
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)
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
170 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)
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))
179 #define IS_DCMI_BYTE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OEBS_ODD) || \
180 ((POLARITY) == DCMI_OEBS_EVEN))
182 #define IS_DCMI_LINE_SELECT_MODE(MODE)(((MODE) == DCMI_LSM_ALL) || \
183 ((MODE) == DCMI_LSM_ALTERNATE_2))
185 #define IS_DCMI_LINE_SELECT_START(POLARITY)(((POLARITY) == DCMI_OELS_ODD) || \
186 ((POLARITY) == DCMI_OELS_EVEN))