LibDriver OV2640
Loading...
Searching...
No Matches
ov2640 example driver function

ov2640 example driver modules More...

Collaboration diagram for ov2640 example driver function:

Macros

#define OV2640_BASIC_DEFAULT_CLOCK_RATE_DOUBLE   OV2640_BOOL_FALSE
 ov2640 basic example default definition
#define OV2640_BASIC_DEFAULT_CLOCK_DIVIDER   0x00
#define OV2640_BASIC_DEFAULT_MODE   OV2640_MODE_NORMAL
#define OV2640_BASIC_DEFAULT_POWER_RESET_PIN_REMAP   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_OUTPUT_DRIVE   OV2640_OUTPUT_DRIVE_2_CAPABILITY
#define OV2640_BASIC_DEFAULT_HORIZONTAL_MIRROR   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_VERTICAL_FLIP   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_BAND_FILTER   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_AGC_CONTROL   OV2640_CONTROL_AUTO
#define OV2640_BASIC_DEFAULT_EXPOSURE_CONTROL   OV2640_CONTROL_AUTO
#define OV2640_BASIC_DEFAULT_AGC_GAIN_CEILING   OV2640_AGC_8X
#define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_H_START   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_PIN_STATUS   OV2640_PIN_STATUS_TRI_STATE
#define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_V_START   0x0000
#define OV2640_BASIC_DEFAULT_LUMINANCE_HIGH   0x40
#define OV2640_BASIC_DEFAULT_LUMINANCE_LOW   0x38
#define OV2640_BASIC_DEFAULT_FAST_MODE_HIGH   0x8
#define OV2640_BASIC_DEFAULT_FAST_MODE_LOW   0x2
#define OV2640_BASIC_DEFAULT_FRAME_LENGTH_ADJ   0x0000
#define OV2640_BASIC_DEFAULT_BAND   OV2640_BAND_50HZ
#define OV2640_BASIC_DEFAULT_AUTO_BAND   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_SNAPSHOT   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_HISTO_LOW   0x70
#define OV2640_BASIC_DEFAULT_HISTO_HIGH   0x80
#define OV2640_BASIC_DEFAULT_BD50_AEC   0x0CA
#define OV2640_BASIC_DEFAULT_BD60_AEC   0x0A8
#define OV2640_BASIC_DEFAULT_RESOLUTION   OV2640_RESOLUTION_UXGA
#define OV2640_BASIC_DEFAULT_ZOOM   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_COLOR_BAR_TEST   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_PCLK   OV2640_PCLK_NO_EFFECT
#define OV2640_BASIC_DEFAULT_H_WINDOW_START   142
#define OV2640_BASIC_DEFAULT_H_WINDOW_END   942
#define OV2640_BASIC_DEFAULT_V_WINDOW_START   7
#define OV2640_BASIC_DEFAULT_V_WINDOW_END   607
#define OV2640_BASIC_DEFAULT_VSYNC_PULSE_WIDTH   0x0000
#define OV2640_BASIC_DEFAULT_AGC_GAIN   0x0000
#define OV2640_BASIC_DEFAULT_DUMMY_FRAME   OV2640_DUMMY_FRAME_NONE
#define OV2640_BASIC_DEFAULT_AEC   0x0CC
#define OV2640_BASIC_DEFAULT_FRAME_EXPOSURE_PRE_ROW   0x40
#define OV2640_BASIC_DEFAULT_CHSYNC_HREF_SWAP   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_HREF_CHSYNC_SWAP   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_PCLK_OUTPUT_BY_HREF   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_PCLK_EDGE   OV2640_EDGE_FALLING
#define OV2640_BASIC_DEFAULT_HREF_POLARITY   OV2640_POLARITY_POSITIVE
#define OV2640_BASIC_DEFAULT_VSYNC_POLARITY   OV2640_POLARITY_POSITIVE
#define OV2640_BASIC_DEFAULT_HSYNC_POLARITY   OV2640_POLARITY_POSITIVE
#define OV2640_BASIC_DEFAULT_LINE_INTERVAL_ADJUST   0x000
#define OV2640_BASIC_DEFAULT_HSYNC_START_POINT   0x08
#define OV2640_BASIC_DEFAULT_HSYNC_END_POINT   0x30
#define OV2640_BASIC_DEFAULT_LUMINANCE_AVG   0x00
#define OV2640_BASIC_DEFAULT_FLASH_LIGHT   0x20
#define OV2640_BASIC_DEFAULT_16_ZONE_AVG_WEIGHT   0x00000000
#define OV2640_BASIC_DEFAULT_DSP_BPC   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_WPC   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_DVP_PCLK   0x02
#define OV2640_BASIC_DEFAULT_DSP_CIP   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_DMY   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_RAW_GMA   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_DG   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_AWB   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_AWB_GAIN   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_PRE   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_DVP_Y8   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_DVP_OUTPUT_FORMAT   OV2640_DVP_OUTPUT_FORMAT_RGB565
#define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT_HREF_TIMING   OV2640_HREF_TIMING_SENSOR
#define OV2640_BASIC_DEFAULT_DSP_BYTE_SWAP   OV2640_BYTE_SWAP_UVUV
#define OV2640_BASIC_DEFAULT_DSP_IMAGE_HORIZONTAL   1600
#define OV2640_BASIC_DEFAULT_DSP_IMAGE_VERTICAL   1200
#define OV2640_BASIC_DEFAULT_DSP_DCW   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_SDE   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_UV_ADJ   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_UV_AVG   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_CMX   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_LP_DP   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_ROUND   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_VERTICAL_DIV   0x00
#define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_DIV   0x00
#define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_SIZE   1600
#define OV2640_BASIC_DEFAULT_DSP_VERTICAL_SIZE   1200
#define OV2640_BASIC_DEFAULT_DSP_OFFSET_X   0
#define OV2640_BASIC_DEFAULT_DSP_OFFSET_Y   0
#define OV2640_BASIC_DEFAULT_DSP_OUTPUT_WIDTH   1600
#define OV2640_BASIC_DEFAULT_DSP_OUTPUT_HEIGHT   1200
#define OV2640_BASIC_DEFAULT_DSP_ZOOM_SPEED   0x00
#define OV2640_BASIC_DEFAULT_DSP_QSF   0x0C
#define OV2640_BASIC_DEFAULT_DSP_SCCB_MASTER_SPEED   4
#define OV2640_BASIC_DEFAULT_DSP_ADDRESS_AUTO_INC   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_SCCB   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_SCCB_CLOCK_DELAY   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_SCCB_ACCESS   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_SENSOR_PASS_ACCESS   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_AEC_ENABLE   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_AEC_SEL   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_STAT_SEL   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_VFIRST   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_YUV422   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_YUV   OV2640_BOOL_TRUE
#define OV2640_BASIC_DEFAULT_DSP_RGB   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_RAW   OV2640_BOOL_FALSE
#define OV2640_BASIC_DEFAULT_DSP_DP_SELX   0x00
#define OV2640_BASIC_DEFAULT_DSP_DP_SELY   0x00

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

