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
Drivers/BSP/Components/Common/camera.h@6:9dfa42666f03, 2018-01-19 (annotated)
- Committer:
- bcostm
- Date:
- Fri Jan 19 14:27:51 2018 +0100
- Revision:
- 6:9dfa42666f03
- Parent:
- 2:87208512ab66
Update BSP files with STM32Cube L4 V1.11.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 1:138e8076f348 | 1 | /** |
bcostm | 1:138e8076f348 | 2 | ****************************************************************************** |
bcostm | 1:138e8076f348 | 3 | * @file camera.h |
bcostm | 1:138e8076f348 | 4 | * @author MCD Application Team |
bcostm | 1:138e8076f348 | 5 | * @brief This header file contains the common defines and functions prototypes |
bcostm | 1:138e8076f348 | 6 | * for the camera driver. |
bcostm | 1:138e8076f348 | 7 | ****************************************************************************** |
bcostm | 1:138e8076f348 | 8 | * @attention |
bcostm | 1:138e8076f348 | 9 | * |
bcostm | 2:87208512ab66 | 10 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
bcostm | 1:138e8076f348 | 11 | * |
bcostm | 1:138e8076f348 | 12 | * Redistribution and use in source and binary forms, with or without modification, |
bcostm | 1:138e8076f348 | 13 | * are permitted provided that the following conditions are met: |
bcostm | 1:138e8076f348 | 14 | * 1. Redistributions of source code must retain the above copyright notice, |
bcostm | 1:138e8076f348 | 15 | * this list of conditions and the following disclaimer. |
bcostm | 1:138e8076f348 | 16 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bcostm | 1:138e8076f348 | 17 | * this list of conditions and the following disclaimer in the documentation |
bcostm | 1:138e8076f348 | 18 | * and/or other materials provided with the distribution. |
bcostm | 1:138e8076f348 | 19 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
bcostm | 1:138e8076f348 | 20 | * may be used to endorse or promote products derived from this software |
bcostm | 1:138e8076f348 | 21 | * without specific prior written permission. |
bcostm | 1:138e8076f348 | 22 | * |
bcostm | 1:138e8076f348 | 23 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bcostm | 1:138e8076f348 | 24 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bcostm | 1:138e8076f348 | 25 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bcostm | 1:138e8076f348 | 26 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bcostm | 1:138e8076f348 | 27 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bcostm | 1:138e8076f348 | 28 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bcostm | 1:138e8076f348 | 29 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bcostm | 1:138e8076f348 | 30 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bcostm | 1:138e8076f348 | 31 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bcostm | 1:138e8076f348 | 32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bcostm | 1:138e8076f348 | 33 | * |
bcostm | 1:138e8076f348 | 34 | ****************************************************************************** |
bcostm | 1:138e8076f348 | 35 | */ |
bcostm | 1:138e8076f348 | 36 | |
bcostm | 1:138e8076f348 | 37 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 1:138e8076f348 | 38 | #ifndef __CAMERA_H |
bcostm | 1:138e8076f348 | 39 | #define __CAMERA_H |
bcostm | 1:138e8076f348 | 40 | |
bcostm | 1:138e8076f348 | 41 | #ifdef __cplusplus |
bcostm | 1:138e8076f348 | 42 | extern "C" { |
bcostm | 1:138e8076f348 | 43 | #endif |
bcostm | 1:138e8076f348 | 44 | |
bcostm | 1:138e8076f348 | 45 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 1:138e8076f348 | 46 | #include <stdint.h> |
bcostm | 1:138e8076f348 | 47 | |
bcostm | 1:138e8076f348 | 48 | /** @addtogroup BSP |
bcostm | 1:138e8076f348 | 49 | * @{ |
bcostm | 1:138e8076f348 | 50 | */ |
bcostm | 1:138e8076f348 | 51 | |
bcostm | 1:138e8076f348 | 52 | /** @addtogroup Components |
bcostm | 1:138e8076f348 | 53 | * @{ |
bcostm | 1:138e8076f348 | 54 | */ |
bcostm | 1:138e8076f348 | 55 | |
bcostm | 1:138e8076f348 | 56 | /** @addtogroup CAMERA |
bcostm | 1:138e8076f348 | 57 | * @{ |
bcostm | 1:138e8076f348 | 58 | */ |
bcostm | 1:138e8076f348 | 59 | |
bcostm | 1:138e8076f348 | 60 | |
bcostm | 1:138e8076f348 | 61 | /** @defgroup CAMERA_Exported_Types |
bcostm | 1:138e8076f348 | 62 | * @{ |
bcostm | 1:138e8076f348 | 63 | */ |
bcostm | 1:138e8076f348 | 64 | |
bcostm | 1:138e8076f348 | 65 | /** @defgroup CAMERA_Driver_structure Camera Driver structure |
bcostm | 1:138e8076f348 | 66 | * @{ |
bcostm | 1:138e8076f348 | 67 | */ |
bcostm | 1:138e8076f348 | 68 | typedef struct |
bcostm | 1:138e8076f348 | 69 | { |
bcostm | 1:138e8076f348 | 70 | void (*Init)(uint16_t, uint32_t); |
bcostm | 1:138e8076f348 | 71 | uint16_t (*ReadID)(uint16_t); |
bcostm | 1:138e8076f348 | 72 | void (*Config)(uint16_t, uint32_t, uint32_t, uint32_t); |
bcostm | 1:138e8076f348 | 73 | }CAMERA_DrvTypeDef; |
bcostm | 1:138e8076f348 | 74 | /** |
bcostm | 1:138e8076f348 | 75 | * @} |
bcostm | 1:138e8076f348 | 76 | */ |
bcostm | 1:138e8076f348 | 77 | |
bcostm | 1:138e8076f348 | 78 | /** |
bcostm | 1:138e8076f348 | 79 | * @} |
bcostm | 1:138e8076f348 | 80 | */ |
bcostm | 1:138e8076f348 | 81 | |
bcostm | 1:138e8076f348 | 82 | /** @defgroup CAMERA_Exported_Constants |
bcostm | 1:138e8076f348 | 83 | * @{ |
bcostm | 1:138e8076f348 | 84 | */ |
bcostm | 1:138e8076f348 | 85 | #define CAMERA_R160x120 0x00 /* QQVGA Resolution */ |
bcostm | 1:138e8076f348 | 86 | #define CAMERA_R320x240 0x01 /* QVGA Resolution */ |
bcostm | 1:138e8076f348 | 87 | #define CAMERA_R480x272 0x02 /* 480x272 Resolution */ |
bcostm | 1:138e8076f348 | 88 | #define CAMERA_R640x480 0x03 /* VGA Resolution */ |
bcostm | 1:138e8076f348 | 89 | |
bcostm | 1:138e8076f348 | 90 | #define CAMERA_CONTRAST_BRIGHTNESS 0x00 /* Camera contrast brightness features */ |
bcostm | 1:138e8076f348 | 91 | #define CAMERA_BLACK_WHITE 0x01 /* Camera black white feature */ |
bcostm | 1:138e8076f348 | 92 | #define CAMERA_COLOR_EFFECT 0x03 /* Camera color effect feature */ |
bcostm | 1:138e8076f348 | 93 | |
bcostm | 1:138e8076f348 | 94 | #define CAMERA_BRIGHTNESS_LEVEL0 0x00 /* Brightness level -2 */ |
bcostm | 1:138e8076f348 | 95 | #define CAMERA_BRIGHTNESS_LEVEL1 0x01 /* Brightness level -1 */ |
bcostm | 1:138e8076f348 | 96 | #define CAMERA_BRIGHTNESS_LEVEL2 0x02 /* Brightness level 0 */ |
bcostm | 1:138e8076f348 | 97 | #define CAMERA_BRIGHTNESS_LEVEL3 0x03 /* Brightness level +1 */ |
bcostm | 1:138e8076f348 | 98 | #define CAMERA_BRIGHTNESS_LEVEL4 0x04 /* Brightness level +2 */ |
bcostm | 1:138e8076f348 | 99 | |
bcostm | 1:138e8076f348 | 100 | #define CAMERA_CONTRAST_LEVEL0 0x05 /* Contrast level -2 */ |
bcostm | 1:138e8076f348 | 101 | #define CAMERA_CONTRAST_LEVEL1 0x06 /* Contrast level -1 */ |
bcostm | 1:138e8076f348 | 102 | #define CAMERA_CONTRAST_LEVEL2 0x07 /* Contrast level 0 */ |
bcostm | 1:138e8076f348 | 103 | #define CAMERA_CONTRAST_LEVEL3 0x08 /* Contrast level +1 */ |
bcostm | 1:138e8076f348 | 104 | #define CAMERA_CONTRAST_LEVEL4 0x09 /* Contrast level +2 */ |
bcostm | 1:138e8076f348 | 105 | |
bcostm | 1:138e8076f348 | 106 | #define CAMERA_BLACK_WHITE_BW 0x00 /* Black and white effect */ |
bcostm | 1:138e8076f348 | 107 | #define CAMERA_BLACK_WHITE_NEGATIVE 0x01 /* Negative effect */ |
bcostm | 1:138e8076f348 | 108 | #define CAMERA_BLACK_WHITE_BW_NEGATIVE 0x02 /* BW and Negative effect */ |
bcostm | 1:138e8076f348 | 109 | #define CAMERA_BLACK_WHITE_NORMAL 0x03 /* Normal effect */ |
bcostm | 1:138e8076f348 | 110 | |
bcostm | 1:138e8076f348 | 111 | #define CAMERA_COLOR_EFFECT_NONE 0x00 /* No effects */ |
bcostm | 1:138e8076f348 | 112 | #define CAMERA_COLOR_EFFECT_BLUE 0x01 /* Blue effect */ |
bcostm | 1:138e8076f348 | 113 | #define CAMERA_COLOR_EFFECT_GREEN 0x02 /* Green effect */ |
bcostm | 1:138e8076f348 | 114 | #define CAMERA_COLOR_EFFECT_RED 0x03 /* Red effect */ |
bcostm | 1:138e8076f348 | 115 | #define CAMERA_COLOR_EFFECT_ANTIQUE 0x04 /* Antique effect */ |
bcostm | 1:138e8076f348 | 116 | |
bcostm | 1:138e8076f348 | 117 | /** |
bcostm | 1:138e8076f348 | 118 | * @} |
bcostm | 1:138e8076f348 | 119 | */ |
bcostm | 1:138e8076f348 | 120 | |
bcostm | 1:138e8076f348 | 121 | /** |
bcostm | 1:138e8076f348 | 122 | * @} |
bcostm | 1:138e8076f348 | 123 | */ |
bcostm | 1:138e8076f348 | 124 | |
bcostm | 1:138e8076f348 | 125 | /** |
bcostm | 1:138e8076f348 | 126 | * @} |
bcostm | 1:138e8076f348 | 127 | */ |
bcostm | 1:138e8076f348 | 128 | |
bcostm | 1:138e8076f348 | 129 | /** |
bcostm | 1:138e8076f348 | 130 | * @} |
bcostm | 1:138e8076f348 | 131 | */ |
bcostm | 1:138e8076f348 | 132 | |
bcostm | 1:138e8076f348 | 133 | #ifdef __cplusplus |
bcostm | 1:138e8076f348 | 134 | } |
bcostm | 1:138e8076f348 | 135 | #endif |
bcostm | 1:138e8076f348 | 136 | |
bcostm | 1:138e8076f348 | 137 | #endif /* __CAMERA_H */ |
bcostm | 1:138e8076f348 | 138 | |
bcostm | 1:138e8076f348 | 139 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |