LibDriver OV2640
Loading...
Searching...
No Matches
driver_ov2640_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_OV2640_BASIC_H
38#define DRIVER_OV2640_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define OV2640_BASIC_DEFAULT_CLOCK_RATE_DOUBLE OV2640_BOOL_FALSE
57#define OV2640_BASIC_DEFAULT_CLOCK_DIVIDER 0x00
58#define OV2640_BASIC_DEFAULT_MODE OV2640_MODE_NORMAL
59#define OV2640_BASIC_DEFAULT_POWER_RESET_PIN_REMAP OV2640_BOOL_FALSE
60#define OV2640_BASIC_DEFAULT_OUTPUT_DRIVE OV2640_OUTPUT_DRIVE_2_CAPABILITY
61#define OV2640_BASIC_DEFAULT_HORIZONTAL_MIRROR OV2640_BOOL_TRUE
62#define OV2640_BASIC_DEFAULT_VERTICAL_FLIP OV2640_BOOL_TRUE
63#define OV2640_BASIC_DEFAULT_BAND_FILTER OV2640_BOOL_TRUE
64#define OV2640_BASIC_DEFAULT_AGC_CONTROL OV2640_CONTROL_AUTO
65#define OV2640_BASIC_DEFAULT_EXPOSURE_CONTROL OV2640_CONTROL_AUTO
66#define OV2640_BASIC_DEFAULT_AGC_GAIN_CEILING OV2640_AGC_8X
67#define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_H_START OV2640_BOOL_FALSE
68#define OV2640_BASIC_DEFAULT_PIN_STATUS OV2640_PIN_STATUS_TRI_STATE
69#define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_V_START 0x0000
70#define OV2640_BASIC_DEFAULT_LUMINANCE_HIGH 0x40
71#define OV2640_BASIC_DEFAULT_LUMINANCE_LOW 0x38
72#define OV2640_BASIC_DEFAULT_FAST_MODE_HIGH 0x8
73#define OV2640_BASIC_DEFAULT_FAST_MODE_LOW 0x2
74#define OV2640_BASIC_DEFAULT_FRAME_LENGTH_ADJ 0x0000
75#define OV2640_BASIC_DEFAULT_BAND OV2640_BAND_50HZ
76#define OV2640_BASIC_DEFAULT_AUTO_BAND OV2640_BOOL_FALSE
77#define OV2640_BASIC_DEFAULT_SNAPSHOT OV2640_BOOL_FALSE
78#define OV2640_BASIC_DEFAULT_HISTO_LOW 0x70
79#define OV2640_BASIC_DEFAULT_HISTO_HIGH 0x80
80#define OV2640_BASIC_DEFAULT_BD50_AEC 0x0CA
81#define OV2640_BASIC_DEFAULT_BD60_AEC 0x0A8
82#define OV2640_BASIC_DEFAULT_RESOLUTION OV2640_RESOLUTION_UXGA
83#define OV2640_BASIC_DEFAULT_ZOOM OV2640_BOOL_FALSE
84#define OV2640_BASIC_DEFAULT_COLOR_BAR_TEST OV2640_BOOL_FALSE
85#define OV2640_BASIC_DEFAULT_PCLK OV2640_PCLK_NO_EFFECT
86#define OV2640_BASIC_DEFAULT_H_WINDOW_START 142
87#define OV2640_BASIC_DEFAULT_H_WINDOW_END 942
88#define OV2640_BASIC_DEFAULT_V_WINDOW_START 7
89#define OV2640_BASIC_DEFAULT_V_WINDOW_END 607
90#define OV2640_BASIC_DEFAULT_VSYNC_PULSE_WIDTH 0x0000
91#define OV2640_BASIC_DEFAULT_AGC_GAIN 0x0000
92#define OV2640_BASIC_DEFAULT_DUMMY_FRAME OV2640_DUMMY_FRAME_NONE
93#define OV2640_BASIC_DEFAULT_AEC 0x0CC
94#define OV2640_BASIC_DEFAULT_FRAME_EXPOSURE_PRE_ROW 0x40
95#define OV2640_BASIC_DEFAULT_CHSYNC_HREF_SWAP OV2640_BOOL_FALSE
96#define OV2640_BASIC_DEFAULT_HREF_CHSYNC_SWAP OV2640_BOOL_FALSE
97#define OV2640_BASIC_DEFAULT_PCLK_OUTPUT_BY_HREF OV2640_BOOL_FALSE
98#define OV2640_BASIC_DEFAULT_PCLK_EDGE OV2640_EDGE_FALLING
99#define OV2640_BASIC_DEFAULT_HREF_POLARITY OV2640_POLARITY_POSITIVE
100#define OV2640_BASIC_DEFAULT_VSYNC_POLARITY OV2640_POLARITY_POSITIVE
101#define OV2640_BASIC_DEFAULT_HSYNC_POLARITY OV2640_POLARITY_POSITIVE
102#define OV2640_BASIC_DEFAULT_LINE_INTERVAL_ADJUST 0x000
103#define OV2640_BASIC_DEFAULT_HSYNC_START_POINT 0x08
104#define OV2640_BASIC_DEFAULT_HSYNC_END_POINT 0x30
105#define OV2640_BASIC_DEFAULT_LUMINANCE_AVG 0x00
106#define OV2640_BASIC_DEFAULT_FLASH_LIGHT 0x20
107#define OV2640_BASIC_DEFAULT_16_ZONE_AVG_WEIGHT 0x00000000
108#define OV2640_BASIC_DEFAULT_DSP_BPC OV2640_BOOL_TRUE
109#define OV2640_BASIC_DEFAULT_DSP_WPC OV2640_BOOL_TRUE
110#define OV2640_BASIC_DEFAULT_DSP_DVP_PCLK 0x02
111#define OV2640_BASIC_DEFAULT_DSP_CIP OV2640_BOOL_TRUE
112#define OV2640_BASIC_DEFAULT_DSP_DMY OV2640_BOOL_TRUE
113#define OV2640_BASIC_DEFAULT_DSP_RAW_GMA OV2640_BOOL_TRUE
114#define OV2640_BASIC_DEFAULT_DSP_DG OV2640_BOOL_FALSE
115#define OV2640_BASIC_DEFAULT_DSP_AWB OV2640_BOOL_TRUE
116#define OV2640_BASIC_DEFAULT_DSP_AWB_GAIN OV2640_BOOL_TRUE
117#define OV2640_BASIC_DEFAULT_DSP_PRE OV2640_BOOL_TRUE
118#define OV2640_BASIC_DEFAULT_DSP_DVP_Y8 OV2640_BOOL_FALSE
119#define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT OV2640_BOOL_FALSE
120#define OV2640_BASIC_DEFAULT_DSP_DVP_OUTPUT_FORMAT OV2640_DVP_OUTPUT_FORMAT_RGB565
121#define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT_HREF_TIMING OV2640_HREF_TIMING_SENSOR
122#define OV2640_BASIC_DEFAULT_DSP_BYTE_SWAP OV2640_BYTE_SWAP_UVUV
123#define OV2640_BASIC_DEFAULT_DSP_IMAGE_HORIZONTAL 1600
124#define OV2640_BASIC_DEFAULT_DSP_IMAGE_VERTICAL 1200
125#define OV2640_BASIC_DEFAULT_DSP_DCW OV2640_BOOL_TRUE
126#define OV2640_BASIC_DEFAULT_DSP_SDE OV2640_BOOL_TRUE
127#define OV2640_BASIC_DEFAULT_DSP_UV_ADJ OV2640_BOOL_TRUE
128#define OV2640_BASIC_DEFAULT_DSP_UV_AVG OV2640_BOOL_TRUE
129#define OV2640_BASIC_DEFAULT_DSP_CMX OV2640_BOOL_TRUE
130#define OV2640_BASIC_DEFAULT_DSP_LP_DP OV2640_BOOL_FALSE
131#define OV2640_BASIC_DEFAULT_DSP_ROUND OV2640_BOOL_FALSE
132#define OV2640_BASIC_DEFAULT_DSP_VERTICAL_DIV 0x00
133#define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_DIV 0x00
134#define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_SIZE 1600
135#define OV2640_BASIC_DEFAULT_DSP_VERTICAL_SIZE 1200
136#define OV2640_BASIC_DEFAULT_DSP_OFFSET_X 0
137#define OV2640_BASIC_DEFAULT_DSP_OFFSET_Y 0
138#define OV2640_BASIC_DEFAULT_DSP_OUTPUT_WIDTH 1600
139#define OV2640_BASIC_DEFAULT_DSP_OUTPUT_HEIGHT 1200
140#define OV2640_BASIC_DEFAULT_DSP_ZOOM_SPEED 0x00
141#define OV2640_BASIC_DEFAULT_DSP_QSF 0x0C
142#define OV2640_BASIC_DEFAULT_DSP_SCCB_MASTER_SPEED 4
143#define OV2640_BASIC_DEFAULT_DSP_ADDRESS_AUTO_INC OV2640_BOOL_FALSE
144#define OV2640_BASIC_DEFAULT_DSP_SCCB OV2640_BOOL_FALSE
145#define OV2640_BASIC_DEFAULT_DSP_SCCB_CLOCK_DELAY OV2640_BOOL_FALSE
146#define OV2640_BASIC_DEFAULT_DSP_SCCB_ACCESS OV2640_BOOL_FALSE
147#define OV2640_BASIC_DEFAULT_DSP_SENSOR_PASS_ACCESS OV2640_BOOL_TRUE
148#define OV2640_BASIC_DEFAULT_DSP_AEC_ENABLE OV2640_BOOL_FALSE
149#define OV2640_BASIC_DEFAULT_DSP_AEC_SEL OV2640_BOOL_FALSE
150#define OV2640_BASIC_DEFAULT_DSP_STAT_SEL OV2640_BOOL_FALSE
151#define OV2640_BASIC_DEFAULT_DSP_VFIRST OV2640_BOOL_FALSE
152#define OV2640_BASIC_DEFAULT_DSP_YUV422 OV2640_BOOL_TRUE
153#define OV2640_BASIC_DEFAULT_DSP_YUV OV2640_BOOL_TRUE
154#define OV2640_BASIC_DEFAULT_DSP_RGB OV2640_BOOL_FALSE
155#define OV2640_BASIC_DEFAULT_DSP_RAW OV2640_BOOL_FALSE
156#define OV2640_BASIC_DEFAULT_DSP_DP_SELX 0x00
157#define OV2640_BASIC_DEFAULT_DSP_DP_SELY 0x00
158
178
186uint8_t ov2640_basic_init(void);
187
195uint8_t ov2640_basic_deinit(void);
196
204uint8_t ov2640_basic_set_jpeg_mode(void);
205
213uint8_t ov2640_basic_set_rgb565_mode(void);
214
224
234
244
254
264
274
278
279#ifdef __cplusplus
280}
281#endif
282
283#endif
driver ov2640 interface header file
ov2640_image_resolution_t
ov2640 image resolution enumeration definition
uint8_t ov2640_basic_set_contrast(ov2640_contrast_t contrast)
basic example set contrast
uint8_t ov2640_basic_set_jpeg_mode(void)
basic example set jpeg mode
uint8_t ov2640_basic_deinit(void)
basic example deinit
uint8_t ov2640_basic_set_special_effect(ov2640_special_effect_t effect)
basic example set special effect
uint8_t ov2640_basic_init(void)
basic example init
uint8_t ov2640_basic_set_brightness(ov2640_brightness_t brightness)
basic example set brightness
uint8_t ov2640_basic_set_rgb565_mode(void)
basic example set rgb565 mode
uint8_t ov2640_basic_set_light_mode(ov2640_light_mode_t mode)
basic example set light mode
uint8_t ov2640_basic_set_image_resolution(ov2640_image_resolution_t resolution)
basic example set image resolution
uint8_t ov2640_basic_set_color_saturation(ov2640_color_saturation_t color)
basic example set color saturation
@ OV2640_IMAGE_RESOLUTION_WQVGA
@ OV2640_IMAGE_RESOLUTION_SXGA
@ OV2640_IMAGE_RESOLUTION_WXGA
@ OV2640_IMAGE_RESOLUTION_SVGA
@ OV2640_IMAGE_RESOLUTION_UXGA
@ OV2640_IMAGE_RESOLUTION_VGA
@ OV2640_IMAGE_RESOLUTION_XVGA
@ OV2640_IMAGE_RESOLUTION_QVGA
@ OV2640_IMAGE_RESOLUTION_WXGA_PLUS
@ OV2640_IMAGE_RESOLUTION_XGA
@ OV2640_IMAGE_RESOLUTION_CIF
@ OV2640_IMAGE_RESOLUTION_QQVGA
@ OV2640_IMAGE_RESOLUTION_QCIF
ov2640_special_effect_t
ov2640 special effect enumeration definition
ov2640_contrast_t
ov2640 contrast enumeration definition
ov2640_brightness_t
ov2640 brightness enumeration definition
ov2640_color_saturation_t
ov2640 color saturation enumeration definition
ov2640_light_mode_t
ov2640 light mode enumeration definition