Detailed Description

ov2640 example driver modules

Macro Definition Documentation

◆ OV2640_BASIC_DEFAULT_16_ZONE_AVG_WEIGHT

#define OV2640_BASIC_DEFAULT_16_ZONE_AVG_WEIGHT   0x00000000

0x00000000

Definition at line 107 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_AEC

#define OV2640_BASIC_DEFAULT_AEC   0x0CC

0x0CC

Definition at line 93 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_AGC_CONTROL

#define OV2640_BASIC_DEFAULT_AGC_CONTROL   OV2640_CONTROL_AUTO

auto

Definition at line 64 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_AGC_GAIN

#define OV2640_BASIC_DEFAULT_AGC_GAIN   0x0000

0x0000

Definition at line 91 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_AGC_GAIN_CEILING

#define OV2640_BASIC_DEFAULT_AGC_GAIN_CEILING   OV2640_AGC_8X

agc 8x

Definition at line 66 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_AUTO_BAND

#define OV2640_BASIC_DEFAULT_AUTO_BAND   OV2640_BOOL_FALSE

disable auto band

Definition at line 76 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_BAND

#define OV2640_BASIC_DEFAULT_BAND   OV2640_BAND_50HZ

50Hz

Definition at line 75 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_BAND_FILTER

#define OV2640_BASIC_DEFAULT_BAND_FILTER   OV2640_BOOL_TRUE

