E&R S3 prime / BSP_DISCO_L476VG
Committer:
jeromecoutant
Date:
Tue Sep 24 18:00:58 2019 +0200
Revision:
5:4943b15cce9f
Parent:
3:4c7d003a8259
Update BSP files with CubeL4 V1.14.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jerome Coutant 1:917af0ca86df 1 /**
Jerome Coutant 1:917af0ca86df 2 ******************************************************************************
Jerome Coutant 1:917af0ca86df 3 * @file camera.h
Jerome Coutant 1:917af0ca86df 4 * @author MCD Application Team
Jerome Coutant 1:917af0ca86df 5 * @brief This header file contains the common defines and functions prototypes
Jerome Coutant 1:917af0ca86df 6 * for the camera driver.
Jerome Coutant 1:917af0ca86df 7 ******************************************************************************
Jerome Coutant 1:917af0ca86df 8 * @attention
Jerome Coutant 1:917af0ca86df 9 *
jeromecoutant 5:4943b15cce9f 10 * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
jeromecoutant 5:4943b15cce9f 11 * All rights reserved.</center></h2>
Jerome Coutant 1:917af0ca86df 12 *
jeromecoutant 5:4943b15cce9f 13 * This software component is licensed by ST under BSD 3-Clause license,
jeromecoutant 5:4943b15cce9f 14 * the "License"; You may not use this file except in compliance with the
jeromecoutant 5:4943b15cce9f 15 * License. You may obtain a copy of the License at:
jeromecoutant 5:4943b15cce9f 16 * opensource.org/licenses/BSD-3-Clause
Jerome Coutant 1:917af0ca86df 17 *
Jerome Coutant 1:917af0ca86df 18 ******************************************************************************
Jerome Coutant 1:917af0ca86df 19 */
Jerome Coutant 1:917af0ca86df 20
Jerome Coutant 1:917af0ca86df 21 /* Define to prevent recursive inclusion -------------------------------------*/
Jerome Coutant 1:917af0ca86df 22 #ifndef __CAMERA_H
Jerome Coutant 1:917af0ca86df 23 #define __CAMERA_H
Jerome Coutant 1:917af0ca86df 24
Jerome Coutant 1:917af0ca86df 25 #ifdef __cplusplus
Jerome Coutant 1:917af0ca86df 26 extern "C" {
Jerome Coutant 1:917af0ca86df 27 #endif
Jerome Coutant 1:917af0ca86df 28
Jerome Coutant 1:917af0ca86df 29 /* Includes ------------------------------------------------------------------*/
Jerome Coutant 1:917af0ca86df 30 #include <stdint.h>
Jerome Coutant 1:917af0ca86df 31
Jerome Coutant 1:917af0ca86df 32 /** @addtogroup BSP
Jerome Coutant 1:917af0ca86df 33 * @{
Jerome Coutant 1:917af0ca86df 34 */
Jerome Coutant 1:917af0ca86df 35
Jerome Coutant 1:917af0ca86df 36 /** @addtogroup Components
Jerome Coutant 1:917af0ca86df 37 * @{
Jerome Coutant 1:917af0ca86df 38 */
Jerome Coutant 1:917af0ca86df 39
Jerome Coutant 1:917af0ca86df 40 /** @addtogroup CAMERA
Jerome Coutant 1:917af0ca86df 41 * @{
Jerome Coutant 1:917af0ca86df 42 */
Jerome Coutant 1:917af0ca86df 43
Jerome Coutant 1:917af0ca86df 44
Jerome Coutant 1:917af0ca86df 45 /** @defgroup CAMERA_Exported_Types
Jerome Coutant 1:917af0ca86df 46 * @{
Jerome Coutant 1:917af0ca86df 47 */
Jerome Coutant 1:917af0ca86df 48
Jerome Coutant 1:917af0ca86df 49 /** @defgroup CAMERA_Driver_structure Camera Driver structure
Jerome Coutant 1:917af0ca86df 50 * @{
Jerome Coutant 1:917af0ca86df 51 */
Jerome Coutant 1:917af0ca86df 52 typedef struct
Jerome Coutant 1:917af0ca86df 53 {
Jerome Coutant 1:917af0ca86df 54 void (*Init)(uint16_t, uint32_t);
Jerome Coutant 1:917af0ca86df 55 uint16_t (*ReadID)(uint16_t);
Jerome Coutant 1:917af0ca86df 56 void (*Config)(uint16_t, uint32_t, uint32_t, uint32_t);
Jerome Coutant 1:917af0ca86df 57 }CAMERA_DrvTypeDef;
Jerome Coutant 1:917af0ca86df 58 /**
Jerome Coutant 1:917af0ca86df 59 * @}
Jerome Coutant 1:917af0ca86df 60 */
Jerome Coutant 1:917af0ca86df 61
Jerome Coutant 1:917af0ca86df 62 /**
Jerome Coutant 1:917af0ca86df 63 * @}
Jerome Coutant 1:917af0ca86df 64 */
Jerome Coutant 1:917af0ca86df 65
Jerome Coutant 1:917af0ca86df 66 /** @defgroup CAMERA_Exported_Constants
Jerome Coutant 1:917af0ca86df 67 * @{
Jerome Coutant 1:917af0ca86df 68 */
Jerome Coutant 1:917af0ca86df 69 #define CAMERA_R160x120 0x00 /* QQVGA Resolution */
Jerome Coutant 1:917af0ca86df 70 #define CAMERA_R320x240 0x01 /* QVGA Resolution */
Jerome Coutant 1:917af0ca86df 71 #define CAMERA_R480x272 0x02 /* 480x272 Resolution */
Jerome Coutant 1:917af0ca86df 72 #define CAMERA_R640x480 0x03 /* VGA Resolution */
Jerome Coutant 1:917af0ca86df 73
Jerome Coutant 1:917af0ca86df 74 #define CAMERA_CONTRAST_BRIGHTNESS 0x00 /* Camera contrast brightness features */
Jerome Coutant 1:917af0ca86df 75 #define CAMERA_BLACK_WHITE 0x01 /* Camera black white feature */
Jerome Coutant 1:917af0ca86df 76 #define CAMERA_COLOR_EFFECT 0x03 /* Camera color effect feature */
Jerome Coutant 1:917af0ca86df 77
Jerome Coutant 1:917af0ca86df 78 #define CAMERA_BRIGHTNESS_LEVEL0 0x00 /* Brightness level -2 */
Jerome Coutant 1:917af0ca86df 79 #define CAMERA_BRIGHTNESS_LEVEL1 0x01 /* Brightness level -1 */
Jerome Coutant 1:917af0ca86df 80 #define CAMERA_BRIGHTNESS_LEVEL2 0x02 /* Brightness level 0 */
Jerome Coutant 1:917af0ca86df 81 #define CAMERA_BRIGHTNESS_LEVEL3 0x03 /* Brightness level +1 */
Jerome Coutant 1:917af0ca86df 82 #define CAMERA_BRIGHTNESS_LEVEL4 0x04 /* Brightness level +2 */
Jerome Coutant 1:917af0ca86df 83
Jerome Coutant 1:917af0ca86df 84 #define CAMERA_CONTRAST_LEVEL0 0x05 /* Contrast level -2 */
Jerome Coutant 1:917af0ca86df 85 #define CAMERA_CONTRAST_LEVEL1 0x06 /* Contrast level -1 */
Jerome Coutant 1:917af0ca86df 86 #define CAMERA_CONTRAST_LEVEL2 0x07 /* Contrast level 0 */
Jerome Coutant 1:917af0ca86df 87 #define CAMERA_CONTRAST_LEVEL3 0x08 /* Contrast level +1 */
Jerome Coutant 1:917af0ca86df 88 #define CAMERA_CONTRAST_LEVEL4 0x09 /* Contrast level +2 */
Jerome Coutant 1:917af0ca86df 89
Jerome Coutant 1:917af0ca86df 90 #define CAMERA_BLACK_WHITE_BW 0x00 /* Black and white effect */
Jerome Coutant 1:917af0ca86df 91 #define CAMERA_BLACK_WHITE_NEGATIVE 0x01 /* Negative effect */
Jerome Coutant 1:917af0ca86df 92 #define CAMERA_BLACK_WHITE_BW_NEGATIVE 0x02 /* BW and Negative effect */
Jerome Coutant 1:917af0ca86df 93 #define CAMERA_BLACK_WHITE_NORMAL 0x03 /* Normal effect */
Jerome Coutant 1:917af0ca86df 94
Jerome Coutant 1:917af0ca86df 95 #define CAMERA_COLOR_EFFECT_NONE 0x00 /* No effects */
Jerome Coutant 1:917af0ca86df 96 #define CAMERA_COLOR_EFFECT_BLUE 0x01 /* Blue effect */
Jerome Coutant 1:917af0ca86df 97 #define CAMERA_COLOR_EFFECT_GREEN 0x02 /* Green effect */
Jerome Coutant 1:917af0ca86df 98 #define CAMERA_COLOR_EFFECT_RED 0x03 /* Red effect */
Jerome Coutant 1:917af0ca86df 99 #define CAMERA_COLOR_EFFECT_ANTIQUE 0x04 /* Antique effect */
Jerome Coutant 1:917af0ca86df 100
Jerome Coutant 1:917af0ca86df 101 /**
Jerome Coutant 1:917af0ca86df 102 * @}
Jerome Coutant 1:917af0ca86df 103 */
Jerome Coutant 1:917af0ca86df 104
Jerome Coutant 1:917af0ca86df 105 /**
Jerome Coutant 1:917af0ca86df 106 * @}
Jerome Coutant 1:917af0ca86df 107 */
Jerome Coutant 1:917af0ca86df 108
Jerome Coutant 1:917af0ca86df 109 /**
Jerome Coutant 1:917af0ca86df 110 * @}
Jerome Coutant 1:917af0ca86df 111 */
Jerome Coutant 1:917af0ca86df 112
Jerome Coutant 1:917af0ca86df 113 /**
Jerome Coutant 1:917af0ca86df 114 * @}
Jerome Coutant 1:917af0ca86df 115 */
Jerome Coutant 1:917af0ca86df 116
Jerome Coutant 1:917af0ca86df 117 #ifdef __cplusplus
Jerome Coutant 1:917af0ca86df 118 }
Jerome Coutant 1:917af0ca86df 119 #endif
Jerome Coutant 1:917af0ca86df 120
Jerome Coutant 1:917af0ca86df 121 #endif /* __CAMERA_H */
Jerome Coutant 1:917af0ca86df 122
Jerome Coutant 1:917af0ca86df 123 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/