Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: VL53L0X
Fork of BSP_B-L475E-IOT01 by
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</center></h2> 00011 * 00012 * Redistribution and use in source and binary forms, with or without modification, 00013 * are permitted provided that the following conditions are met: 00014 * 1. Redistributions of source code must retain the above copyright notice, 00015 * this list of conditions and the following disclaimer. 00016 * 2. Redistributions in binary form must reproduce the above copyright notice, 00017 * this list of conditions and the following disclaimer in the documentation 00018 * and/or other materials provided with the distribution. 00019 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00020 * may be used to endorse or promote products derived from this software 00021 * without specific prior written permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00024 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00025 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00026 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00027 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00028 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00029 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00030 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00031 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00032 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00033 * 00034 ****************************************************************************** 00035 */ 00036 00037 /* Define to prevent recursive inclusion -------------------------------------*/ 00038 #ifndef __CAMERA_H 00039 #define __CAMERA_H 00040 00041 #ifdef __cplusplus 00042 extern "C" { 00043 #endif 00044 00045 /* Includes ------------------------------------------------------------------*/ 00046 #include <stdint.h> 00047 00048 /** @addtogroup BSP 00049 * @{ 00050 */ 00051 00052 /** @addtogroup Components 00053 * @{ 00054 */ 00055 00056 /** @addtogroup CAMERA 00057 * @{ 00058 */ 00059 00060 00061 /** @defgroup CAMERA_Exported_Types 00062 * @{ 00063 */ 00064 00065 /** @defgroup CAMERA_Driver_structure Camera Driver structure 00066 * @{ 00067 */ 00068 typedef struct 00069 { 00070 void (*Init)(uint16_t, uint32_t); 00071 uint16_t (*ReadID)(uint16_t); 00072 void (*Config)(uint16_t, uint32_t, uint32_t, uint32_t); 00073 }CAMERA_DrvTypeDef; 00074 /** 00075 * @} 00076 */ 00077 00078 /** 00079 * @} 00080 */ 00081 00082 /** @defgroup CAMERA_Exported_Constants 00083 * @{ 00084 */ 00085 #define CAMERA_R160x120 0x00 /* QQVGA Resolution */ 00086 #define CAMERA_R320x240 0x01 /* QVGA Resolution */ 00087 #define CAMERA_R480x272 0x02 /* 480x272 Resolution */ 00088 #define CAMERA_R640x480 0x03 /* VGA Resolution */ 00089 00090 #define CAMERA_CONTRAST_BRIGHTNESS 0x00 /* Camera contrast brightness features */ 00091 #define CAMERA_BLACK_WHITE 0x01 /* Camera black white feature */ 00092 #define CAMERA_COLOR_EFFECT 0x03 /* Camera color effect feature */ 00093 00094 #define CAMERA_BRIGHTNESS_LEVEL0 0x00 /* Brightness level -2 */ 00095 #define CAMERA_BRIGHTNESS_LEVEL1 0x01 /* Brightness level -1 */ 00096 #define CAMERA_BRIGHTNESS_LEVEL2 0x02 /* Brightness level 0 */ 00097 #define CAMERA_BRIGHTNESS_LEVEL3 0x03 /* Brightness level +1 */ 00098 #define CAMERA_BRIGHTNESS_LEVEL4 0x04 /* Brightness level +2 */ 00099 00100 #define CAMERA_CONTRAST_LEVEL0 0x05 /* Contrast level -2 */ 00101 #define CAMERA_CONTRAST_LEVEL1 0x06 /* Contrast level -1 */ 00102 #define CAMERA_CONTRAST_LEVEL2 0x07 /* Contrast level 0 */ 00103 #define CAMERA_CONTRAST_LEVEL3 0x08 /* Contrast level +1 */ 00104 #define CAMERA_CONTRAST_LEVEL4 0x09 /* Contrast level +2 */ 00105 00106 #define CAMERA_BLACK_WHITE_BW 0x00 /* Black and white effect */ 00107 #define CAMERA_BLACK_WHITE_NEGATIVE 0x01 /* Negative effect */ 00108 #define CAMERA_BLACK_WHITE_BW_NEGATIVE 0x02 /* BW and Negative effect */ 00109 #define CAMERA_BLACK_WHITE_NORMAL 0x03 /* Normal effect */ 00110 00111 #define CAMERA_COLOR_EFFECT_NONE 0x00 /* No effects */ 00112 #define CAMERA_COLOR_EFFECT_BLUE 0x01 /* Blue effect */ 00113 #define CAMERA_COLOR_EFFECT_GREEN 0x02 /* Green effect */ 00114 #define CAMERA_COLOR_EFFECT_RED 0x03 /* Red effect */ 00115 #define CAMERA_COLOR_EFFECT_ANTIQUE 0x04 /* Antique effect */ 00116 00117 /** 00118 * @} 00119 */ 00120 00121 /** 00122 * @} 00123 */ 00124 00125 /** 00126 * @} 00127 */ 00128 00129 /** 00130 * @} 00131 */ 00132 00133 #ifdef __cplusplus 00134 } 00135 #endif 00136 00137 #endif /* __CAMERA_H */ 00138 00139 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 15:06:31 by
1.7.2