enable band filter

Definition at line 63 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_BD50_AEC

#define OV2640_BASIC_DEFAULT_BD50_AEC   0x0CA

bd50 aec

Definition at line 80 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_BD60_AEC

#define OV2640_BASIC_DEFAULT_BD60_AEC   0x0A8

bd60 aec

Definition at line 81 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_CHSYNC_HREF_SWAP

#define OV2640_BASIC_DEFAULT_CHSYNC_HREF_SWAP   OV2640_BOOL_FALSE

disable swap

Definition at line 95 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_CLOCK_DIVIDER

#define OV2640_BASIC_DEFAULT_CLOCK_DIVIDER   0x00

div 0

Definition at line 57 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_CLOCK_RATE_DOUBLE

#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.

◆ OV2640_BASIC_DEFAULT_COLOR_BAR_TEST

#define OV2640_BASIC_DEFAULT_COLOR_BAR_TEST   OV2640_BOOL_FALSE

disable color bar test

Definition at line 84 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_ADDRESS_AUTO_INC

#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.

◆ OV2640_BASIC_DEFAULT_DSP_AEC_ENABLE

#define OV2640_BASIC_DEFAULT_DSP_AEC_ENABLE   OV2640_BOOL_FALSE

disable aec enable

Definition at line 148 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_AEC_SEL

#define OV2640_BASIC_DEFAULT_DSP_AEC_SEL   OV2640_BOOL_FALSE

disable aec sel

Definition at line 149 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_AWB

#define OV2640_BASIC_DEFAULT_DSP_AWB   OV2640_BOOL_TRUE

enable awb

Definition at line 115 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_AWB_GAIN

#define OV2640_BASIC_DEFAULT_DSP_AWB_GAIN   OV2640_BOOL_TRUE

enable awb gain

Definition at line 116 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_BPC

#define OV2640_BASIC_DEFAULT_DSP_BPC   OV2640_BOOL_TRUE

enable bpc

Definition at line 108 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_BYTE_SWAP

#define OV2640_BASIC_DEFAULT_DSP_BYTE_SWAP   OV2640_BYTE_SWAP_UVUV

uvuv

Definition at line 122 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_CIP

#define OV2640_BASIC_DEFAULT_DSP_CIP   OV2640_BOOL_TRUE

enable cip

Definition at line 111 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_CMX

#define OV2640_BASIC_DEFAULT_DSP_CMX   OV2640_BOOL_TRUE

enable cmx

Definition at line 129 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DCW

#define OV2640_BASIC_DEFAULT_DSP_DCW   OV2640_BOOL_TRUE

enable dcw

Definition at line 125 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DG

#define OV2640_BASIC_DEFAULT_DSP_DG   OV2640_BOOL_FALSE

disable dg

Definition at line 114 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DMY

#define OV2640_BASIC_DEFAULT_DSP_DMY   OV2640_BOOL_TRUE

enable dmy

Definition at line 112 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DP_SELX

#define OV2640_BASIC_DEFAULT_DSP_DP_SELX   0x00

selx 0x00

Definition at line 156 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DP_SELY

#define OV2640_BASIC_DEFAULT_DSP_DP_SELY   0x00

sely 0x00

