STM32769I_EVAL BSP User Manual: stm32f769i_eval_camera.h File Reference

STM32769I_EVAL BSP

stm32f769i_eval_camera.h File Reference

This file contains the common defines and functions prototypes for the stm32f769i_eval_camera.c driver. More...

#include "../Components/s5k5cag/s5k5cag.h" #include "stm32f769i_eval_io.h"

Go to the source code of this file.

Defines

#define CAMERA_OK   0x00
 Camera State structures definition.
#define CAMERA_ERROR   0x01
#define CAMERA_TIMEOUT   0x02
#define CAMERA_NOT_DETECTED   0x03
#define CAMERA_NOT_SUPPORTED   0x04
#define CAMERA_NO_ROTATION   0x00
 Camera Image rotation definition in frame buffer for LCD Display.
#define CAMERA_ROTATION_90   0x01
#define CAMERA_ROTATION_INVALID   0x02
#define RESOLUTION_R160x120   CAMERA_R160x120 /* QQVGA Resolution */
#define RESOLUTION_R320x240   CAMERA_R320x240 /* QVGA Resolution */
#define RESOLUTION_R480x272   CAMERA_R480x272 /* 480x272 Resolution */
#define RESOLUTION_R640x480   CAMERA_R640x480 /* VGA Resolution */
#define CAMERA_VGA_RES_X   640
#define CAMERA_VGA_RES_Y   480
#define CAMERA_480x272_RES_X   480
#define CAMERA_480x272_RES_Y   272
#define CAMERA_QVGA_RES_X   320
#define CAMERA_QVGA_RES_Y   240
#define CAMERA_QQVGA_RES_X   160
#define CAMERA_QQVGA_RES_Y   120
#define BSP_CAMERA_IRQHandler   DCMI_IRQHandler
#define BSP_CAMERA_DMA_IRQHandler   DMA2_Stream1_IRQHandler

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_HwReset (void)
 CANERA hardware reset.
void BSP_CAMERA_PwrDown (void)
 CAMERA power down.
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_MspInit (DCMI_HandleTypeDef *hdcmi, void *Params)
 Initializes the DCMI MSP.
void BSP_CAMERA_MspDeInit (DCMI_HandleTypeDef *hdcmi, void *Params)
 DeInitializes the DCMI MSP.
uint8_t BSP_CAMERA_SetRotation (uint32_t rotation)
 Set Camera image rotation on LCD Displayed frame buffer.
uint32_t BSP_CAMERA_GetRotation (void)
 Get Camera image rotation on LCD Displayed frame buffer.

Detailed Description

This file contains the common defines and functions prototypes for the stm32f769i_eval_camera.c driver.

Author:
MCD Application Team
Version:
V2.0.1
Date:
06-April-2017
Attention:

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f769i_eval_camera.h.

Generated on Thu May 25 2017 11:03:12 for STM32769I_EVAL BSP User Manual by   doxygen 1.7.6.1