Select one of the symbols to view example projects that use it.
 
Outline
#define __S5K5CAG_H
#include "../Common/camera.h"
#define S5K5CAG_ID
#define S5K5CAG_INFO_CHIPID1
#define S5K5CAG_INFO_CHIPID2
#define S5K5CAG_INFO_SVNVERSION
#define S5K5CAG_INFO_DATE
#define S5K5CAG_BRIGHTNESS_LEVEL0
#define S5K5CAG_BRIGHTNESS_LEVEL1
#define S5K5CAG_BRIGHTNESS_LEVEL2
#define S5K5CAG_BRIGHTNESS_LEVEL3
#define S5K5CAG_BRIGHTNESS_LEVEL4
#define S5K5CAG_BLACK_WHITE_BW
#define S5K5CAG_BLACK_WHITE_NEGATIVE
#define S5K5CAG_BLACK_WHITE_BW_NEGATIVE
#define S5K5CAG_BLACK_WHITE_NORMAL
#define S5K5CAG_CONTRAST_LEVEL0
#define S5K5CAG_CONTRAST_LEVEL1
#define S5K5CAG_CONTRAST_LEVEL2
#define S5K5CAG_CONTRAST_LEVEL3
#define S5K5CAG_CONTRAST_LEVEL4
#define S5K5CAG_COLOR_EFFECT_NONE
#define S5K5CAG_COLOR_EFFECT_ANTIQUE
#define S5K5CAG_COLOR_EFFECT_BLUE
#define S5K5CAG_COLOR_EFFECT_GREEN
#define S5K5CAG_COLOR_EFFECT_RED
s5k5cag_Init(uint16_t, uint32_t);
s5k5cag_Config(uint16_t, uint32_t, uint32_t, uint32_t);
s5k5cag_ReadID(uint16_t);
CAMERA_IO_Init();
CAMERA_IO_Write(uint8_t, uint16_t, uint16_t);
CAMERA_IO_Read(uint8_t, uint16_t);
CAMERA_Delay(uint32_t);
s5k5cag_drv;
Files
loading...
SourceVuSTM32 Libraries and Sampless5k5cags5k5cag.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file s5k5cag.h * @author MCD Application Team * @brief This file contains all the functions prototypes for the s5k5cag.c * driver. ****************************************************************************** * @attention * * Copyright (c) 2015 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __S5K5CAG_H #define __S5K5CAG_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "../Common/camera.h" /** @addtogroup BSP * @{ *//* ... */ /** @addtogroup Components * @{ *//* ... */ /** @addtogroup s5k5cag * @{ *//* ... */ /** @defgroup S5K5CAG_Exported_Types * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup S5K5CAG_Exported_Constants * @{ *//* ... */ /** * @brief S5K5CAG ID *//* ... */ #define S5K5CAG_ID ((uint16_t)0x05CA) /** * @brief S5K5CAG Registers *//* ... */ #define S5K5CAG_INFO_CHIPID1 ((uint16_t)0x0040) #define S5K5CAG_INFO_CHIPID2 ((uint16_t)0x0042) #define S5K5CAG_INFO_SVNVERSION ((uint16_t)0x0048) #define S5K5CAG_INFO_DATE ((uint16_t)0x004E) /** * @brief S5K5CAG Features Parameters *//* ... */ #define S5K5CAG_BRIGHTNESS_LEVEL0 ((uint16_t)0xFF00) /* Brightness level -2 */ #define S5K5CAG_BRIGHTNESS_LEVEL1 ((uint16_t)0xFFC0) /* Brightness level -1 */ #define S5K5CAG_BRIGHTNESS_LEVEL2 ((uint16_t)0x0000) /* Brightness level 0 */ #define S5K5CAG_BRIGHTNESS_LEVEL3 ((uint16_t)0x0050) /* Brightness level +1 */ #define S5K5CAG_BRIGHTNESS_LEVEL4 ((uint16_t)0x0080) /* Brightness level +2 */ #define S5K5CAG_BLACK_WHITE_BW ((uint16_t)0x0001) /* Black and white effect */ #define S5K5CAG_BLACK_WHITE_NEGATIVE ((uint16_t)0x0003) /* Negative effect */ #define S5K5CAG_BLACK_WHITE_BW_NEGATIVE ((uint16_t)0x0002) /* BW and Negative effect */ #define S5K5CAG_BLACK_WHITE_NORMAL ((uint16_t)0x0000) /* Normal effect */ #define S5K5CAG_CONTRAST_LEVEL0 ((uint16_t)0xFF80) /* Contrast level -2 */ #define S5K5CAG_CONTRAST_LEVEL1 ((uint16_t)0xFFC0) /* Contrast level -1 */ #define S5K5CAG_CONTRAST_LEVEL2 ((uint16_t)0x0000) /* Contrast level 0 */ #define S5K5CAG_CONTRAST_LEVEL3 ((uint16_t)0x0050) /* Contrast level -1 */ #define S5K5CAG_CONTRAST_LEVEL4 ((uint16_t)0x0080) /* Contrast level -2 */ #define S5K5CAG_COLOR_EFFECT_NONE ((uint16_t)0x0000) /* No color effect */ #define S5K5CAG_COLOR_EFFECT_ANTIQUE ((uint16_t)0x0004) /* Antique effect */ #define S5K5CAG_COLOR_EFFECT_BLUE ((uint16_t)0x0001) /* Blue effect */ #define S5K5CAG_COLOR_EFFECT_GREEN ((uint16_t)0x0002) /* Green effect */ #define S5K5CAG_COLOR_EFFECT_RED ((uint16_t)0x0003) /* Red effect */ 24 defines/** * @} *//* ... */ /** @defgroup S5K5CAG_Exported_Functions * @{ *//* ... */ void s5k5cag_Init(uint16_t DeviceAddr, uint32_t resolution); void s5k5cag_Config(uint16_t DeviceAddr, uint32_t feature, uint32_t value, uint32_t BR_value); uint16_t s5k5cag_ReadID(uint16_t DeviceAddr); void CAMERA_IO_Init(void); void CAMERA_IO_Write(uint8_t addr, uint16_t reg, uint16_t value); uint16_t CAMERA_IO_Read(uint8_t addr, uint16_t reg); void CAMERA_Delay(uint32_t delay); /* CAMERA driver structure */ extern CAMERA_DrvTypeDef s5k5cag_drv; /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __S5K5CAG_H */ /** * @} *//* ... */ /** * @} *//* ... */ /** * @} *//* ... */
Details