Definition at line 157 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DVP_OUTPUT_FORMAT

#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.

◆ OV2640_BASIC_DEFAULT_DSP_DVP_PCLK

#define OV2640_BASIC_DEFAULT_DSP_DVP_PCLK   0x02

0x02

Definition at line 110 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_DVP_Y8

#define OV2640_BASIC_DEFAULT_DSP_DVP_Y8   OV2640_BOOL_FALSE

disable dvp y8

Definition at line 118 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_DIV

#define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_DIV   0x00

div 0

Definition at line 133 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_SIZE

#define OV2640_BASIC_DEFAULT_DSP_HORIZONTAL_SIZE   1600

1600

Definition at line 134 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_IMAGE_HORIZONTAL

#define OV2640_BASIC_DEFAULT_DSP_IMAGE_HORIZONTAL   1600

1600

Definition at line 123 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_IMAGE_VERTICAL

#define OV2640_BASIC_DEFAULT_DSP_IMAGE_VERTICAL   1200

1200

Definition at line 124 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT

#define OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT   OV2640_BOOL_FALSE

disable jpeg output

Definition at line 119 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_JPEG_OUTPUT_HREF_TIMING

#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.

◆ OV2640_BASIC_DEFAULT_DSP_LP_DP

#define OV2640_BASIC_DEFAULT_DSP_LP_DP   OV2640_BOOL_FALSE

disable lp dp

Definition at line 130 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_OFFSET_X

#define OV2640_BASIC_DEFAULT_DSP_OFFSET_X   0

offset 0

Definition at line 136 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_OFFSET_Y

#define OV2640_BASIC_DEFAULT_DSP_OFFSET_Y   0

offset 0

Definition at line 137 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_OUTPUT_HEIGHT

#define OV2640_BASIC_DEFAULT_DSP_OUTPUT_HEIGHT   1200

1200

Definition at line 139 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_OUTPUT_WIDTH

#define OV2640_BASIC_DEFAULT_DSP_OUTPUT_WIDTH   1600

1600

Definition at line 138 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_PRE

#define OV2640_BASIC_DEFAULT_DSP_PRE   OV2640_BOOL_TRUE

enable pre

Definition at line 117 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_QSF

#define OV2640_BASIC_DEFAULT_DSP_QSF   0x0C

0x0C

Definition at line 141 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_RAW

#define OV2640_BASIC_DEFAULT_DSP_RAW   OV2640_BOOL_FALSE

disable raw

Definition at line 155 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_RAW_GMA

#define OV2640_BASIC_DEFAULT_DSP_RAW_GMA   OV2640_BOOL_TRUE

enable raw gma

Definition at line 113 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_RGB

#define OV2640_BASIC_DEFAULT_DSP_RGB   OV2640_BOOL_FALSE

disable rgb

Definition at line 154 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_ROUND

#define OV2640_BASIC_DEFAULT_DSP_ROUND   OV2640_BOOL_FALSE

disable round

Definition at line 131 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_SCCB

#define OV2640_BASIC_DEFAULT_DSP_SCCB   OV2640_BOOL_FALSE

disable sccb

Definition at line 144 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_SCCB_ACCESS

#define OV2640_BASIC_DEFAULT_DSP_SCCB_ACCESS   OV2640_BOOL_FALSE

disable sccb access

Definition at line 146 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_SCCB_CLOCK_DELAY

#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.

◆ OV2640_BASIC_DEFAULT_DSP_SCCB_MASTER_SPEED

#define OV2640_BASIC_DEFAULT_DSP_SCCB_MASTER_SPEED   4

4

Definition at line 142 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_SDE

#define OV2640_BASIC_DEFAULT_DSP_SDE   OV2640_BOOL_TRUE

enable sde

Definition at line 126 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_SENSOR_PASS_ACCESS

#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.

◆ OV2640_BASIC_DEFAULT_DSP_STAT_SEL

