code

Fork of BSP_DISCO_F746NG by ST

Committer:
shoaib_ahmed
Date:
Sun Jul 30 16:14:12 2017 +0000
Revision:
10:040ff14a2358
Parent:
1:ee089790cdbb
mbed core for link sprite camera

Who changed what in which revision?

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