Contains the BSP driver for the B-L475E-IOT01 board.
Dependents: mbed-os-example-ble-Thermometer DISCO_L475VG_IOT01-Telegram-BOT DISCO_L475VG_IOT01-sche_cheveux DISCO_L475VG_IOT01-QSPI_FLASH_FILE_SYSTEM ... more
camera.h
00001 /** 00002 ****************************************************************************** 00003 * @file camera.h 00004 * @author MCD Application Team 00005 * @brief This header file contains the common defines and functions prototypes 00006 * for the camera driver. 00007 ****************************************************************************** 00008 * @attention 00009 * 00010 * <h2><center>© Copyright (c) 2017 STMicroelectronics. 00011 * All rights reserved.</center></h2> 00012 * 00013 * This software component is licensed by ST under BSD 3-Clause license, 00014 * the "License"; You may not use this file except in compliance with the 00015 * License. You may obtain a copy of the License at: 00016 * opensource.org/licenses/BSD-3-Clause 00017 * 00018 ****************************************************************************** 00019 */ 00020 00021 /* Define to prevent recursive inclusion -------------------------------------*/ 00022 #ifndef __CAMERA_H 00023 #define __CAMERA_H 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 /* Includes ------------------------------------------------------------------*/ 00030 #include <stdint.h> 00031 00032 /** @addtogroup BSP 00033 * @{ 00034 */ 00035 00036 /** @addtogroup Components 00037 * @{ 00038 */ 00039 00040 /** @addtogroup CAMERA 00041 * @{ 00042 */ 00043 00044 00045 /** @defgroup CAMERA_Exported_Types 00046 * @{ 00047 */ 00048 00049 /** @defgroup CAMERA_Driver_structure Camera Driver structure 00050 * @{ 00051 */ 00052 typedef struct 00053 { 00054 void (*Init)(uint16_t, uint32_t); 00055 uint16_t (*ReadID)(uint16_t); 00056 void (*Config)(uint16_t, uint32_t, uint32_t, uint32_t); 00057 }CAMERA_DrvTypeDef; 00058 /** 00059 * @} 00060 */ 00061 00062 /** 00063 * @} 00064 */ 00065 00066 /** @defgroup CAMERA_Exported_Constants 00067 * @{ 00068 */ 00069 #define CAMERA_R160x120 0x00 /* QQVGA Resolution */ 00070 #define CAMERA_R320x240 0x01 /* QVGA Resolution */ 00071 #define CAMERA_R480x272 0x02 /* 480x272 Resolution */ 00072 #define CAMERA_R640x480 0x03 /* VGA Resolution */ 00073 00074 #define CAMERA_CONTRAST_BRIGHTNESS 0x00 /* Camera contrast brightness features */ 00075 #define CAMERA_BLACK_WHITE 0x01 /* Camera black white feature */ 00076 #define CAMERA_COLOR_EFFECT 0x03 /* Camera color effect feature */ 00077 00078 #define CAMERA_BRIGHTNESS_LEVEL0 0x00 /* Brightness level -2 */ 00079 #define CAMERA_BRIGHTNESS_LEVEL1 0x01 /* Brightness level -1 */ 00080 #define CAMERA_BRIGHTNESS_LEVEL2 0x02 /* Brightness level 0 */ 00081 #define CAMERA_BRIGHTNESS_LEVEL3 0x03 /* Brightness level +1 */ 00082 #define CAMERA_BRIGHTNESS_LEVEL4 0x04 /* Brightness level +2 */ 00083 00084 #define CAMERA_CONTRAST_LEVEL0 0x05 /* Contrast level -2 */ 00085 #define CAMERA_CONTRAST_LEVEL1 0x06 /* Contrast level -1 */ 00086 #define CAMERA_CONTRAST_LEVEL2 0x07 /* Contrast level 0 */ 00087 #define CAMERA_CONTRAST_LEVEL3 0x08 /* Contrast level +1 */ 00088 #define CAMERA_CONTRAST_LEVEL4 0x09 /* Contrast level +2 */ 00089 00090 #define CAMERA_BLACK_WHITE_BW 0x00 /* Black and white effect */ 00091 #define CAMERA_BLACK_WHITE_NEGATIVE 0x01 /* Negative effect */ 00092 #define CAMERA_BLACK_WHITE_BW_NEGATIVE 0x02 /* BW and Negative effect */ 00093 #define CAMERA_BLACK_WHITE_NORMAL 0x03 /* Normal effect */ 00094 00095 #define CAMERA_COLOR_EFFECT_NONE 0x00 /* No effects */ 00096 #define CAMERA_COLOR_EFFECT_BLUE 0x01 /* Blue effect */ 00097 #define CAMERA_COLOR_EFFECT_GREEN 0x02 /* Green effect */ 00098 #define CAMERA_COLOR_EFFECT_RED 0x03 /* Red effect */ 00099 #define CAMERA_COLOR_EFFECT_ANTIQUE 0x04 /* Antique effect */ 00100 00101 /** 00102 * @} 00103 */ 00104 00105 /** 00106 * @} 00107 */ 00108 00109 /** 00110 * @} 00111 */ 00112 00113 /** 00114 * @} 00115 */ 00116 00117 #ifdef __cplusplus 00118 } 00119 #endif 00120 00121 #endif /* __CAMERA_H */ 00122 00123 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 13:55:41 by 1.7.2