#define OV2640_BASIC_DEFAULT_DSP_STAT_SEL   OV2640_BOOL_FALSE

disable stat sel

Definition at line 150 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_UV_ADJ

#define OV2640_BASIC_DEFAULT_DSP_UV_ADJ   OV2640_BOOL_TRUE

enable uv adj

Definition at line 127 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_UV_AVG

#define OV2640_BASIC_DEFAULT_DSP_UV_AVG   OV2640_BOOL_TRUE

enable uv avg

Definition at line 128 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_VERTICAL_DIV

#define OV2640_BASIC_DEFAULT_DSP_VERTICAL_DIV   0x00

div 0

Definition at line 132 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_VERTICAL_SIZE

#define OV2640_BASIC_DEFAULT_DSP_VERTICAL_SIZE   1200

1200

Definition at line 135 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_VFIRST

#define OV2640_BASIC_DEFAULT_DSP_VFIRST   OV2640_BOOL_FALSE

disable vfirst

Definition at line 151 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_WPC

#define OV2640_BASIC_DEFAULT_DSP_WPC   OV2640_BOOL_TRUE

enable wpc

Definition at line 109 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_YUV

#define OV2640_BASIC_DEFAULT_DSP_YUV   OV2640_BOOL_TRUE

enable yuv

Definition at line 153 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_YUV422

#define OV2640_BASIC_DEFAULT_DSP_YUV422   OV2640_BOOL_TRUE

enable yuv422

Definition at line 152 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DSP_ZOOM_SPEED

#define OV2640_BASIC_DEFAULT_DSP_ZOOM_SPEED   0x00

speed 0

Definition at line 140 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_DUMMY_FRAME

#define OV2640_BASIC_DEFAULT_DUMMY_FRAME   OV2640_DUMMY_FRAME_NONE

dummy frame none

Definition at line 92 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_EXPOSURE_CONTROL

#define OV2640_BASIC_DEFAULT_EXPOSURE_CONTROL   OV2640_CONTROL_AUTO

auto

Definition at line 65 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_FAST_MODE_HIGH

#define OV2640_BASIC_DEFAULT_FAST_MODE_HIGH   0x8

0x8

Definition at line 72 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_FAST_MODE_LOW

#define OV2640_BASIC_DEFAULT_FAST_MODE_LOW   0x2

0x2

Definition at line 73 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_FLASH_LIGHT

#define OV2640_BASIC_DEFAULT_FLASH_LIGHT   0x20

0x20

Definition at line 106 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_FRAME_EXPOSURE_PRE_ROW

#define OV2640_BASIC_DEFAULT_FRAME_EXPOSURE_PRE_ROW   0x40

0x40

Definition at line 94 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_FRAME_LENGTH_ADJ

#define OV2640_BASIC_DEFAULT_FRAME_LENGTH_ADJ   0x0000

0x0000

Definition at line 74 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_H_WINDOW_END

#define OV2640_BASIC_DEFAULT_H_WINDOW_END   942

942

Definition at line 87 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_H_WINDOW_START

#define OV2640_BASIC_DEFAULT_H_WINDOW_START   142

142

Definition at line 86 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HISTO_HIGH

#define OV2640_BASIC_DEFAULT_HISTO_HIGH   0x80

histo high

Definition at line 79 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HISTO_LOW

#define OV2640_BASIC_DEFAULT_HISTO_LOW   0x70

histo low

Definition at line 78 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HORIZONTAL_MIRROR

#define OV2640_BASIC_DEFAULT_HORIZONTAL_MIRROR   OV2640_BOOL_TRUE

enable horizontal mirror

Definition at line 61 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HREF_CHSYNC_SWAP

#define OV2640_BASIC_DEFAULT_HREF_CHSYNC_SWAP   OV2640_BOOL_FALSE

disable swap

Definition at line 96 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HREF_POLARITY

#define OV2640_BASIC_DEFAULT_HREF_POLARITY   OV2640_POLARITY_POSITIVE

