ov2640
Select one of the symbols to view example projects that use it.
Symbol previews are coming soon...
Outline
#define __OV2640_H
#include "../Common/camera.h"
#define OV2640_ID
#define OV2640_DSP_R_BYPASS
#define OV2640_DSP_Qs
#define OV2640_DSP_CTRL
#define OV2640_DSP_HSIZE1
#define OV2640_DSP_VSIZE1
#define OV2640_DSP_XOFFL
#define OV2640_DSP_YOFFL
#define OV2640_DSP_VHYX
#define OV2640_DSP_DPRP
#define OV2640_DSP_TEST
#define OV2640_DSP_ZMOW
#define OV2640_DSP_ZMOH
#define OV2640_DSP_ZMHH
#define OV2640_DSP_BPADDR
#define OV2640_DSP_BPDATA
#define OV2640_DSP_CTRL2
#define OV2640_DSP_CTRL3
#define OV2640_DSP_SIZEL
#define OV2640_DSP_HSIZE2
#define OV2640_DSP_VSIZE2
#define OV2640_DSP_CTRL0
#define OV2640_DSP_CTRL1
#define OV2640_DSP_R_DVP_SP
#define OV2640_DSP_IMAGE_MODE
#define OV2640_DSP_RESET
#define OV2640_DSP_MS_SP
#define OV2640_DSP_SS_ID
#define OV2640_DSP_SS_CTRL
#define OV2640_DSP_MC_BIST
#define OV2640_DSP_MC_AL
#define OV2640_DSP_MC_AH
#define OV2640_DSP_MC_D
#define OV2640_DSP_P_STATUS
#define OV2640_DSP_RA_DLMT
#define OV2640_SENSOR_GAIN
#define OV2640_SENSOR_COM1
#define OV2640_SENSOR_REG04
#define OV2640_SENSOR_REG08
#define OV2640_SENSOR_COM2
#define OV2640_SENSOR_PIDH
#define OV2640_SENSOR_PIDL
#define OV2640_SENSOR_COM3
#define OV2640_SENSOR_COM4
#define OV2640_SENSOR_AEC
#define OV2640_SENSOR_CLKRC
#define OV2640_SENSOR_COM7
#define OV2640_SENSOR_COM8
#define OV2640_SENSOR_COM9
#define OV2640_SENSOR_COM10
#define OV2640_SENSOR_HREFST
#define OV2640_SENSOR_HREFEND
#define OV2640_SENSOR_VSTART
#define OV2640_SENSOR_VEND
#define OV2640_SENSOR_MIDH
#define OV2640_SENSOR_MIDL
#define OV2640_SENSOR_AEW
#define OV2640_SENSOR_AEB
#define OV2640_SENSOR_W
#define OV2640_SENSOR_REG2A
#define OV2640_SENSOR_FRARL
#define OV2640_SENSOR_ADDVSL
#define OV2640_SENSOR_ADDVHS
#define OV2640_SENSOR_YAVG
#define OV2640_SENSOR_REG32
#define OV2640_SENSOR_ARCOM2
#define OV2640_SENSOR_REG45
#define OV2640_SENSOR_FLL
#define OV2640_SENSOR_FLH
#define OV2640_SENSOR_COM19
#define OV2640_SENSOR_ZOOMS
#define OV2640_SENSOR_COM22
#define OV2640_SENSOR_COM25
#define OV2640_SENSOR_BD50
#define OV2640_SENSOR_BD60
#define OV2640_SENSOR_REG5D
#define OV2640_SENSOR_REG5E
#define OV2640_SENSOR_REG5F
#define OV2640_SENSOR_REG60
#define OV2640_SENSOR_HISTO_LOW
#define OV2640_SENSOR_HISTO_HIGH
#define OV2640_BRIGHTNESS_LEVEL0
#define OV2640_BRIGHTNESS_LEVEL1
#define OV2640_BRIGHTNESS_LEVEL2
#define OV2640_BRIGHTNESS_LEVEL3
#define OV2640_BRIGHTNESS_LEVEL4
#define OV2640_BLACK_WHITE_BW
#define OV2640_BLACK_WHITE_NEGATIVE
#define OV2640_BLACK_WHITE_BW_NEGATIVE
#define OV2640_BLACK_WHITE_NORMAL
#define OV2640_CONTRAST_LEVEL0
#define OV2640_CONTRAST_LEVEL1
#define OV2640_CONTRAST_LEVEL2
#define OV2640_CONTRAST_LEVEL3
#define OV2640_CONTRAST_LEVEL4
#define OV2640_COLOR_EFFECT_ANTIQUE
#define OV2640_COLOR_EFFECT_BLUE
#define OV2640_COLOR_EFFECT_GREEN
#define OV2640_COLOR_EFFECT_RED
ov2640_Init(uint16_t, uint32_t);
ov2640_Config(uint16_t, uint32_t, uint32_t, uint32_t);
ov2640_ReadID(uint16_t);
CAMERA_IO_Init();
CAMERA_IO_Write(uint8_t, uint8_t, uint8_t);
CAMERA_IO_Read(uint8_t, uint8_t);
CAMERA_Delay(uint32_t);
ov2640_drv;
Files
loading...
SourceVu
STM32 Libraries and Samples
ov2640
ov2640.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/**
******************************************************************************
* @file ov2640.h
* @author MCD Application Team
* @version V1.0.2
* @date 02-December-2014
* @brief This file contains all the functions prototypes for the ov2640.c
* driver.
******************************************************************************
* @attention
*
* Copyright (c) 2014 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
__OV2640_H
#define
__OV2640_H
#ifdef
__cplusplus
extern
"C"
{
#endif
/* Includes ------------------------------------------------------------------*/
#include
"
..
/
Common
/
camera.h"
/** @addtogroup BSP
* @{
*/
/* ... */
/** @addtogroup Components
* @{
*/
/* ... */
/** @addtogroup ov2640
* @{
*/
/* ... */
/** @defgroup OV2640_Exported_Types
* @{
*/
/* ... */
/**
* @}
*/
/* ... */
/** @defgroup OV2640_Exported_Constants
* @{
*/
/* ... */
/**
* @brief OV2640 ID
*/
/* ... */
#define
OV2640_ID
0x26
/**
* @brief OV2640 Registers
*/
/* ... */
/* OV2640 Registers definition when DSP bank selected (0xFF = 0x00) */
#define
OV2640_DSP_R_BYPASS
0x05
#define
OV2640_DSP_Qs
0x44
#define
OV2640_DSP_CTRL
0x50
#define
OV2640_DSP_HSIZE1
0x51
#define
OV2640_DSP_VSIZE1
0x52
#define
OV2640_DSP_XOFFL
0x53
#define
OV2640_DSP_YOFFL
0x54
#define
OV2640_DSP_VHYX
0x55
#define
OV2640_DSP_DPRP
0x56
#define
OV2640_DSP_TEST
0x57
#define
OV2640_DSP_ZMOW
0x5A
#define
OV2640_DSP_ZMOH
0x5B
#define
OV2640_DSP_ZMHH
0x5C
#define
OV2640_DSP_BPADDR
0x7C
#define
OV2640_DSP_BPDATA
0x7D
#define
OV2640_DSP_CTRL2
0x86
#define
OV2640_DSP_CTRL3
0x87
#define
OV2640_DSP_SIZEL
0x8C
#define
OV2640_DSP_HSIZE2
0xC0
#define
OV2640_DSP_VSIZE2
0xC1
#define
OV2640_DSP_CTRL0
0xC2
#define
OV2640_DSP_CTRL1
0xC3
#define
OV2640_DSP_R_DVP_SP
0xD3
#define
OV2640_DSP_IMAGE_MODE
0xDA
#define
OV2640_DSP_RESET
0xE0
#define
OV2640_DSP_MS_SP
0xF0
#define
OV2640_DSP_SS_ID
0x7F
#define
OV2640_DSP_SS_CTRL
0xF8
#define
OV2640_DSP_MC_BIST
0xF9
#define
OV2640_DSP_MC_AL
0xFA
#define
OV2640_DSP_MC_AH
0xFB
#define
OV2640_DSP_MC_D
0xFC
#define
OV2640_DSP_P_STATUS
0xFE
#define
OV2640_DSP_RA_DLMT
0xFF
/* OV2640 Registers definition when sensor bank selected (0xFF = 0x01) */
#define
OV2640_SENSOR_GAIN
0x00
#define
OV2640_SENSOR_COM1
0x03
#define
OV2640_SENSOR_REG04
0x04
#define
OV2640_SENSOR_REG08
0x08
#define
OV2640_SENSOR_COM2
0x09
#define
OV2640_SENSOR_PIDH
0x0A
#define
OV2640_SENSOR_PIDL
0x0B
#define
OV2640_SENSOR_COM3
0x0C
#define
OV2640_SENSOR_COM4
0x0D
#define
OV2640_SENSOR_AEC
0x10
#define
OV2640_SENSOR_CLKRC
0x11
#define
OV2640_SENSOR_COM7
0x12
#define
OV2640_SENSOR_COM8
0x13
#define
OV2640_SENSOR_COM9
0x14
#define
OV2640_SENSOR_COM10
0x15
#define
OV2640_SENSOR_HREFST
0x17
#define
OV2640_SENSOR_HREFEND
0x18
#define
OV2640_SENSOR_VSTART
0x19
#define
OV2640_SENSOR_VEND
0x1A
#define
OV2640_SENSOR_MIDH
0x1C
#define
OV2640_SENSOR_MIDL
0x1D
#define
OV2640_SENSOR_AEW
0x24
#define
OV2640_SENSOR_AEB
0x25
#define
OV2640_SENSOR_W
0x26
#define
OV2640_SENSOR_REG2A
0x2A
#define
OV2640_SENSOR_FRARL
0x2B
#define
OV2640_SENSOR_ADDVSL
0x2D
#define
OV2640_SENSOR_ADDVHS
0x2E
#define
OV2640_SENSOR_YAVG
0x2F
#define
OV2640_SENSOR_REG32
0x32
#define
OV2640_SENSOR_ARCOM2
0x34
#define
OV2640_SENSOR_REG45
0x45
#define
OV2640_SENSOR_FLL
0x46
#define
OV2640_SENSOR_FLH
0x47
#define
OV2640_SENSOR_COM19
0x48
#define
OV2640_SENSOR_ZOOMS
0x49
#define
OV2640_SENSOR_COM22
0x4B
#define
OV2640_SENSOR_COM25
0x4E
#define
OV2640_SENSOR_BD50
0x4F
#define
OV2640_SENSOR_BD60
0x50
#define
OV2640_SENSOR_REG5D
0x5D
#define
OV2640_SENSOR_REG5E
0x5E
#define
OV2640_SENSOR_REG5F
0x5F
#define
OV2640_SENSOR_REG60
0x60
#define
OV2640_SENSOR_HISTO_LOW
0x61
#define
OV2640_SENSOR_HISTO_HIGH
0x62
/**
* @brief OV2640 Features Parameters
*/
/* ... */
#define
OV2640_BRIGHTNESS_LEVEL0
0x40
/* Brightness level -2 */
#define
OV2640_BRIGHTNESS_LEVEL1
0x30
/* Brightness level -1 */
#define
OV2640_BRIGHTNESS_LEVEL2
0x20
/* Brightness level 0 */
#define
OV2640_BRIGHTNESS_LEVEL3
0x10
/* Brightness level +1 */
#define
OV2640_BRIGHTNESS_LEVEL4
0x00
/* Brightness level +2 */
#define
OV2640_BLACK_WHITE_BW
0x18
/* Black and white effect */
#define
OV2640_BLACK_WHITE_NEGATIVE
0x40
/* Negative effect */
#define
OV2640_BLACK_WHITE_BW_NEGATIVE
0x58
/* BW and Negative effect */
#define
OV2640_BLACK_WHITE_NORMAL
0x00
/* Normal effect */
#define
OV2640_CONTRAST_LEVEL0
0x3418
/* Contrast level -2 */
#define
OV2640_CONTRAST_LEVEL1
0x2A1C
/* Contrast level -2 */
#define
OV2640_CONTRAST_LEVEL2
0x2020
/* Contrast level -2 */
#define
OV2640_CONTRAST_LEVEL3
0x1624
/* Contrast level -2 */
#define
OV2640_CONTRAST_LEVEL4
0x0C28
/* Contrast level -2 */
#define
OV2640_COLOR_EFFECT_ANTIQUE
0xA640
/* Antique effect */
#define
OV2640_COLOR_EFFECT_BLUE
0x40A0
/* Blue effect */
#define
OV2640_COLOR_EFFECT_GREEN
0x4040
/* Green effect */
#define
OV2640_COLOR_EFFECT_RED
0xC040
/* Red effect */
99 defines
/**
* @}
*/
/* ... */
/** @defgroup OV2640_Exported_Functions
* @{
*/
/* ... */
void
ov2640_Init
(
uint16_t
DeviceAddr
,
uint32_t
resolution
)
;
void
ov2640_Config
(
uint16_t
DeviceAddr
,
uint32_t
feature
,
uint32_t
value
,
uint32_t
BR_value
)
;
uint16_t
ov2640_ReadID
(
uint16_t
DeviceAddr
)
;
void
CAMERA_IO_Init
(
void
)
;
void
CAMERA_IO_Write
(
uint8_t
addr
,
uint8_t
reg
,
uint8_t
value
)
;
uint8_t
CAMERA_IO_Read
(
uint8_t
addr
,
uint8_t
reg
)
;
void
CAMERA_Delay
(
uint32_t
delay
)
;
/* CAMERA driver structure */
extern
CAMERA_DrvTypeDef
ov2640_drv
;
/**
* @}
*/
/* ... */
#ifdef
__cplusplus
}
extern "C" { ... }
#endif
/* ... */
#endif
/* __OV2640_H */
/**
* @}
*/
/* ... */
/**
* @}
*/
/* ... */
/**
* @}
*/
/* ... */
Details
Show:
from
Types:
Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.
CAMERA_IO_Write()
CAMERA_Delay()
CAMERA_IO_Read()
CAMERA_IO_Init()
ov2640_ReadID()
ov2640_Init()
ov2640_Config()
ov2640_Config()::DeviceAddr
ov2640_Init()::DeviceAddr
ov2640_drv
ov2640_Config()::feature
ov2640_ReadID()::DeviceAddr
OV2640_ID
OV2640_DSP_RA_DLMT
OV2640_BLACK_WHITE_NORMAL
OV2640_CONTRAST_LEVEL0
OV2640_COLOR_EFFECT_RED
ov2640_Init()::resolution
ov2640_Config()::value
OV2640_SENSOR_PIDH
OV2640_SENSOR_COM7
OV2640_BRIGHTNESS_LEVEL0
OV2640_BRIGHTNESS_LEVEL1
OV2640_BRIGHTNESS_LEVEL2
OV2640_BRIGHTNESS_LEVEL3
OV2640_BRIGHTNESS_LEVEL4
OV2640_BLACK_WHITE_BW
OV2640_BLACK_WHITE_NEGATIVE
OV2640_BLACK_WHITE_BW_NEGATIVE
OV2640_CONTRAST_LEVEL1
OV2640_CONTRAST_LEVEL2
OV2640_CONTRAST_LEVEL3
OV2640_CONTRAST_LEVEL4
OV2640_COLOR_EFFECT_ANTIQUE
OV2640_COLOR_EFFECT_BLUE
OV2640_COLOR_EFFECT_GREEN
__OV2640_H
OV2640_DSP_R_BYPASS
OV2640_DSP_Qs
OV2640_DSP_CTRL
OV2640_DSP_HSIZE1
OV2640_DSP_VSIZE1
OV2640_DSP_XOFFL
OV2640_DSP_YOFFL
OV2640_DSP_VHYX
OV2640_DSP_DPRP
OV2640_DSP_TEST
OV2640_DSP_ZMOW
OV2640_DSP_ZMOH
OV2640_DSP_ZMHH
OV2640_DSP_BPADDR
OV2640_DSP_BPDATA
OV2640_DSP_CTRL2
OV2640_DSP_CTRL3
OV2640_DSP_SIZEL
OV2640_DSP_HSIZE2
OV2640_DSP_VSIZE2
OV2640_DSP_CTRL0
OV2640_DSP_CTRL1
OV2640_DSP_R_DVP_SP
OV2640_DSP_IMAGE_MODE
OV2640_DSP_RESET
OV2640_DSP_MS_SP
OV2640_DSP_SS_ID
OV2640_DSP_SS_CTRL
OV2640_DSP_MC_BIST
OV2640_DSP_MC_AL
OV2640_DSP_MC_AH
OV2640_DSP_MC_D
OV2640_DSP_P_STATUS
OV2640_SENSOR_GAIN
OV2640_SENSOR_COM1
OV2640_SENSOR_REG04
OV2640_SENSOR_REG08
OV2640_SENSOR_COM2
OV2640_SENSOR_PIDL
OV2640_SENSOR_COM3
OV2640_SENSOR_COM4
OV2640_SENSOR_AEC
OV2640_SENSOR_CLKRC
OV2640_SENSOR_COM8
OV2640_SENSOR_COM9
OV2640_SENSOR_COM10
OV2640_SENSOR_HREFST
OV2640_SENSOR_HREFEND
OV2640_SENSOR_VSTART
OV2640_SENSOR_VEND
OV2640_SENSOR_MIDH
OV2640_SENSOR_MIDL
OV2640_SENSOR_AEW
OV2640_SENSOR_AEB
OV2640_SENSOR_W
OV2640_SENSOR_REG2A
OV2640_SENSOR_FRARL
OV2640_SENSOR_ADDVSL
OV2640_SENSOR_ADDVHS
OV2640_SENSOR_YAVG
OV2640_SENSOR_REG32
OV2640_SENSOR_ARCOM2
OV2640_SENSOR_REG45
OV2640_SENSOR_FLL
OV2640_SENSOR_FLH
OV2640_SENSOR_COM19
OV2640_SENSOR_ZOOMS
OV2640_SENSOR_COM22
OV2640_SENSOR_COM25
OV2640_SENSOR_BD50
OV2640_SENSOR_BD60
OV2640_SENSOR_REG5D
OV2640_SENSOR_REG5E
OV2640_SENSOR_REG5F
OV2640_SENSOR_REG60
OV2640_SENSOR_HISTO_LOW
OV2640_SENSOR_HISTO_HIGH
ov2640_Config()::BR_value
CAMERA_DrvTypeDef