STM32Cube BSP FW for STM32F769I-Discovery
Dependents: mbed-os-example-blinky-5 DISCO-F769NI_TOUCHSCREEN_demo_custom_1 Datarecorder2 DISCO-F769NI_TOUCHSCREEN_demo ... more
camera.h
00001 /** 00002 ****************************************************************************** 00003 * @file camera.h 00004 * @author MCD Application Team 00005 * @version V4.0.1 00006 * @date 21-July-2015 00007 * @brief This header file contains the common defines and functions prototypes 00008 * for the camera driver. 00009 ****************************************************************************** 00010 * @attention 00011 * 00012 * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> 00013 * 00014 * Redistribution and use in source and binary forms, with or without modification, 00015 * are permitted provided that the following conditions are met: 00016 * 1. Redistributions of source code must retain the above copyright notice, 00017 * this list of conditions and the following disclaimer. 00018 * 2. Redistributions in binary form must reproduce the above copyright notice, 00019 * this list of conditions and the following disclaimer in the documentation 00020 * and/or other materials provided with the distribution. 00021 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00022 * may be used to endorse or promote products derived from this software 00023 * without specific prior written permission. 00024 * 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00026 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00027 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00028 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00029 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00030 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00031 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00032 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00033 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00034 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00035 * 00036 ****************************************************************************** 00037 */ 00038 00039 /* Define to prevent recursive inclusion -------------------------------------*/ 00040 #ifndef __CAMERA_H 00041 #define __CAMERA_H 00042 00043 #ifdef __cplusplus 00044 extern "C" { 00045 #endif 00046 00047 /* Includes ------------------------------------------------------------------*/ 00048 #include <stdint.h> 00049 00050 /** @addtogroup BSP 00051 * @{ 00052 */ 00053 00054 /** @addtogroup Components 00055 * @{ 00056 */ 00057 00058 /** @addtogroup CAMERA 00059 * @{ 00060 */ 00061 00062 00063 /** @defgroup CAMERA_Exported_Types 00064 * @{ 00065 */ 00066 00067 /** @defgroup CAMERA_Driver_structure Camera Driver structure 00068 * @{ 00069 */ 00070 typedef struct 00071 { 00072 void (*Init)(uint16_t, uint32_t); 00073 uint16_t (*ReadID)(uint16_t); 00074 void (*Config)(uint16_t, uint32_t, uint32_t, uint32_t); 00075 }CAMERA_DrvTypeDef; 00076 /** 00077 * @} 00078 */ 00079 00080 /** 00081 * @} 00082 */ 00083 00084 /** @defgroup CAMERA_Exported_Constants 00085 * @{ 00086 */ 00087 #define CAMERA_R160x120 0x00 /* QQVGA Resolution */ 00088 #define CAMERA_R320x240 0x01 /* QVGA Resolution */ 00089 #define CAMERA_R480x272 0x02 /* 480x272 Resolution */ 00090 #define CAMERA_R640x480 0x03 /* VGA Resolution */ 00091 00092 #define CAMERA_CONTRAST_BRIGHTNESS 0x00 /* Camera contrast brightness features */ 00093 #define CAMERA_BLACK_WHITE 0x01 /* Camera black white feature */ 00094 #define CAMERA_COLOR_EFFECT 0x03 /* Camera color effect feature */ 00095 00096 #define CAMERA_BRIGHTNESS_LEVEL0 0x00 /* Brightness level -2 */ 00097 #define CAMERA_BRIGHTNESS_LEVEL1 0x01 /* Brightness level -1 */ 00098 #define CAMERA_BRIGHTNESS_LEVEL2 0x02 /* Brightness level 0 */ 00099 #define CAMERA_BRIGHTNESS_LEVEL3 0x03 /* Brightness level +1 */ 00100 #define CAMERA_BRIGHTNESS_LEVEL4 0x04 /* Brightness level +2 */ 00101 00102 #define CAMERA_CONTRAST_LEVEL0 0x05 /* Contrast level -2 */ 00103 #define CAMERA_CONTRAST_LEVEL1 0x06 /* Contrast level -1 */ 00104 #define CAMERA_CONTRAST_LEVEL2 0x07 /* Contrast level 0 */ 00105 #define CAMERA_CONTRAST_LEVEL3 0x08 /* Contrast level +1 */ 00106 #define CAMERA_CONTRAST_LEVEL4 0x09 /* Contrast level +2 */ 00107 00108 #define CAMERA_BLACK_WHITE_BW 0x00 /* Black and white effect */ 00109 #define CAMERA_BLACK_WHITE_NEGATIVE 0x01 /* Negative effect */ 00110 #define CAMERA_BLACK_WHITE_BW_NEGATIVE 0x02 /* BW and Negative effect */ 00111 #define CAMERA_BLACK_WHITE_NORMAL 0x03 /* Normal effect */ 00112 00113 #define CAMERA_COLOR_EFFECT_NONE 0x00 /* No effects */ 00114 #define CAMERA_COLOR_EFFECT_BLUE 0x01 /* Blue effect */ 00115 #define CAMERA_COLOR_EFFECT_GREEN 0x02 /* Green effect */ 00116 #define CAMERA_COLOR_EFFECT_RED 0x03 /* Red effect */ 00117 #define CAMERA_COLOR_EFFECT_ANTIQUE 0x04 /* Antique effect */ 00118 00119 /** 00120 * @} 00121 */ 00122 00123 /** 00124 * @} 00125 */ 00126 00127 /** 00128 * @} 00129 */ 00130 00131 /** 00132 * @} 00133 */ 00134 00135 #ifdef __cplusplus 00136 } 00137 #endif 00138 00139 #endif /* __CAMERA_H */ 00140 00141 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 17:55:03 by 1.7.2