STM324x9I_EVAL BSP User Manual: STM324x9I EVAL CAMERA Exported Functions

STM32429I/STM32439I/STM32469I/STM32479I EVAL BSP Drivers

STM324x9I_EVAL BSP User Manual
STM324x9I EVAL CAMERA Exported Functions

Functions

uint8_t BSP_CAMERA_Init (uint32_t Resolution)
 Initializes the camera.
void BSP_CAMERA_ContinuousStart (uint8_t *buff)
 Starts the camera capture in continuous mode.
void BSP_CAMERA_SnapshotStart (uint8_t *buff)
 Starts the camera capture in snapshot mode.
void BSP_CAMERA_Suspend (void)
 Suspend the CAMERA capture.
void BSP_CAMERA_Resume (void)
 Resume the CAMERA capture.
uint8_t BSP_CAMERA_Stop (void)
 Stop the CAMERA capture.
void BSP_CAMERA_LineEventCallback (void)
 Line Event callback.
void BSP_CAMERA_VsyncEventCallback (void)
 VSYNC Event callback.
void BSP_CAMERA_FrameEventCallback (void)
 Frame Event callback.
void BSP_CAMERA_ErrorCallback (void)
 Error callback.
void BSP_CAMERA_ContrastBrightnessConfig (uint32_t contrast_level, uint32_t brightness_level)
 Configures the camera contrast and brightness.
void BSP_CAMERA_BlackWhiteConfig (uint32_t Mode)
 Configures the camera white balance.
void BSP_CAMERA_ColorEffectConfig (uint32_t Effect)
 Configures the camera color effect.
void BSP_CAMERA_IRQHandler (void)
 Handles DCMI interrupt request.
void BSP_CAMERA_DMA_IRQHandler (void)
 Handles DMA interrupt request.

Function Documentation

void BSP_CAMERA_BlackWhiteConfig ( uint32_t  Mode)

Configures the camera white balance.

Parameters:
Mode,:black_white mode This parameter can be one of the following values:
  • CAMERA_BLACK_WHITE_BW
  • CAMERA_BLACK_WHITE_NEGATIVE
  • CAMERA_BLACK_WHITE_BW_NEGATIVE
  • CAMERA_BLACK_WHITE_NORMAL

Definition at line 288 of file stm324x9i_eval_camera.c.

References camera_drv, and CAMERA_I2C_ADDRESS.

void BSP_CAMERA_ColorEffectConfig ( uint32_t  Effect)

Configures the camera color effect.

Parameters:
Effect,:Color effect This parameter can be one of the following values:
  • CAMERA_COLOR_EFFECT_ANTIQUE
  • CAMERA_COLOR_EFFECT_BLUE
  • CAMERA_COLOR_EFFECT_GREEN
  • CAMERA_COLOR_EFFECT_RED

Definition at line 305 of file stm324x9i_eval_camera.c.

References camera_drv, and CAMERA_I2C_ADDRESS.

void BSP_CAMERA_ContinuousStart ( uint8_t *  buff)

Starts the camera capture in continuous mode.

Parameters:
buff,:pointer to the camera output buffer

Definition at line 187 of file stm324x9i_eval_camera.c.

References current_resolution, GetSize(), and hdcmi_eval.

void BSP_CAMERA_ContrastBrightnessConfig ( uint32_t  contrast_level,
uint32_t  brightness_level 
)

Configures the camera contrast and brightness.

Parameters:
contrast_level,:Contrast level This parameter can be one of the following values:
  • CAMERA_CONTRAST_LEVEL4: for contrast +2
  • CAMERA_CONTRAST_LEVEL3: for contrast +1
  • CAMERA_CONTRAST_LEVEL2: for contrast 0
  • CAMERA_CONTRAST_LEVEL1: for contrast -1
  • CAMERA_CONTRAST_LEVEL0: for contrast -2
brightness_level,:Contrast level This parameter can be one of the following values:
  • CAMERA_BRIGHTNESS_LEVEL4: for brightness +2
  • CAMERA_BRIGHTNESS_LEVEL3: for brightness +1
  • CAMERA_BRIGHTNESS_LEVEL2: for brightness 0
  • CAMERA_BRIGHTNESS_LEVEL1: for brightness -1
  • CAMERA_BRIGHTNESS_LEVEL0: for brightness -2

Definition at line 271 of file stm324x9i_eval_camera.c.

References camera_drv, and CAMERA_I2C_ADDRESS.

void BSP_CAMERA_DMA_IRQHandler ( void  )

Handles DMA interrupt request.

Definition at line 324 of file stm324x9i_eval_camera.c.

References hdcmi_eval.

void BSP_CAMERA_ErrorCallback ( void  )

Error callback.

Definition at line 541 of file stm324x9i_eval_camera.c.

Referenced by HAL_DCMI_ErrorCallback().

Frame Event callback.

Definition at line 522 of file stm324x9i_eval_camera.c.

Referenced by HAL_DCMI_FrameEventCallback().

uint8_t BSP_CAMERA_Init ( uint32_t  Resolution)

Initializes the camera.

Parameters:
Resolution,:Camera Resolution
Return values:
Camerastatus

Definition at line 130 of file stm324x9i_eval_camera.c.

References BSP_IO_ConfigPin(), BSP_IO_Init(), BSP_IO_ReadPin(), BSP_IO_WritePin(), CAM_PLUG_PIN, camera_drv, CAMERA_ERROR, CAMERA_I2C_ADDRESS, CAMERA_OK, current_resolution, DCMI_MspInit(), hdcmi_eval, and XSDN_PIN.

void BSP_CAMERA_IRQHandler ( void  )

Handles DCMI interrupt request.

Definition at line 316 of file stm324x9i_eval_camera.c.

References hdcmi_eval.

Line Event callback.

Definition at line 484 of file stm324x9i_eval_camera.c.

Referenced by HAL_DCMI_LineEventCallback().

void BSP_CAMERA_Resume ( void  )

Resume the CAMERA capture.

Definition at line 218 of file stm324x9i_eval_camera.c.

References hdcmi_eval.

void BSP_CAMERA_SnapshotStart ( uint8_t *  buff)

Starts the camera capture in snapshot mode.

Parameters:
buff,:pointer to the camera output buffer

Definition at line 197 of file stm324x9i_eval_camera.c.

References current_resolution, GetSize(), and hdcmi_eval.

uint8_t BSP_CAMERA_Stop ( void  )

Stop the CAMERA capture.

Return values:
Camerastatus

Definition at line 230 of file stm324x9i_eval_camera.c.

References BSP_IO_ConfigPin(), BSP_IO_Init(), BSP_IO_WritePin(), CAMERA_ERROR, CAMERA_OK, hdcmi_eval, and XSDN_PIN.

void BSP_CAMERA_Suspend ( void  )

Suspend the CAMERA capture.

Definition at line 206 of file stm324x9i_eval_camera.c.

References hdcmi_eval.

VSYNC Event callback.

Definition at line 503 of file stm324x9i_eval_camera.c.

Referenced by HAL_DCMI_VsyncEventCallback().

Generated on Wed Jan 13 2016 15:52:54 for STM324x9I_EVAL BSP User Manual by   doxygen 1.7.6.1