STM324xG_EVAL BSP User Manual: STM324xG EVAL CAMERA Private Functions

STM3240G / STM3241G EVAL BSP Drivers

STM324xG_EVAL BSP User Manual
STM324xG EVAL CAMERA Private 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)
 Suspends the Camera capture.
void BSP_CAMERA_Resume (void)
 Resumes the Camera capture.
uint8_t BSP_CAMERA_Stop (void)
 Stops the Camera capture.
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.
void HAL_DCMI_LineEventCallback (DCMI_HandleTypeDef *hdcmi)
 Line event callback.
__weak void BSP_CAMERA_LineEventCallback (void)
 Line Event callback.
void HAL_DCMI_VsyncEventCallback (DCMI_HandleTypeDef *hdcmi)
 VSYNC event callback.
__weak void BSP_CAMERA_VsyncEventCallback (void)
 VSYNC Event callback.
void HAL_DCMI_FrameEventCallback (DCMI_HandleTypeDef *hdcmi)
 Frame event callback.
__weak void BSP_CAMERA_FrameEventCallback (void)
 Frame Event callback.
void HAL_DCMI_ErrorCallback (DCMI_HandleTypeDef *hdcmi)
 Error callback.
__weak void BSP_CAMERA_ErrorCallback (void)
 Error callback.
static uint32_t GetSize (uint32_t resolution)
 Get the capture size.

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 266 of file stm324xg_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 283 of file stm324xg_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 173 of file stm324xg_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,:Brightness 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 249 of file stm324xg_eval_camera.c.

References camera_drv, and CAMERA_I2C_ADDRESS.

void BSP_CAMERA_DMA_IRQHandler ( void  )

Handles DMA interrupt request.

Definition at line 302 of file stm324xg_eval_camera.c.

References hdcmi_eval.

__weak void BSP_CAMERA_ErrorCallback ( void  )

Error callback.

Definition at line 486 of file stm324xg_eval_camera.c.

Referenced by HAL_DCMI_ErrorCallback().

__weak void BSP_CAMERA_FrameEventCallback ( void  )

Frame Event callback.

Definition at line 467 of file stm324xg_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 stm324xg_eval_camera.c.

References camera_drv, CAMERA_ERROR, CAMERA_I2C_ADDRESS, CAMERA_OK, current_resolution, DCMI_MspInit(), and hdcmi_eval.

void BSP_CAMERA_IRQHandler ( void  )

Handles DCMI interrupt request.

Definition at line 294 of file stm324xg_eval_camera.c.

References hdcmi_eval.

__weak void BSP_CAMERA_LineEventCallback ( void  )

Line Event callback.

Definition at line 429 of file stm324xg_eval_camera.c.

Referenced by HAL_DCMI_LineEventCallback().

void BSP_CAMERA_Resume ( void  )

Resumes the Camera capture.

Definition at line 203 of file stm324xg_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 183 of file stm324xg_eval_camera.c.

References current_resolution, GetSize(), and hdcmi_eval.

uint8_t BSP_CAMERA_Stop ( void  )

Stops the Camera capture.

Return values:
Camerastatus

Definition at line 215 of file stm324xg_eval_camera.c.

References CAMERA_ERROR, CAMERA_OK, and hdcmi_eval.

void BSP_CAMERA_Suspend ( void  )

Suspends the Camera capture.

Definition at line 192 of file stm324xg_eval_camera.c.

References hdcmi_eval.

__weak void BSP_CAMERA_VsyncEventCallback ( void  )

VSYNC Event callback.

Definition at line 448 of file stm324xg_eval_camera.c.

Referenced by HAL_DCMI_VsyncEventCallback().

static uint32_t GetSize ( uint32_t  resolution) [static]

Get the capture size.

Parameters:
resolution,:the current resolution.
Return values:
cpaturesize

Definition at line 312 of file stm324xg_eval_camera.c.

Referenced by BSP_CAMERA_ContinuousStart(), and BSP_CAMERA_SnapshotStart().

void HAL_DCMI_ErrorCallback ( DCMI_HandleTypeDef *  hdcmi)

Error callback.

Parameters:
hdcmi,:pointer to the DCMI handle

Definition at line 478 of file stm324xg_eval_camera.c.

References BSP_CAMERA_ErrorCallback().

void HAL_DCMI_FrameEventCallback ( DCMI_HandleTypeDef *  hdcmi)

Frame event callback.

Parameters:
hdcmi,:pointer to the DCMI handle

Definition at line 459 of file stm324xg_eval_camera.c.

References BSP_CAMERA_FrameEventCallback().

void HAL_DCMI_LineEventCallback ( DCMI_HandleTypeDef *  hdcmi)

Line event callback.

Parameters:
hdcmi,:pointer to the DCMI handle

Definition at line 421 of file stm324xg_eval_camera.c.

References BSP_CAMERA_LineEventCallback().

void HAL_DCMI_VsyncEventCallback ( DCMI_HandleTypeDef *  hdcmi)

VSYNC event callback.

Parameters:
hdcmi,:pointer to the DCMI handle

Definition at line 440 of file stm324xg_eval_camera.c.

References BSP_CAMERA_VsyncEventCallback().

Generated on Fri Jan 15 2016 14:22:30 for STM324xG_EVAL BSP User Manual by   doxygen 1.7.6.1