positive

Definition at line 99 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HSYNC_END_POINT

#define OV2640_BASIC_DEFAULT_HSYNC_END_POINT   0x30

0x30

Definition at line 104 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HSYNC_POLARITY

#define OV2640_BASIC_DEFAULT_HSYNC_POLARITY   OV2640_POLARITY_POSITIVE

positive

Definition at line 101 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_HSYNC_START_POINT

#define OV2640_BASIC_DEFAULT_HSYNC_START_POINT   0x08

0x08

Definition at line 103 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_LINE_INTERVAL_ADJUST

#define OV2640_BASIC_DEFAULT_LINE_INTERVAL_ADJUST   0x000

0x000

Definition at line 102 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_LUMINANCE_AVG

#define OV2640_BASIC_DEFAULT_LUMINANCE_AVG   0x00

0x00

Definition at line 105 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_LUMINANCE_HIGH

#define OV2640_BASIC_DEFAULT_LUMINANCE_HIGH   0x40

0x40

Definition at line 70 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_LUMINANCE_LOW

#define OV2640_BASIC_DEFAULT_LUMINANCE_LOW   0x38

0x38

Definition at line 71 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_MODE

#define OV2640_BASIC_DEFAULT_MODE   OV2640_MODE_NORMAL

normal mode

Definition at line 58 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_OUTPUT_DRIVE

#define OV2640_BASIC_DEFAULT_OUTPUT_DRIVE   OV2640_OUTPUT_DRIVE_2_CAPABILITY

2 capability

Definition at line 60 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_PCLK

#define OV2640_BASIC_DEFAULT_PCLK   OV2640_PCLK_NO_EFFECT

pclk no effect

Definition at line 85 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_PCLK_EDGE

#define OV2640_BASIC_DEFAULT_PCLK_EDGE   OV2640_EDGE_FALLING

falling edge

Definition at line 98 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_PCLK_OUTPUT_BY_HREF

#define OV2640_BASIC_DEFAULT_PCLK_OUTPUT_BY_HREF   OV2640_BOOL_FALSE

disable

Definition at line 97 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_PIN_STATUS

#define OV2640_BASIC_DEFAULT_PIN_STATUS   OV2640_PIN_STATUS_TRI_STATE

tri state

Definition at line 68 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_POWER_RESET_PIN_REMAP

#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.

◆ OV2640_BASIC_DEFAULT_RESOLUTION

#define OV2640_BASIC_DEFAULT_RESOLUTION   OV2640_RESOLUTION_UXGA

uxga

Definition at line 82 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_SNAPSHOT

#define OV2640_BASIC_DEFAULT_SNAPSHOT   OV2640_BOOL_FALSE

disable snapshot

Definition at line 77 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_V_WINDOW_END

#define OV2640_BASIC_DEFAULT_V_WINDOW_END   607

607

Definition at line 89 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_V_WINDOW_START

#define OV2640_BASIC_DEFAULT_V_WINDOW_START   7

7

Definition at line 88 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_VERTICAL_FLIP

#define OV2640_BASIC_DEFAULT_VERTICAL_FLIP   OV2640_BOOL_TRUE

enable vertical flip

Definition at line 62 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_VSYNC_POLARITY

#define OV2640_BASIC_DEFAULT_VSYNC_POLARITY   OV2640_POLARITY_POSITIVE

positive

Definition at line 100 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_VSYNC_PULSE_WIDTH

#define OV2640_BASIC_DEFAULT_VSYNC_PULSE_WIDTH   0x0000

0x0000

Definition at line 90 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_ZOOM

#define OV2640_BASIC_DEFAULT_ZOOM   OV2640_BOOL_FALSE

disable zoom

Definition at line 83 of file driver_ov2640_basic.h.

◆ OV2640_BASIC_DEFAULT_ZOOM_WINDOW_H_START

#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.

◆ OV2640_BASIC_DEFAULT_ZOOM_WINDOW_V_START

