STM32746G-Discovery BSP User Manual: STM32746G_DISCOVERY_CAMERA Exported Functions

STM32746G-Discovery BSP Drivers

STM32746G-Discovery BSP User Manual
STM32746G_DISCOVERY_CAMERA Exported Functions

Functions

uint8_t BSP_CAMERA_Init (uint32_t Resolution)
 Initializes the camera.
uint8_t BSP_CAMERA_DeInit (void)
 DeInitializes 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_PwrUp (void)
 CANERA power up.
void BSP_CAMERA_PwrDown (void)
 CAMERA power down.
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.
__weak void BSP_CAMERA_MspInit (DCMI_HandleTypeDef *hdcmi, void *Params)
 Initializes the DCMI MSP.
__weak void BSP_CAMERA_MspDeInit (DCMI_HandleTypeDef *hdcmi, void *Params)
 DeInitializes the DCMI MSP.
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 in pixels unit.

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
Return values:
None

Definition at line 363 of file stm32746g_discovery_camera.c.

References camera_drv, and CameraHwAddress.

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
Return values:
None

Definition at line 381 of file stm32746g_discovery_camera.c.

References camera_drv, and CameraHwAddress.

void BSP_CAMERA_ContinuousStart ( uint8_t *  buff)

Starts the camera capture in continuous mode.

Parameters:
buff,:pointer to the camera output buffer
Return values:
None

Definition at line 223 of file stm32746g_discovery_camera.c.

References CameraCurrentResolution, GetSize(), and hDcmiHandler.

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
Return values:
None

Definition at line 345 of file stm32746g_discovery_camera.c.

References camera_drv, and CameraHwAddress.

uint8_t BSP_CAMERA_DeInit ( void  )

DeInitializes the camera.

Return values:
Camerastatus

Definition at line 209 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_MspDeInit(), CAMERA_OK, and hDcmiHandler.

void BSP_CAMERA_ErrorCallback ( void  )

Error callback.

Return values:
None

Definition at line 628 of file stm32746g_discovery_camera.c.

Referenced by HAL_DCMI_ErrorCallback().

Frame Event callback.

Return values:
None

Definition at line 607 of file stm32746g_discovery_camera.c.

Referenced by HAL_DCMI_FrameEventCallback().

uint8_t BSP_CAMERA_Init ( uint32_t  Resolution)

Initializes the camera.

Parameters:
Resolution: camera sensor requested resolution (x, y) : standard resolution naming QQVGA, QVGA, VGA ...
Return values:
Camerastatus

Definition at line 140 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_MspInit(), BSP_CAMERA_PwrUp(), CAMERA_480x272_RES_X, CAMERA_480x272_RES_Y, camera_drv, CAMERA_ERROR, CAMERA_I2C_ADDRESS, CAMERA_NOT_SUPPORTED, CAMERA_OK, CAMERA_VGA_RES_X, CAMERA_VGA_RES_Y, CameraCurrentResolution, CameraHwAddress, and hDcmiHandler.

Line Event callback.

Return values:
None

Definition at line 565 of file stm32746g_discovery_camera.c.

Referenced by HAL_DCMI_LineEventCallback().

void BSP_CAMERA_MspDeInit ( DCMI_HandleTypeDef *  hdcmi,
void *  Params 
)

DeInitializes the DCMI MSP.

Parameters:
hdcmi,:HDMI handle
Params
Return values:
None

Definition at line 533 of file stm32746g_discovery_camera.c.

Referenced by BSP_CAMERA_DeInit().

void BSP_CAMERA_MspInit ( DCMI_HandleTypeDef *  hdcmi,
void *  Params 
)

Initializes the DCMI MSP.

Parameters:
hdcmi,:HDMI handle
Params
Return values:
None

Definition at line 436 of file stm32746g_discovery_camera.c.

Referenced by BSP_CAMERA_Init().

void BSP_CAMERA_PwrDown ( void  )

CAMERA power down.

Return values:
None

Definition at line 308 of file stm32746g_discovery_camera.c.

Referenced by BSP_CAMERA_Stop().

void BSP_CAMERA_PwrUp ( void  )

CANERA power up.

Return values:
None

Definition at line 283 of file stm32746g_discovery_camera.c.

Referenced by BSP_CAMERA_Init().

void BSP_CAMERA_Resume ( void  )

Resume the CAMERA capture.

Return values:
None

Definition at line 254 of file stm32746g_discovery_camera.c.

References hDcmiHandler.

void BSP_CAMERA_SnapshotStart ( uint8_t *  buff)

Starts the camera capture in snapshot mode.

Parameters:
buff,:pointer to the camera output buffer
Return values:
None

Definition at line 234 of file stm32746g_discovery_camera.c.

References CameraCurrentResolution, GetSize(), and hDcmiHandler.

uint8_t BSP_CAMERA_Stop ( void  )

Stop the CAMERA capture.

Return values:
Camerastatus

Definition at line 264 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_PwrDown(), CAMERA_ERROR, CAMERA_OK, and hDcmiHandler.

void BSP_CAMERA_Suspend ( void  )

Suspend the CAMERA capture.

Return values:
None

Definition at line 244 of file stm32746g_discovery_camera.c.

References hDcmiHandler.

VSYNC Event callback.

Return values:
None

Definition at line 586 of file stm32746g_discovery_camera.c.

Referenced by HAL_DCMI_VsyncEventCallback().

static uint32_t GetSize ( uint32_t  resolution) [static]

Get the capture size in pixels unit.

Parameters:
resolution,:the current resolution.
Return values:
capturesize in pixels unit.

Definition at line 394 of file stm32746g_discovery_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
Return values:
None

Definition at line 619 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_ErrorCallback().

void HAL_DCMI_FrameEventCallback ( DCMI_HandleTypeDef *  hdcmi)

Frame event callback.

Parameters:
hdcmi,:pointer to the DCMI handle
Return values:
None

Definition at line 598 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_FrameEventCallback().

void HAL_DCMI_LineEventCallback ( DCMI_HandleTypeDef *  hdcmi)

Line event callback.

Parameters:
hdcmi,:pointer to the DCMI handle
Return values:
None

Definition at line 556 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_LineEventCallback().

void HAL_DCMI_VsyncEventCallback ( DCMI_HandleTypeDef *  hdcmi)

VSYNC event callback.

Parameters:
hdcmi,:pointer to the DCMI handle
Return values:
None

Definition at line 577 of file stm32746g_discovery_camera.c.

References BSP_CAMERA_VsyncEventCallback().

Generated on Fri Dec 30 2016 16:31:33 for STM32746G-Discovery BSP User Manual by   doxygen 1.7.6.1