LibDriver OV2640
Loading...
Searching...
No Matches
driver_ov2640_basic.h File Reference

driver ov2640 basic header file More...

Include dependency graph for driver_ov2640_basic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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

driver ov2640 basic header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2023-11-30

history

Date Version Author Description
2023/11/30 1.0 Shifeng Li first upload

Definition in file driver_ov2640_basic.h.