#define OV2640_BASIC_DEFAULT_ZOOM_WINDOW_V_START   0x0000

0x0000

Definition at line 69 of file driver_ov2640_basic.h.

Enumeration Type Documentation

◆ ov2640_image_resolution_t

ov2640 image resolution enumeration definition

Enumerator
OV2640_IMAGE_RESOLUTION_QQVGA 

160 x 120

OV2640_IMAGE_RESOLUTION_QCIF 

176 x 144

OV2640_IMAGE_RESOLUTION_QVGA 

320 x 240

OV2640_IMAGE_RESOLUTION_WQVGA 

400 x 240

OV2640_IMAGE_RESOLUTION_CIF 

352 x 288

OV2640_IMAGE_RESOLUTION_VGA 

640 x 480

OV2640_IMAGE_RESOLUTION_SVGA 

800 x 600

OV2640_IMAGE_RESOLUTION_XGA 

1024 x 768

OV2640_IMAGE_RESOLUTION_WXGA 

1280 x 800

OV2640_IMAGE_RESOLUTION_XVGA 

1280 x 960

OV2640_IMAGE_RESOLUTION_WXGA_PLUS 

1440 x 900

OV2640_IMAGE_RESOLUTION_SXGA 

1280 x 1024

OV2640_IMAGE_RESOLUTION_UXGA 

1600 x 1200

Definition at line 162 of file driver_ov2640_basic.h.

Function Documentation

◆ ov2640_basic_deinit()

uint8_t ov2640_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 1126 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_init()

uint8_t ov2640_basic_init ( void )

basic example init

Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 48 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_brightness()

uint8_t ov2640_basic_set_brightness ( ov2640_brightness_t brightness)

basic example set brightness

Parameters
[in]brightnessset brightness
Returns
status code
  • 0 success
  • 1 set brightness failed
Note
none

Definition at line 1219 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_color_saturation()

uint8_t ov2640_basic_set_color_saturation ( ov2640_color_saturation_t color)

basic example set color saturation

Parameters
[in]colorcolor saturation
Returns
status code
  • 0 success
  • 1 set color saturation failed
Note
none

Definition at line 1200 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_contrast()

uint8_t ov2640_basic_set_contrast ( ov2640_contrast_t contrast)

basic example set contrast

Parameters
[in]contrastset contrast
Returns
status code
  • 0 success
  • 1 set contrast failed
Note
none

Definition at line 1238 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_image_resolution()

uint8_t ov2640_basic_set_image_resolution ( ov2640_image_resolution_t resolution)

basic example set image resolution

Parameters
[in]resolutionset image resolution
Returns
status code
  • 0 success
  • 1 set image resolution failed
Note
none

Definition at line 1276 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_jpeg_mode()

uint8_t ov2640_basic_set_jpeg_mode ( void )

basic example set jpeg mode

Returns
status code
  • 0 success
  • 1 set jpeg mode failed
Note
none

Definition at line 1144 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_light_mode()

uint8_t ov2640_basic_set_light_mode ( ov2640_light_mode_t mode)

basic example set light mode

Parameters
[in]modelight mode
Returns
status code
  • 0 success
  • 1 set light mode failed
Note
none

Definition at line 1181 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_rgb565_mode()

uint8_t ov2640_basic_set_rgb565_mode ( void )

basic example set rgb565 mode

Returns
status code
  • 0 success
  • 1 set rgb565 mode failed
Note
none

Definition at line 1162 of file driver_ov2640_basic.c.

Here is the call graph for this function:

◆ ov2640_basic_set_special_effect()

uint8_t ov2640_basic_set_special_effect ( ov2640_special_effect_t effect)

basic example set special effect

Parameters
[in]effectset special effect
Returns
status code
  • 0 success
  • 1 set special_effect failed
Note
none

Definition at line 1257 of file driver_ov2640_basic.c.

Here is the call graph for this function: