87 #include "stm32f4xx_rcc.h" 386 DCMI->IER |= DCMI_IT;
391 DCMI->IER &= (uint16_t)(~DCMI_IT);
417 uint32_t dcmireg, tempreg = 0;
423 dcmireg = (((uint16_t)DCMI_FLAG) >> 12);
429 else if (dcmireg == 0x02)
435 tempreg =
DCMI->MISR;
438 if ((tempreg & DCMI_FLAG) != (uint16_t)
RESET )
469 DCMI->ICR = DCMI_FLAG;
486 uint32_t itstatus = 0;
491 itstatus =
DCMI->MISR & DCMI_IT;
493 if ((itstatus != (uint16_t)
RESET))
DCMI Init structure definition.
uint16_t DCMI_PCKPolarity
void DCMI_CROPConfig(DCMI_CROPInitTypeDef *DCMI_CROPInitStruct)
Initializes the DCMI peripheral CROP mode according to the specified parameters in the DCMI_CROPInitS...
#define IS_DCMI_HSPOLARITY(POLARITY)
uint16_t DCMI_CaptureCount
uint8_t DCMI_FrameEndCode
#define IS_DCMI_SYNCHRO(MODE)
DCMI CROP Init structure definition.
#define DCMI_ExtendedDataMode_8b
uint16_t DCMI_SynchroMode
uint16_t DCMI_CaptureRate
uint16_t DCMI_ExtendedDataMode
void assert_param(int val)
uint32_t DCMI_ReadData(void)
Reads the data stored in the DR register.
uint8_t DCMI_FrameStartCode
#define DCMI_CaptureRate_All_Frame
#define IS_FUNCTIONAL_STATE(STATE)
void DCMI_Cmd(FunctionalState NewState)
Enables or disables the DCMI interface.
void DCMI_Init(DCMI_InitTypeDef *DCMI_InitStruct)
Initializes the DCMI according to the specified parameters in the DCMI_InitStruct.
uint16_t DCMI_HorizontalOffsetCount
#define DCMI_VSPolarity_Low
#define IS_DCMI_VSPOLARITY(POLARITY)
#define IS_DCMI_CONFIG_IT(IT)
#define IS_DCMI_CAPTURE_RATE(RATE)
void DCMI_SetEmbeddedSynchroCodes(DCMI_CodesInitTypeDef *DCMI_CodesInitStruct)
Sets the embedded synchronization codes.
#define DCMI_SynchroMode_Hardware
#define IS_DCMI_EXTENDED_DATA(DATA)
static volatile int16_t temp
void DCMI_CaptureCmd(FunctionalState NewState)
Enables or disables the DCMI Capture.
DCMI Embedded Synchronisation CODE Init structure definition.
uint16_t DCMI_VerticalStartLine
#define IS_DCMI_CLEAR_FLAG(FLAG)
uint8_t DCMI_LineStartCode
void DCMI_DeInit(void)
Deinitializes the DCMI registers to their default reset values.
#define DCMI_PCKPolarity_Falling
#define DCMI_HSPolarity_Low
void DCMI_StructInit(DCMI_InitTypeDef *DCMI_InitStruct)
Fills each DCMI_InitStruct member with its default value.
This file contains all the functions prototypes for the DCMI firmware library.
void DCMI_ClearITPendingBit(uint16_t DCMI_IT)
Clears the DCMI's interrupt pending bits.
#define IS_DCMI_GET_IT(IT)
uint16_t DCMI_VerticalLineCount
void DCMI_ITConfig(uint16_t DCMI_IT, FunctionalState NewState)
Enables or disables the DCMI interface interrupts.
#define IS_DCMI_GET_FLAG(FLAG)
#define IS_DCMI_PCKPOLARITY(POLARITY)
#define IS_DCMI_CAPTURE_MODE(MODE)
uint16_t DCMI_CaptureMode
ITStatus DCMI_GetITStatus(uint16_t DCMI_IT)
Checks whether the DCMI interrupt has occurred or not.
void DCMI_ClearFlag(uint16_t DCMI_FLAG)
Clears the DCMI's pending flags.
void DCMI_CROPCmd(FunctionalState NewState)
Enables or disables the DCMI Crop feature.
void DCMI_JPEGCmd(FunctionalState NewState)
Enables or disables the DCMI JPEG format.
FlagStatus DCMI_GetFlagStatus(uint16_t DCMI_FLAG)
Checks whether the DCMI interface flag is set or not.
#define DCMI_CaptureMode_Continuous