![]() |
LibDriver OV2640
|
ov2640 example driver modules More...
Enumerations | |
| enum | ov2640_image_resolution_t { OV2640_IMAGE_RESOLUTION_QQVGA = 0 , OV2640_IMAGE_RESOLUTION_QCIF = 1 , OV2640_IMAGE_RESOLUTION_QVGA = 2 , OV2640_IMAGE_RESOLUTION_WQVGA = 3 , OV2640_IMAGE_RESOLUTION_CIF = 4 , OV2640_IMAGE_RESOLUTION_VGA = 5 , OV2640_IMAGE_RESOLUTION_SVGA = 6 , OV2640_IMAGE_RESOLUTION_XGA = 7 , OV2640_IMAGE_RESOLUTION_WXGA = 8 , OV2640_IMAGE_RESOLUTION_XVGA = 9 , OV2640_IMAGE_RESOLUTION_WXGA_PLUS = 10 , OV2640_IMAGE_RESOLUTION_SXGA = 11 , OV2640_IMAGE_RESOLUTION_UXGA = 12 } |
| ov2640 image resolution enumeration definition More... | |
Functions | |
| uint8_t | ov2640_basic_init (void) |
| basic example init | |
| uint8_t | ov2640_basic_deinit (void) |
| basic example deinit | |
| uint8_t | ov2640_basic_set_jpeg_mode (void) |
| basic example set jpeg mode | |
| 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_color_saturation (ov2640_color_saturation_t color) |
| basic example set color saturation | |
| uint8_t | ov2640_basic_set_brightness (ov2640_brightness_t brightness) |
| basic example set brightness | |
| uint8_t | ov2640_basic_set_contrast (ov2640_contrast_t contrast) |
| basic example set contrast | |
| uint8_t | ov2640_basic_set_special_effect (ov2640_special_effect_t effect) |
| basic example set special effect | |
| uint8_t | ov2640_basic_set_image_resolution (ov2640_image_resolution_t resolution) |
| basic example set image resolution | |
ov2640 example driver modules
| #define OV2640_BASIC_DEFAULT_16_ZONE_AVG_WEIGHT 0x00000000 |
0x00000000
Definition at line 107 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_AEC 0x0CC |
0x0CC
Definition at line 93 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_AGC_CONTROL OV2640_CONTROL_AUTO |
auto
Definition at line 64 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_AGC_GAIN 0x0000 |
0x0000
Definition at line 91 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_AGC_GAIN_CEILING OV2640_AGC_8X |
agc 8x
Definition at line 66 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_AUTO_BAND OV2640_BOOL_FALSE |
disable auto band
Definition at line 76 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_BAND OV2640_BAND_50HZ |
50Hz
Definition at line 75 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_BAND_FILTER OV2640_BOOL_TRUE |
enable band filter
Definition at line 63 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_BD50_AEC 0x0CA |
bd50 aec
Definition at line 80 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_BD60_AEC 0x0A8 |
bd60 aec
Definition at line 81 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_CHSYNC_HREF_SWAP OV2640_BOOL_FALSE |
disable swap
Definition at line 95 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_CLOCK_DIVIDER 0x00 |
div 0
Definition at line 57 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_CLOCK_RATE_DOUBLE OV2640_BOOL_FALSE |
ov2640 basic example default definition
disable double rate
Definition at line 56 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_COLOR_BAR_TEST OV2640_BOOL_FALSE |
disable color bar test
Definition at line 84 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_ADDRESS_AUTO_INC OV2640_BOOL_FALSE |
disable address auto inc
Definition at line 143 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_AEC_ENABLE OV2640_BOOL_FALSE |
disable aec enable
Definition at line 148 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_AEC_SEL OV2640_BOOL_FALSE |
disable aec sel
Definition at line 149 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_AWB OV2640_BOOL_TRUE |
enable awb
Definition at line 115 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_AWB_GAIN OV2640_BOOL_TRUE |
enable awb gain
Definition at line 116 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_BPC OV2640_BOOL_TRUE |
enable bpc
Definition at line 108 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_BYTE_SWAP OV2640_BYTE_SWAP_UVUV |
uvuv
Definition at line 122 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_CIP OV2640_BOOL_TRUE |
enable cip
Definition at line 111 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_CMX OV2640_BOOL_TRUE |
enable cmx
Definition at line 129 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DCW OV2640_BOOL_TRUE |
enable dcw
Definition at line 125 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DG OV2640_BOOL_FALSE |
disable dg
Definition at line 114 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DMY OV2640_BOOL_TRUE |
enable dmy
Definition at line 112 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DP_SELX 0x00 |
selx 0x00
Definition at line 156 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DP_SELY 0x00 |
sely 0x00
Definition at line 157 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DVP_OUTPUT_FORMAT OV2640_DVP_OUTPUT_FORMAT_RGB565 |
rgb565 format
Definition at line 120 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DVP_PCLK 0x02 |
0x02
Definition at line 110 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_DVP_Y8 OV2640_BOOL_FALSE |
disable dvp y8
Definition at line 118 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_DIV 0x00 |
div 0
Definition at line 133 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_SIZE 1600 |
1600
Definition at line 134 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_IMAGE_HORIZONTAL 1600 |
1600
Definition at line 123 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_IMAGE_VERTICAL 1200 |
1200
Definition at line 124 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT OV2640_BOOL_FALSE |
disable jpeg output
Definition at line 119 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT_HREF_TIMING OV2640_HREF_TIMING_SENSOR |
sensor timing
Definition at line 121 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_LP_DP OV2640_BOOL_FALSE |
disable lp dp
Definition at line 130 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_OFFSET_X 0 |
offset 0
Definition at line 136 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_OFFSET_Y 0 |
offset 0
Definition at line 137 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_OUTPUT_HEIGHT 1200 |
1200
Definition at line 139 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_OUTPUT_WIDTH 1600 |
1600
Definition at line 138 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_PRE OV2640_BOOL_TRUE |
enable pre
Definition at line 117 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_QSF 0x0C |
0x0C
Definition at line 141 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_RAW OV2640_BOOL_FALSE |
disable raw
Definition at line 155 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_RAW_GMA OV2640_BOOL_TRUE |
enable raw gma
Definition at line 113 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_RGB OV2640_BOOL_FALSE |
disable rgb
Definition at line 154 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_ROUND OV2640_BOOL_FALSE |
disable round
Definition at line 131 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_SCCB OV2640_BOOL_FALSE |
disable sccb
Definition at line 144 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_SCCB_ACCESS OV2640_BOOL_FALSE |
disable sccb access
Definition at line 146 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_SCCB_CLOCK_DELAY OV2640_BOOL_FALSE |
disable sccb clock delay
Definition at line 145 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_SCCB_MASTER_SPEED 4 |
4
Definition at line 142 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_SDE OV2640_BOOL_TRUE |
enable sde
Definition at line 126 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_SENSOR_PASS_ACCESS OV2640_BOOL_TRUE |
enable sensor pass access
Definition at line 147 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_STAT_SEL OV2640_BOOL_FALSE |
disable stat sel
Definition at line 150 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_UV_ADJ OV2640_BOOL_TRUE |
enable uv adj
Definition at line 127 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_UV_AVG OV2640_BOOL_TRUE |
enable uv avg
Definition at line 128 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_VERTICAL_DIV 0x00 |
div 0
Definition at line 132 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_VERTICAL_SIZE 1200 |
1200
Definition at line 135 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_VFIRST OV2640_BOOL_FALSE |
disable vfirst
Definition at line 151 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_WPC OV2640_BOOL_TRUE |
enable wpc
Definition at line 109 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_YUV OV2640_BOOL_TRUE |
enable yuv
Definition at line 153 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_YUV422 OV2640_BOOL_TRUE |
enable yuv422
Definition at line 152 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DSP_ZOOM_SPEED 0x00 |
speed 0
Definition at line 140 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_DUMMY_FRAME OV2640_DUMMY_FRAME_NONE |
dummy frame none
Definition at line 92 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_EXPOSURE_CONTROL OV2640_CONTROL_AUTO |
auto
Definition at line 65 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_FAST_MODE_HIGH 0x8 |
0x8
Definition at line 72 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_FAST_MODE_LOW 0x2 |
0x2
Definition at line 73 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_FLASH_LIGHT 0x20 |
0x20
Definition at line 106 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_FRAME_EXPOSURE_PRE_ROW 0x40 |
0x40
Definition at line 94 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_FRAME_LENGTH_ADJ 0x0000 |
0x0000
Definition at line 74 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_H_WINDOW_END 942 |
942
Definition at line 87 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_H_WINDOW_START 142 |
142
Definition at line 86 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HISTO_HIGH 0x80 |
histo high
Definition at line 79 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HISTO_LOW 0x70 |
histo low
Definition at line 78 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HORIZONTAL_MIRROR OV2640_BOOL_TRUE |
enable horizontal mirror
Definition at line 61 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HREF_CHSYNC_SWAP OV2640_BOOL_FALSE |
disable swap
Definition at line 96 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HREF_POLARITY OV2640_POLARITY_POSITIVE |
positive
Definition at line 99 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HSYNC_END_POINT 0x30 |
0x30
Definition at line 104 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HSYNC_POLARITY OV2640_POLARITY_POSITIVE |
positive
Definition at line 101 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_HSYNC_START_POINT 0x08 |
0x08
Definition at line 103 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_LINE_INTERVAL_ADJUST 0x000 |
0x000
Definition at line 102 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_LUMINANCE_AVG 0x00 |
0x00
Definition at line 105 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_LUMINANCE_HIGH 0x40 |
0x40
Definition at line 70 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_LUMINANCE_LOW 0x38 |
0x38
Definition at line 71 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_MODE OV2640_MODE_NORMAL |
normal mode
Definition at line 58 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_OUTPUT_DRIVE OV2640_OUTPUT_DRIVE_2_CAPABILITY |
2 capability
Definition at line 60 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_PCLK OV2640_PCLK_NO_EFFECT |
pclk no effect
Definition at line 85 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_PCLK_EDGE OV2640_EDGE_FALLING |
falling edge
Definition at line 98 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_PCLK_OUTPUT_BY_HREF OV2640_BOOL_FALSE |
disable
Definition at line 97 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_PIN_STATUS OV2640_PIN_STATUS_TRI_STATE |
tri state
Definition at line 68 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_POWER_RESET_PIN_REMAP OV2640_BOOL_FALSE |
disable power reset remap
Definition at line 59 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_RESOLUTION OV2640_RESOLUTION_UXGA |
uxga
Definition at line 82 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_SNAPSHOT OV2640_BOOL_FALSE |
disable snapshot
Definition at line 77 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_V_WINDOW_END 607 |
607
Definition at line 89 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_V_WINDOW_START 7 |
7
Definition at line 88 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_VERTICAL_FLIP OV2640_BOOL_TRUE |
enable vertical flip
Definition at line 62 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_VSYNC_POLARITY OV2640_POLARITY_POSITIVE |
positive
Definition at line 100 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_VSYNC_PULSE_WIDTH 0x0000 |
0x0000
Definition at line 90 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_ZOOM OV2640_BOOL_FALSE |
disable zoom
Definition at line 83 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_H_START OV2640_BOOL_FALSE |
disable zoom window horizontal start
Definition at line 67 of file driver_ov2640_basic.h.
| #define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_V_START 0x0000 |
0x0000
Definition at line 69 of file driver_ov2640_basic.h.
ov2640 image resolution enumeration definition
Definition at line 162 of file driver_ov2640_basic.h.
| uint8_t ov2640_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 1126 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_init | ( | void | ) |
basic example init
Definition at line 48 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_brightness | ( | ov2640_brightness_t | brightness | ) |
basic example set brightness
| [in] | brightness | set brightness |
Definition at line 1219 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_color_saturation | ( | ov2640_color_saturation_t | color | ) |
basic example set color saturation
| [in] | color | color saturation |
Definition at line 1200 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_contrast | ( | ov2640_contrast_t | contrast | ) |
basic example set contrast
| [in] | contrast | set contrast |
Definition at line 1238 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_image_resolution | ( | ov2640_image_resolution_t | resolution | ) |
basic example set image resolution
| [in] | resolution | set image resolution |
Definition at line 1276 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_jpeg_mode | ( | void | ) |
basic example set jpeg mode
Definition at line 1144 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_light_mode | ( | ov2640_light_mode_t | mode | ) |
basic example set light mode
| [in] | mode | light mode |
Definition at line 1181 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_rgb565_mode | ( | void | ) |
basic example set rgb565 mode
Definition at line 1162 of file driver_ov2640_basic.c.
| uint8_t ov2640_basic_set_special_effect | ( | ov2640_special_effect_t | effect | ) |
basic example set special effect
| [in] | effect | set special effect |
Definition at line 1257 of file driver_ov2640_basic.c.