ST / BSP_DISCO_L4R9I

Dependents:   DISCO_L4R9I-LCD-demo

Embed: (wiki syntax)

« Back to documentation index

stm32l4r9i_discovery_camera.c File Reference

stm32l4r9i_discovery_camera.c File Reference

This file includes the driver for Camera modules mounted on STM32L4R9I_DISCOVERY board. More...

Go to the source code of this file.

Functions

static uint32_t GetSize (uint32_t resolution)
 Get the capture size in pixels unit.
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.

Detailed Description

This file includes the driver for Camera modules mounted on STM32L4R9I_DISCOVERY board.

Author:
MCD Application Team
    How to use this driver:
    ------------------------
     - This driver is used to drive the camera.
     - The OV9655 component driver MUST be included with this driver.

    Driver description:
    -------------------
    + Initialization steps:
       o Initialize the camera using the BSP_CAMERA_Init() function.
       o Start the camera capture/snapshot using the CAMERA_Start() function.
       o Suspend, resume or stop the camera capture using the following functions:
        - BSP_CAMERA_Suspend()
        - BSP_CAMERA_Resume()
        - BSP_CAMERA_Stop()

    + Options
       o Increase or decrease on the fly the brightness and/or contrast
         using the following function:
         - BSP_CAMERA_ContrastBrightnessConfig
       o Add a special effect on the fly using the following functions:
         - BSP_CAMERA_BlackWhiteConfig()
         - BSP_CAMERA_ColorEffectConfig()
  
Attention:

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4r9i_discovery_camera.c.