158 DCMI->CR &= ~(DCMI_CR_ENABLE | DCMI_CR_CAPTURE);
163 temp &= ~((uint32_t)DCMI_CR_CM | DCMI_CR_ESS | DCMI_CR_PCKPOL |
164 DCMI_CR_HSPOL | DCMI_CR_VSPOL | DCMI_CR_FCRC_0 |
165 DCMI_CR_FCRC_1 | DCMI_CR_EDM_0 | DCMI_CR_EDM_1);
226 assert_param(IS_FUNCTIONAL_STATE(NewState));
228 if (NewState != DISABLE)
231 DCMI->CR |= (uint32_t)DCMI_CR_CROP;
236 DCMI->CR &= ~(uint32_t)DCMI_CR_CROP;
264 assert_param(IS_FUNCTIONAL_STATE(NewState));
266 if (NewState != DISABLE)
269 DCMI->CR |= (uint32_t)DCMI_CR_JPEG;
274 DCMI->CR &= ~(uint32_t)DCMI_CR_JPEG;
302 assert_param(IS_FUNCTIONAL_STATE(NewState));
304 if (NewState != DISABLE)
307 DCMI->CR |= (uint32_t)DCMI_CR_ENABLE;
312 DCMI->CR &= ~(uint32_t)DCMI_CR_ENABLE;
325 assert_param(IS_FUNCTIONAL_STATE(NewState));
327 if (NewState != DISABLE)
330 DCMI->CR |= (uint32_t)DCMI_CR_CAPTURE;
335 DCMI->CR &= ~(uint32_t)DCMI_CR_CAPTURE;
380 assert_param(IS_DCMI_CONFIG_IT(DCMI_IT));
381 assert_param(IS_FUNCTIONAL_STATE(NewState));
383 if (NewState != DISABLE)
386 DCMI->IER |= DCMI_IT;
391 DCMI->IER &= (uint16_t)(~DCMI_IT);
416 FlagStatus bitstatus = RESET;
417 uint32_t dcmireg, tempreg = 0;
420 assert_param(IS_DCMI_GET_FLAG(DCMI_FLAG));
423 dcmireg = (((uint16_t)DCMI_FLAG) >> 12);
429 else if (dcmireg == 0x02)
435 tempreg = DCMI->MISR;
438 if ((tempreg & DCMI_FLAG) != (uint16_t)RESET )
464 assert_param(IS_DCMI_CLEAR_FLAG(DCMI_FLAG));
469 DCMI->ICR = DCMI_FLAG;
485 ITStatus bitstatus = RESET;
486 uint32_t itstatus = 0;
489 assert_param(IS_DCMI_GET_IT(DCMI_IT));
491 itstatus = DCMI->MISR & DCMI_IT;
493 if ((itstatus != (uint16_t)RESET))
This file contains all the functions prototypes for the RCC firmware library.
uint16_t DCMI_CaptureRate
void DCMI_JPEGCmd(FunctionalState NewState)
Enables or disables the DCMI JPEG format.
DCMI Init structure definition.
#define DCMI_PCKPolarity_Falling
uint8_t DCMI_FrameEndCode
uint16_t DCMI_VerticalLineCount
uint16_t DCMI_SynchroMode
uint8_t DCMI_LineStartCode
uint16_t DCMI_CaptureCount
DCMI Embedded Synchronisation CODE Init structure definition.
#define DCMI_VSPolarity_Low
void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState)
Enables or disables the DCMI interface interrupts.
void DCMI_CROPConfig(DCMI_CROPInitTypeDef *DCMI_CROPInitStruct)
Initializes the DCMI peripheral CROP mode according to the specified parameters in the DCMI_CROPInitS...
#define DCMI_ExtendedDataMode_8b
void DCMI_CaptureCmd(FunctionalState NewState)
Enables or disables the DCMI Capture.
uint16_t DCMI_PCKPolarity
uint32_t DCMI_ReadData(void)
Reads the data stored in the DR register.
#define DCMI_HSPolarity_Low
void DCMI_Init(DCMI_InitTypeDef *DCMI_InitStruct)
Initializes the DCMI according to the specified parameters in the DCMI_InitStruct.
#define DCMI_CaptureRate_All_Frame
uint16_t DCMI_CaptureMode
This file contains all the functions prototypes for the DCMI firmware library.
uint8_t DCMI_FrameStartCode
uint16_t DCMI_HorizontalOffsetCount
void DCMI_CROPCmd(FunctionalState NewState)
Enables or disables the DCMI Crop feature.
uint16_t DCMI_ExtendedDataMode
#define DCMI_CaptureMode_Continuous
void DCMI_ClearFlag(uint16_t DCMI_FLAG)
Clears the DCMI's pending flags.
void DCMI_StructInit(DCMI_InitTypeDef *DCMI_InitStruct)
Fills each DCMI_InitStruct member with its default value.
#define DCMI_SynchroMode_Hardware
FlagStatus DCMI_GetFlagStatus(uint16_t DCMI_FLAG)
Checks whether the DCMI interface flag is set or not.
void DCMI_SetEmbeddedSynchroCodes(DCMI_CodesInitTypeDef *DCMI_CodesInitStruct)
Sets the embedded synchronization codes.
uint16_t DCMI_VerticalStartLine
DCMI CROP Init structure definition.
void DCMI_Cmd(FunctionalState NewState)
Enables or disables the DCMI interface.
void DCMI_ClearITPendingBit(uint16_t DCMI_IT)
Clears the DCMI's interrupt pending bits.
ITStatus DCMI_GetITStatus(uint16_t DCMI_IT)
Checks whether the DCMI interrupt has occurred or not.
void DCMI_DeInit(void)
Deinitializes the DCMI registers to their default reset values.