stm32-camera  1.0
Functions | Variables
ov7670.h File Reference

Main header file for the OV7670 camera module. More...

#include "stm32f4xx_hal.h"
#include <stdbool.h>

Go to the source code of this file.

Functions

bool OV7670_init (I2C_HandleTypeDef *hi2c)
 

Variables

static uint8_t OV7670_WRITE_ADDRESS = 0x42
 SCCB camera write slave address. More...
 
static uint8_t OV7670_READ_ADDRESS = 0x43
 SCCB camera read slave address. More...
 
static uint32_t OV7670_TIMEOUT = 15
 Timeout for whole driver coms. More...
 
static uint8_t OV7670_COM1_ADDRESS = 0x04
 COM1 RW register. More...
 
static uint8_t OV7670_COM2_ADDRESS = 0x09
 COM2 RW register. More...
 
static uint8_t OV7670_COM3_ADDRESS = 0x0C
 COM3 RW register. More...
 
static uint8_t OV7670_COM4_ADDRESS = 0x0D
 COM4 RW register. More...
 
static uint8_t OV7670_COM5_ADDRESS = 0x0E
 COM5 RW register. More...
 
static uint8_t OV7670_COM6_ADDRESS = 0x0F
 COM6 RW register. More...
 
static uint8_t OV7670_COM7_ADDRESS = 0x12
 COM7 RW register. More...
 
static uint8_t OV7670_COM8_ADDRESS = 0x13
 COM8 RW register. More...
 
static uint8_t OV7670_COM9_ADDRESS = 0x14
 COM9 RW register. More...
 
static uint8_t OV7670_COM10_ADDRESS = 0x15
 COM10 RW register. More...
 
static uint8_t OV7670_COM11_ADDRESS = 0x3B
 COM11 RW register. More...
 
static uint8_t OV7670_COM12_ADDRESS = 0x3C
 COM12 RW register. More...
 
static uint8_t OV7670_COM13_ADDRESS = 0x3D
 COM13 RW register. More...
 
static uint8_t OV7670_COM14_ADDRESS = 0x3E
 COM14 RW register. More...
 
static uint8_t OV7670_COM15_ADDRESS = 0x40
 COM15 RW register. More...
 
static uint8_t OV7670_COM16_ADDRESS = 0x41
 COM16 RW register. More...
 
static uint8_t OV7670_COM17_ADDRESS = 0x42
 COM17 RW register. More...
 
static uint8_t OV7670_GAIN_ADDRESS = 0x00
 Gain control setting. More...
 
static uint8_t OV7670_BLUE_GAIN_ADDRESS = 0x01
 Blue channel gain settings. More...
 
static uint8_t OV7670_RED_GAIN_ADDRESS = 0x02
 Red channel gain settings. More...
 
static uint8_t OV7670_VREF_ADDRESS = 0x03
 Vertical Frame Control (VREF) register. More...
 
static uint8_t OV7670_BAVE_ADDRESS = 0x05
 U/B Average Level register. More...
 
static uint8_t OV7670_GBAVE_ADDRESS = 0x06
 Y/Gb Average Level register. More...
 
static uint8_t OV7670_AECHH_ADDRESS = 0x07
 Exposure Value - AEC MSB 5 bits. More...
 
static uint8_t OV7670_RAVE_ADDRESS = 0x08
 V/R Average Level. More...
 
static uint8_t OV7670_PID_ADDRESS = 0x0A
 Product ID Number MSB (Read only) More...
 
static uint8_t OV7670_VER_ADDRESS = 0x0B
 Product ID Number LSB (Read only) More...
 
static uint8_t OV7670_AECH_ADDRESS = 0x10
 Exposure settings register. More...
 
static uint8_t OV7670_CLKRC_ADDRESS = 0x11
 CLKRC RW register. More...
 
static uint8_t OV7670_RSVD_16_ADDRESS = 0x16
 Reserved register (RSVD) More...
 
static uint8_t OV7670_HSTART_ADDRESS = 0x17
 Horizontal frame start high. More...
 
static uint8_t OV7670_HSTOP_ADDRESS = 0x18
 Horizontal frame end high. More...
 
static uint8_t OV7670_VSTART_ADDRESS = 0x19
 Vertical frame start register. More...
 
static uint8_t OV7670_VSTOP_ADDRESS = 0x1A
 Vertical frame stop register. More...
 
static uint8_t OV7670_PSHIFT_ADDRESS = 0x1B
 Pixel delay shift register. More...
 
static uint8_t OV7670_MIDH_ADDRESS = 0x1C
 Manufacturer ID Byte (High) (Read only = 0x7F) More...
 
static uint8_t OV7670_MIDL_ADDRESS = 0x1D
 Manufacturer ID Byte (Low) (Read only = 0xA2) More...
 
static uint8_t OV7670_MVFP_ADDRESS = 0x1E
 Mirror/VFlip image register. More...
 
static uint8_t OV7670_LAEC_ADDRESS = 0x1F
 LAEC register (Reserved) More...
 
static uint8_t OV7670_ADCCTR0_ADDRESS = 0x20
 ADC control register 0. More...
 
static uint8_t OV7670_ADCCTR1_ADDRESS = 0x21
 ADC control register 1 (Reserved) More...
 
static uint8_t OV7670_ADCCTR2_ADDRESS = 0x22
 ADC control register 2 (Reserved) More...
 
static uint8_t OV7670_ADCCTR3_ADDRESS = 0x23
 ADC control register 3 (Reserved) More...
 
static uint8_t OV7670_AEW_ADDRESS = 0x24
 AGC/AEC - Stable Operating Region (Upper Limit) More...
 
static uint8_t OV7670_AEB_ADDRESS = 0x25
 AGC/AEC - Stable Operating Region (Lower Limit) More...
 
static uint8_t OV7670_VPT_ADDRESS = 0x26
 AGC/AEC Fast Mode Operating Region. More...
 
static uint8_t OV7670_BBIAS_ADDRESS = 0x27
 B channel signal bias. More...
 
static uint8_t OV7670_GBBIAS_ADDRESS = 0x28
 Gb channel signal bias. More...
 
static uint8_t OV7670_RSVD_29_ADDRESS = 0x29
 RSVD (Reserved) More...
 
static uint8_t OV7670_EXHCH_ADDRESS = 0x2A
 Dummy Pixel Insert MSB. More...
 
static uint8_t OV7670_EXHCL_ADDRESS = 0x2B
 Dummy Pixel Insert LSB. More...
 
static uint8_t OV7670_RBIAS_ADDRESS = 0x2C
 R Channel Signal Output Bias. More...
 
static uint8_t OV7670_ADVFL_ADDRESS = 0x2D
 LSB of insert dummy rows in vertical direction (1 bit equals 1 row) More...
 
static uint8_t OV7670_ADVFH_ADDRESS = 0x2E
 MSB of insert dummy rows in vertical direction. More...
 
static uint8_t OV7670_YAVE_ADDRESS = 0x2F
 Y/G Channel Average Value. More...
 
static uint8_t OV7670_HSYST_ADDRESS = 0x30
 HSYNC Rising Edge Delay (low 8 bits) More...
 
static uint8_t OV7670_HSYSN_ADDRESS = 0x31
 HSYNC Falling Edge Delay (low 8 bits) More...
 
static uint8_t OV7670_HREF_ADDRESS = 0x32
 HREF Control register. More...
 
static uint8_t OV7670_CHLF_ADDRESS = 0x33
 Array Current Control (Reserved) More...
 
static uint8_t OV7670_ARBLM_ADDRESS = 0x34
 Array Reference Control (Reserved) More...
 
static uint8_t OV7670_RSVD_35_ADDRESS = 0x35
 Reserved 2. More...
 
static uint8_t OV7670_RSVD_36_ADDRESS = 0x36
 
static uint8_t OV7670_ADC_ADDRESS = 0x37
 ADC control (Reserved) More...
 
static uint8_t OV7670_ACOM_ADDRESS = 0x38
 ADC and Analog Common Mode Control (Reserved) More...
 
static uint8_t OV7670_OFON_ADDRESS = 0x39
 ADC Offset Control. More...
 
static uint8_t OV7670_TSLB_ADDRESS = 0x3A
 Line Buffer Test options register. More...
 
static uint8_t OV7670_EDGE_ADDRESS = 0x3F
 Edge Enhancement Adjustment. More...
 
static uint8_t OV7670_AWBC1_ADDRESS = 0x43
 AWB Control 1. More...
 
static uint8_t OV7670_AWBC2_ADDRESS = 0x44
 AWB Control 2. More...
 
static uint8_t OV7670_AWBC3_ADDRESS = 0x45
 AWB Control 3. More...
 
static uint8_t OV7670_AWBC4_ADDRESS = 0x46
 AWB Control 4. More...
 
static uint8_t OV7670_AWBC5_ADDRESS = 0x47
 AWB Control 5. More...
 
static uint8_t OV7670_AWBC6_ADDRESS = 0x48
 AWB Control 6. More...
 
static uint8_t OV7670_RSVD_49_ADDRESS = 0x49
 Reserved register 0x49-0x4A. More...
 
static uint8_t OV7670_RSVD_4A_ADDRESS = 0x4A
 
static uint8_t OV7670_REG4B_ADDRESS = 0x4B
 Register 4B. More...
 
static uint8_t OV7670_DNSTH_ADDRESS = 0x4C
 De-noise strength. More...
 
static uint8_t OV7670_RSVD_4D_ADDRESS = 0x4D
 Reserved register 0x4D-0x4E. More...
 
static uint8_t OV7670_RSVD_4E_ADDRESS = 0x4E
 
static uint8_t OV7670_MTX1_ADDRESS = 0x4F
 Matrix Coefficient 1. More...
 
static uint8_t OV7670_MTX2_ADDRESS = 0x50
 Matrix Coefficient 2. More...
 
static uint8_t OV7670_MTX3_ADDRESS = 0x51
 Matrix Coefficient 3. More...
 
static uint8_t OV7670_MTX4_ADDRESS = 0x52
 Matrix Coefficient 4. More...
 
static uint8_t OV7670_MTX5_ADDRESS = 0x53
 Matrix Coefficient 5. More...
 
static uint8_t OV7670_MTX6_ADDRESS = 0x54
 Matrix Coefficient 6. More...
 
static uint8_t OV7670_BRIGHT_ADDRESS = 0x55
 Brightness Control. More...
 
static uint8_t OV7670_CONTRAS_ADDRESS = 0x56
 Contrast Control. More...
 
static uint8_t OV7670_CONTRAS_CENTER_ADDRESS = 0x57
 Contrast Center. More...
 
static uint8_t OV7670_MTXS_ADDRESS = 0x58
 Matrix Coefficient Sign register. More...
 
static uint8_t OV7670_RSVD_59_ADDRESS = 0x59
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_5A_ADDRESS = 0x5A
 
static uint8_t OV7670_RSVD_5B_ADDRESS = 0x5B
 
static uint8_t OV7670_RSVD_5C_ADDRESS = 0x5C
 
static uint8_t OV7670_RSVD_5D_ADDRESS = 0x5D
 
static uint8_t OV7670_RSVD_5E_ADDRESS = 0x5E
 
static uint8_t OV7670_RSVD_5F_ADDRESS = 0x5F
 
static uint8_t OV7670_RSVD_60_ADDRESS = 0x60
 
static uint8_t OV7670_RSVD_61_ADDRESS = 0x61
 
static uint8_t OV7670_LCC1_ADDRESS = 0x62
 Lens Correction Option 1. More...
 
static uint8_t OV7670_LCC2_ADDRESS = 0x63
 Lens Correction Option 2. More...
 
static uint8_t OV7670_LCC3_ADDRESS = 0x64
 Lens Correction Option 3. More...
 
static uint8_t OV7670_LCC4_ADDRESS = 0x65
 Lens Correction Option 4. More...
 
static uint8_t OV7670_LCC5_ADDRESS = 0x66
 Lens Correction Control. More...
 
static uint8_t OV7670_MANU_ADDRESS = 0x67
 Manual U Value (effective only when register TSLB[4] is high) More...
 
static uint8_t OV7670_MANV_ADDRESS = 0x68
 Manual V Value (effective only when register TSLB[4] is high) More...
 
static uint8_t OV7670_GFIX_ADDRESS = 0x69
 Fixed Gain Control. More...
 
static uint8_t OV7670_GGAIN_ADDRESS = 0x6A
 G Channel AWB Gain. More...
 
static uint8_t OV7670_DBLV_ADDRESS = 0x6B
 DBLV register. More...
 
static uint8_t OV7670_AWBCTR3_ADDRESS = 0x6C
 AWB Control 3 return 0x6C. More...
 
static uint8_t OV7670_AWBCTR2_ADDRESS = 0x6D
 AWB Control 2 return 0x6D. More...
 
static uint8_t OV7670_AWBCTR1_ADDRESS = 0x6E
 AWB Control 1 return 0x6E. More...
 
static uint8_t OV7670_AWBCTR0_ADDRESS = 0x6F
 AWB Control 0 return 0x6F. More...
 
static uint8_t OV7670_SCALING_XSC_ADDRESS = 0x70
 SCALING_XSC register. More...
 
static uint8_t OV7670_SCALING_YSC_ADDRESS = 0x71
 SCALING_YSC register. More...
 
static uint8_t OV7670_SCALING_DCWCTR_ADDRESS = 0x72
 DCW Control register. More...
 
static uint8_t OV7670_SCALING_PCLK_DIV_ADDRESS = 0x73
 SCALING_PCLK_DIV register. More...
 
static uint8_t OV7670_REG74_ADDRESS = 0x74
 Register 74. More...
 
static uint8_t OV7670_REG75_ADDRESS = 0x75
 Register 75. More...
 
static uint8_t OV7670_REG76_ADDRESS = 0x76
 Register 76. More...
 
static uint8_t OV7670_REG77_ADDRESS = 0x77
 Register 77. More...
 
static uint8_t OV7670_RSVD_78_ADDRESS = 0x78
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_79_ADDRESS = 0x79
 
static uint8_t OV7670_SLOP_ADDRESS = 0x7A
 SLOP register. More...
 
static uint8_t OV7670_GAM1_ADDRESS = 0x7B
 Gamma Curve register 1. More...
 
static uint8_t OV7670_GAM2_ADDRESS = 0x7C
 Gamma Curve register 2. More...
 
static uint8_t OV7670_GAM3_ADDRESS = 0x7D
 Gamma Curve register 3. More...
 
static uint8_t OV7670_GAM4_ADDRESS = 0x7E
 Gamma Curve register 4. More...
 
static uint8_t OV7670_GAM5_ADDRESS = 0x7F
 Gamma Curve register 5. More...
 
static uint8_t OV7670_GAM6_ADDRESS = 0x80
 Gamma Curve register 6. More...
 
static uint8_t OV7670_GAM7_ADDRESS = 0x81
 Gamma Curve register 7. More...
 
static uint8_t OV7670_GAM8_ADDRESS = 0x82
 Gamma Curve register 8. More...
 
static uint8_t OV7670_GAM9_ADDRESS = 0x83
 Gamma Curve register 9. More...
 
static uint8_t OV7670_GAM10_ADDRESS = 0x84
 Gamma Curve register 10. More...
 
static uint8_t OV7670_GAM11_ADDRESS = 0x85
 Gamma Curve register 11. More...
 
static uint8_t OV7670_GAM12_ADDRESS = 0x86
 Gamma Curve register 12. More...
 
static uint8_t OV7670_GAM13_ADDRESS = 0x87
 Gamma Curve register 13. More...
 
static uint8_t OV7670_GAM14_ADDRESS = 0x88
 Gamma Curve register 14. More...
 
static uint8_t OV7670_GAM15_ADDRESS = 0x89
 Gamma Curve register 15. More...
 
static uint8_t OV7670_RSVD_8A_ADDRESS = 0x8A
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_8B_ADDRESS = 0x8B
 
static uint8_t OV7670_RGB444_ADDRESS = 0x8C
 RGB444 register. More...
 
static uint8_t OV7670_RSVD_8D_ADDRESS = 0x8D
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_8E_ADDRESS = 0x8E
 
static uint8_t OV7670_RSVD_8F_ADDRESS = 0x8F
 
static uint8_t OV7670_RSVD_90_ADDRESS = 0x90
 
static uint8_t OV7670_RSVD_91_ADDRESS = 0x91
 
static uint8_t OV7670_DM_LNL_ADDRESS = 0x92
 Dummy Row low 8 bits register. More...
 
static uint8_t OV7670_DM_LNH_ADDRESS = 0x93
 z More...
 
static uint8_t OV7670_LCC6_ADDRESS = 0x94
 Lens Correction Option 6 (effective only when LCC5[2] is high) More...
 
static uint8_t OV7670_LCC7_ADDRESS = 0x95
 Lens Correction Option 7 (effective only when LCC5[2] is high) More...
 
static uint8_t OV7670_RSVD_96_ADDRESS = 0x96
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_97_ADDRESS = 0x97
 
static uint8_t OV7670_RSVD_98_ADDRESS = 0x98
 
static uint8_t OV7670_RSVD_99_ADDRESS = 0x99
 
static uint8_t OV7670_RSVD_9A_ADDRESS = 0x9A
 
static uint8_t OV7670_RSVD_9B_ADDRESS = 0x9B
 
static uint8_t OV7670_RSVD_9C_ADDRESS = 0x9C
 
static uint8_t OV7670_BD50ST_ADDRESS = 0x9D
 50 Hz Banding Filter Value More...
 
static uint8_t OV7670_BD60ST_ADDRESS = 0x9E
 60 Hz Banding Filter Value More...
 
static uint8_t OV7670_HAECC1_ADDRESS = 0x9F
 HAECC1 Histogram-based AEC/AGC Control 1. More...
 
static uint8_t OV7670_HAECC2_ADDRESS = 0xA0
 HAECC1 Histogram-based AEC/AGC Control 2. More...
 
static uint8_t OV7670_RSVD_A1_ADDRESS = 0xA1
 RSVD (Reserved) More...
 
static uint8_t OV7670_SCALING_PCLK_DELAY_ADDRESS = 0xA2
 Pixel Clock Delay. More...
 
static uint8_t OV7670_RSVD_A3_ADDRESS = 0xA3
 RSVD (Reserved) More...
 
static uint8_t OV7670_NT_CTRL_ADDRESS = 0xA4
 NT_CTRL register. More...
 
static uint8_t OV7670_BD50MAX_ADDRESS = 0xA5
 BD50MAX register. More...
 
static uint8_t OV7670_HAECC3_ADDRESS = 0xA6
 HAECC3 Histogram-based AEC/AGC Control 3. More...
 
static uint8_t OV7670_HAECC4_ADDRESS = 0xA7
 HAECC4 Histogram-based AEC/AGC Control 4. More...
 
static uint8_t OV7670_HAECC5_ADDRESS = 0xA8
 HAECC5 Histogram-based AEC/AGC Control 5. More...
 
static uint8_t OV7670_HAECC6_ADDRESS = 0xA9
 HAECC6 Histogram-based AEC/AGC Control 6. More...
 
static uint8_t OV7670_HAECC7_ADDRESS = 0xAA
 HAECC7 Histogram-based AEC/AGC Control 7. More...
 
static uint8_t OV7670_BD60MAX_ADDRESS = 0xAB
 BD60MAX register. More...
 
static uint8_t OV7670_STR_OPT_ADDRESS = 0xAC
 STR-OPT register. More...
 
static uint8_t OV7670_STR_R_ADDRESS = 0xAD
 R Gain for LED Output Frame. More...
 
static uint8_t OV7670_STR_G_ADDRESS = 0xAE
 G Gain for LED Output Frame. More...
 
static uint8_t OV7670_STR_B_ADDRESS = 0xAF
 B Gain for LED Output Frame. More...
 
static uint8_t OV7670_RSVD_B0_ADDRESS = 0xB0
 RSVD (Reserved) More...
 
static uint8_t OV7670_ABLC1_ADDRESS = 0xB1
 ABLC1 register. More...
 
static uint8_t OV7670_RSVD_B2_ADDRESS = 0xB2
 RSVD (Reserved) More...
 
static uint8_t OV7670_THL_ST_ADDRESS = 0xB3
 ABLC Target. More...
 
static uint8_t OV7670_RSVD_B4_ADDRESS = 0xB4
 RSVD (Reserved) More...
 
static uint8_t OV7670_THL_DLT_ADDRESS = 0xB5
 ABLC Stable Range. More...
 
static uint8_t OV7670_RSVD_B6_ADDRESS = 0xB6
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_B7_ADDRESS = 0xB7
 
static uint8_t OV7670_RSVD_B8_ADDRESS = 0xB8
 
static uint8_t OV7670_RSVD_B9_ADDRESS = 0xB9
 
static uint8_t OV7670_RSVD_BA_ADDRESS = 0xBA
 
static uint8_t OV7670_RSVD_BB_ADDRESS = 0xBB
 
static uint8_t OV7670_RSVD_BC_ADDRESS = 0xBC
 
static uint8_t OV7670_RSVD_BD_ADDRESS = 0xBD
 
static uint8_t OV7670_AD_CHB_ADDRESS = 0xBE
 Blue Channel Black Level Compensation. More...
 
static uint8_t OV7670_AD_CHR_ADDRESS = 0xBF
 Red Channel Black Level Compensation. More...
 
static uint8_t OV7670_AD_CHGB_ADDRESS = 0xC0
 Gb Channel Black Level Compensation. More...
 
static uint8_t OV7670_AD_CHGR_ADDRESS = 0xC1
 Gr Channel Black Level Compensation. More...
 
static uint8_t OV7670_RSVD_C2_ADDRESS = 0xC2
 RSVD (Reserved) More...
 
static uint8_t OV7670_RSVD_C3_ADDRESS = 0xC3
 
static uint8_t OV7670_RSVD_C4_ADDRESS = 0xC4
 
static uint8_t OV7670_RSVD_C5_ADDRESS = 0xC5
 
static uint8_t OV7670_RSVD_C6_ADDRESS = 0xC6
 
static uint8_t OV7670_RSVD_C7_ADDRESS = 0xC7
 
static uint8_t OV7670_RSVD_C8_ADDRESS = 0xC8
 
static uint8_t OV7670_SATCTR_ADDRESS = 0xC9
 Saturation Control register. More...
 
static uint8_t OV7670_COM7_SOFT_RESET = 0x80
 Values for registers to be set at camera init. More...
 
static uint8_t OV7670_CLKRC_RESET_VALUE = 0x01
 CLKRC 30fps clock scale. More...
 
static uint8_t OV7670_TSLB_RESET_VALUE = 0x04
 TSLB magic reserved bit. More...
 
static uint8_t OV7670_COM7_RESET_VALUE = 0x0
 COM7 YUV reset value. More...
 
static uint8_t OV7670_HSTART_RESET_VALUE = 0x13
 HSTART reset, value from OV doesn't make sense at all. More...
 
static uint8_t OV7670_HSTOP_RESET_VALUE = 0x01
 HSTOP reset, value from OV doesn't make sense at all. More...
 
static uint8_t OV7670_HREF_RESET_VALUE = 0xB6
 HREF reset, MSB bits from HSTART AND HSTOP. More...
 
static uint8_t OV7670_VSTART_RESET_VALUE = 0x02
 VSTART reset. More...
 
static uint8_t OV7670_VSTOP_RESET_VALUE = 0x7A
 VSTOP reset, this makes more sense compared to HSTOP. More...
 
static uint8_t OV7670_VREF_RESET_VALUE = 0x0A
 VREF reset, start low 2 bits from VSTOP/START. More...
 
static uint8_t OV7670_COM14_RESET_VALUE = 0x0
 COM3 reset value. More...
 
static uint8_t OV7670_SCALING_XSC_RESET_VALUE = 0x3A
 SCALING_XSC reset value. More...
 
static uint8_t OV7670_SCALING_PCLK_DIV_RESET_VALUE = 0xF0
 SCALING_PCLK_DIV reset value. More...
 
static uint8_t OV7670_SLOP_RESET_VALUE = 0x20
 SLOP , Gamma curve highest segment slop. More...
 
static uint8_t OV7670_GAM1_RESET_VALUE = 0x10
 GAM1 Gamma curve 1. More...
 
static uint8_t OV7670_GAM2_RESET_VALUE = 0x1E
 GAM2 Gamma curve 2. More...
 
static uint8_t OV7670_GAM3_RESET_VALUE = 0x35
 GAM3 Gamma curve 3. More...
 
static uint8_t OV7670_GAM4_RESET_VALUE = 0x5A
 GAM4 Gamma curve 4. More...
 
static uint8_t OV7670_GAM5_RESET_VALUE = 0x69
 GAM5 Gamma curve 5. More...
 
static uint8_t OV7670_GAM6_RESET_VALUE = 0x76
 GAM6 Gamma curve 6. More...
 
static uint8_t OV7670_GAM7_RESET_VALUE = 0x80
 GAM7 Gamma curve 7. More...
 
static uint8_t OV7670_GAM8_RESET_VALUE = 0x88
 GAM8 Gamma curve 8. More...
 
static uint8_t OV7670_GAM9_RESET_VALUE = 0x8F
 GAM9 Gamma curve 9. More...
 
static uint8_t OV7670_GAM10_RESET_VALUE = 0x96
 GAM10 Gamma curve 10. More...
 
static uint8_t OV7670_GAM11_RESET_VALUE = 0xA3
 GAM11 Gamma curve 11. More...
 
static uint8_t OV7670_GAM12_RESET_VALUE = 0xAF
 GAM12 Gamma curve 12. More...
 
static uint8_t OV7670_GAM13_RESET_VALUE = 0xC4
 GAM13 Gamma curve 13. More...
 
static uint8_t OV7670_GAM14_RESET_VALUE = 0xD7
 GAM14 Gamma curve 14. More...
 
static uint8_t OV7670_GAM15_RESET_VALUE = 0xE8
 GAM15 Gamma curve 15. More...
 
static uint8_t OV7670_COM8_RESET_VALUE_ONE = 0xE0
 COM8 reset, disable AGC and AEC first. More...
 
static uint8_t OV7670_COM4_RESET_VALUE = 0x40
 COM4 reset, magic reserved 6th bit. More...
 
static uint8_t OV7670_COM9_RESET_VALUE = 0x18
 COM9 reset, magic reserved, 4x gain ceiling. More...
 
static uint8_t OV7670_BD50MAX_RESET_VALUE = 0x05
 BD50MAX reset 0000 0101. More...
 
static uint8_t OV7670_BD60MAX_RESET_VALUE = 0x07
 BD60MAX reset 0000 0111. More...
 
static uint8_t OV7670_AEW_RESET_VALUE = 0x95
 AEW reset. More...
 
static uint8_t OV7670_AEB_RESET_VALUE = 0x33
 AEB reset. More...
 
static uint8_t OV7670_VPT_RESET_VALUE = 0xE3
 VPT reset. More...
 
static uint8_t OV7670_HAECC1_RESET_VALUE = 0x78
 HAECC1 reset. More...
 
static uint8_t OV7670_HAECC2_RESET_VALUE = 0x68
 HAECC2 reset. More...
 
static uint8_t OV7670_RSVD_A1_RESET_VALUE = 0x03
 Reserved magic again. More...
 
static uint8_t OV7670_HAECC3_RESET_VALUE = 0xD8
 HAECC3 reset. More...
 
static uint8_t OV7670_HAECC4_RESET_VALUE = 0xD8
 HAECC4 reset. More...
 
static uint8_t OV7670_HAECC6_RESET_VALUE = 0x90
 HAECC6 reset. More...
 
static uint8_t OV7670_HAECC7_RESET_VALUE = 0x94
 HAECC7 reset. More...
 
static uint8_t OV7670_COM8_RESET_VALUE_TWO = 0xE5
 COM8 reset 2. More...
 
static uint8_t OV7670_COM5_RESET_VALUE = 0x61
 COM5 reset. More...
 
static uint8_t OV7670_COM6_RESET_VALUE = 0x4B
 COM6 reset. More...
 
static uint8_t OV7670_RSVD_16_RESET_VALUE = 0x02
 RSVD reset. More...
 
static uint8_t OV7670_MVFP_RESET_VALUE = 0x07
 MVFP reset. More...
 
static uint8_t OV7670_ADCCTR2_RESET_VALUE = 0x91
 ADCCTR2 reset. More...
 
static uint8_t OV7670_RSVD_29_RESET_VALUE = 0x07
 RSVD reset. More...
 
static uint8_t OV7670_CHLF_RESET_VALUE = 0x0B
 CHLF reset value, reserved. More...
 
static uint8_t OV7670_RSVD_35_RESET_VALUE = 0x0B
 RSVD reset. More...
 
static uint8_t OV7670_ADC_RESET_VALUE = 0x1D
 ADC reset. More...
 
static uint8_t OV7670_ACOM_RESET_VALUE = 0x71
 ACOM reset. More...
 
static uint8_t OV7670_OFON_RESET_VALUE = 0x2A
 OFON reset. More...
 
static uint8_t OV7670_COM12_RESET_VALUE = 0x78
 COM12 reset. More...
 
static uint8_t OV7670_RSVD_4D_RESET_VALUE = 0x40
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_4E_RESET_VALUE = 0x20
 RSVD reset. More...
 
static uint8_t OV7670_GFIX_RESET_VALUE = 0x0
 GFIX reset. More...
 
static uint8_t OV7670_DBLV_RESET_VALUE = 0x4A
 DBLV reset. More...
 
static uint8_t OV7670_REG74_RESET_VALUE = 0x10
 REG74 reset. More...
 
static uint8_t OV7670_RSVD_8D_RESET_VALUE = 0x4F
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_8E_RESET_VALUE = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_8F_RESET_VALUE = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_90_RESET_VALUE = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_91_RESET_VALUE = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_96_RESET_VALUE_ONE = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_9A_RESET_VALUE_ONE = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_B0_RESET_VALUE = 0x84
 RSVD reset. More...
 
static uint8_t OV7670_ABLC1_RESET_VALUE = 0x0C
 ABLC1 reset. More...
 
static uint8_t OV7670_RSVD_B2_RESET_VALUE = 0x0E
 RSVD reset. More...
 
static uint8_t OV7670_THL_ST_RESET_VALUE = 0x82
 THL_ST reset. More...
 
static uint8_t OV7670_RSVD_B8_RESET_VALUE = 0x0A
 RSVD reset. More...
 
static uint8_t OV7670_AWBC1_RESET_VALUE = 0x0A
 AWBC1 reset. More...
 
static uint8_t OV7670_AWBC3_RESET_VALUE = 0x34
 AWBC3 reset. More...
 
static uint8_t OV7670_AWBC4_RESET_VALUE = 0x58
 AWBC4 reset. More...
 
static uint8_t OV7670_AWBC5_RESET_VALUE = 0x28
 AWBC5 reset. More...
 
static uint8_t OV7670_AWBC6_RESET_VALUE = 0x3A
 AWBC6 reset. More...
 
static uint8_t OV7670_RSVD_59_RESET_VALUE = 0x88
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_5A_RESET_VALUE = 0x88
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_5B_RESET_VALUE = 0x44
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_5C_RESET_VALUE = 0x67
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_5D_RESET_VALUE = 0x49
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_5E_RESET_VALUE = 0x0E
 RSVD reset. More...
 
static uint8_t OV7670_AWBCTR3_RESET_VALUE = 0x0A
 AWBCTR3 reset. More...
 
static uint8_t OV7670_AWBCTR2_RESET_VALUE = 0x55
 AWBCTR2 reset. More...
 
static uint8_t OV7670_AWBCTR1_RESET_VALUE = 0x11
 AWBCTR1 reset. More...
 
static uint8_t OV7670_AWBCTR0_RESET_VALUE = 0x9F
 AWBCTR0 reset. More...
 
static uint8_t OV7670_GGAIN_RESET_VALUE = 0x40
 GGAIN reset. More...
 
static uint8_t OV7670_BLUE_GAIN_RESET_VALUE = 0x40
 BLUE Gain reset. More...
 
static uint8_t OV7670_RED_GAIN_RESET_VALUE = 0x60
 RED Gain reset. More...
 
static uint8_t OV7670_COM8_RESET_VALUE_THREE = 0xE7
 COM8 reset three. More...
 
static uint8_t OV7670_MTX1_RESET_VALUE = 0x80
 MTX1 reset. More...
 
static uint8_t OV7670_MTX2_RESET_VALUE = 0x80
 MTX2 reset. More...
 
static uint8_t OV7670_MTX3_RESET_VALUE = 0x0
 MTX3 reset. More...
 
static uint8_t OV7670_MTX4_RESET_VALUE = 0x22
 MTX4 reset. More...
 
static uint8_t OV7670_MTX5_RESET_VALUE = 0x5E
 MTX5 reset. More...
 
static uint8_t OV7670_MTX6_RESET_VALUE = 0x80
 MTX6 reset. More...
 
static uint8_t OV7670_MTXS_RESET_VALUE = 0x9E
 MTXS reset. More...
 
static uint8_t OV7670_COM16_RESET_VALUE_ONE = 0x08
 COM16 reset. More...
 
static uint8_t OV7670_EDGE_RESET_VALUE = 0x0
 EDGE reset. More...
 
static uint8_t OV7670_REG75_RESET_VALUE = 0x05
 REG75 reset. More...
 
static uint8_t OV7670_REG76_RESET_VALUE = 0xE1
 REG76 reset. More...
 
static uint8_t OV7670_DNSTH_RESET_VALUE = 0x0
 DNSTH reset. More...
 
static uint8_t OV7670_REG77_RESET_VALUE = 0x01
 REG77 reset. More...
 
static uint8_t OV7670_COM13_RESET_VALUE = 0xC3
 COM13 reset. More...
 
static uint8_t OV7670_REG4B_RESET_VALUE = 0x09
 REG4B reset. More...
 
static uint8_t OV7670_SATCTR_RESET_VALUE = 0x60
 SATCTR reset. More...
 
static uint8_t OV7670_COM16_RESET_VALUE_TWO = 0x38
 COM16 reset. More...
 
static uint8_t OV7670_COM11_RESET_VALUE = 0x12
 COM11 reset. More...
 
static uint8_t OV7670_NT_CTRL_RESET_VALUE = 0x88
 NT_CTRL reset. More...
 
static uint8_t OV7670_RSVD_96_RESET_VALUE_TWO = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_97_RESET_VALUE = 0x30
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_98_RESET_VALUE = 0x20
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_99_RESET_VALUE = 0x30
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_9A_RESET_VALUE_TWO = 0x84
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_9B_RESET_VALUE = 0x29
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_9C_RESET_VALUE = 0x03
 RSVD reset. More...
 
static uint8_t OV7670_BD50ST_RESET_VALUE = 0x4C
 BD50ST reset. More...
 
static uint8_t OV7670_BD60ST_RESET_VALUE = 0x3F
 BD60ST reset. More...
 
static uint8_t OV7670_RSVD_78_RESET_VALUE = 0x04
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_ONE = 0x01
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_ONE = 0xF0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_TWO = 0x0F
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_TWO = 0x0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_THREE = 0x10
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_THREE = 0x7E
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_FOUR = 0x0A
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_FOUR = 0x80
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_FIVE = 0x0B
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_FIVE = 0x01
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_SIX = 0x0C
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_SIX = 0x0F
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_SEVEN = 0x0D
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_SEVEN = 0x20
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_EIGHT = 0x09
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_EIGHT = 0x80
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_NINE = 0x02
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_NINE = 0xC0
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_TEN = 0x03
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_TEN = 0x40
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_ELEVEN = 0x05
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_C8_RESET_VALUE_ELEVEN = 0x30
 RSVD reset. More...
 
static uint8_t OV7670_RSVD_79_RESET_VALUE_FINAL = 0x26
 RSVD reset. More...
 
I2C_HandleTypeDef * OV7670_I2C
 Functions and other variables! More...
 

Detailed Description

Main header file for the OV7670 camera module.

pinkeee @ j.t0d.nosp@m.d@pr.nosp@m.otonm.nosp@m.ail..nosp@m.com

Note
See README for contributing guides and info.

Definition in file ov7670.h.

Function Documentation

◆ OV7670_init()

bool OV7670_init ( I2C_HandleTypeDef *  hi2c)

Definition at line 15 of file ov7670.c.

16 {
17  /* Set driver handler to argument. */
18  assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
19  OV7670_I2C = hi2c;
20 
21  /* Start setting registers. This is using pure I2C not SCCB, don't have hardware yet.
22  * Additionally, this is transmitting without DMA, very bad for a camera driver but
23  * just get it to work first then add things like DMA and interrupts.
24  *
25  * I have a feeling that this can get much better, maybe make one big buffer
26  * and then transmit that instead??!?!?!? this looks so so so bad it hurts.
27  */
32 
39 
43 }
static uint8_t OV7670_CLKRC_RESET_VALUE
CLKRC 30fps clock scale.
Definition: ov7670.h:1656
static uint8_t OV7670_VSTOP_RESET_VALUE
VSTOP reset, this makes more sense compared to HSTOP.
Definition: ov7670.h:1705
static uint8_t OV7670_VSTART_RESET_VALUE
VSTART reset.
Definition: ov7670.h:1698
static uint8_t OV7670_COM7_SOFT_RESET
Values for registers to be set at camera init.
Definition: ov7670.h:1648
static uint32_t OV7670_TIMEOUT
Timeout for whole driver coms.
Definition: ov7670.h:32
static uint8_t OV7670_VREF_RESET_VALUE
VREF reset, start low 2 bits from VSTOP/START.
Definition: ov7670.h:1712
static uint8_t OV7670_HSTOP_RESET_VALUE
HSTOP reset, value from OV doesn&#39;t make sense at all.
Definition: ov7670.h:1684
static uint8_t OV7670_SCALING_XSC_RESET_VALUE
SCALING_XSC reset value.
Definition: ov7670.h:1726
static uint8_t OV7670_COM14_RESET_VALUE
COM3 reset value.
Definition: ov7670.h:1719
static uint8_t OV7670_SCALING_PCLK_DIV_RESET_VALUE
SCALING_PCLK_DIV reset value.
Definition: ov7670.h:1733
static uint8_t OV7670_COM7_RESET_VALUE
COM7 YUV reset value.
Definition: ov7670.h:1670
static uint8_t OV7670_HSTART_RESET_VALUE
HSTART reset, value from OV doesn&#39;t make sense at all.
Definition: ov7670.h:1677
I2C_HandleTypeDef * OV7670_I2C
Functions and other variables!
Definition: ov7670.c:13
static uint8_t OV7670_WRITE_ADDRESS
SCCB camera write slave address.
Definition: ov7670.h:20
static uint8_t OV7670_TSLB_RESET_VALUE
TSLB magic reserved bit.
Definition: ov7670.h:1663
static uint8_t OV7670_HREF_RESET_VALUE
HREF reset, MSB bits from HSTART AND HSTOP.
Definition: ov7670.h:1691

Variable Documentation

◆ OV7670_ABLC1_ADDRESS

uint8_t OV7670_ABLC1_ADDRESS = 0xB1
static

ABLC1 register.

ABLC1 register Bit[7:3]: Reserved Bit[2]: ABLC enable 0: Disable ABLC function, BLC function is still active 1: Enable ABLC function Bit[1:0]: Reserved

Returns
0xB1

Definition at line 1524 of file ov7670.h.

◆ OV7670_ABLC1_RESET_VALUE

uint8_t OV7670_ABLC1_RESET_VALUE = 0x0C
static

ABLC1 reset.

0000 1100

Returns
0x0C

Definition at line 2139 of file ov7670.h.

◆ OV7670_ACOM_ADDRESS

uint8_t OV7670_ACOM_ADDRESS = 0x38
static

ADC and Analog Common Mode Control (Reserved)

Returns
0x38

Definition at line 718 of file ov7670.h.

◆ OV7670_ACOM_RESET_VALUE

uint8_t OV7670_ACOM_RESET_VALUE = 0x71
static

ACOM reset.

0111 0001

Returns
0x71

Definition at line 2027 of file ov7670.h.

◆ OV7670_AD_CHB_ADDRESS

uint8_t OV7670_AD_CHB_ADDRESS = 0xBE
static

Blue Channel Black Level Compensation.

Blue Channel Black Level Compensation Bit[7]: Reserved Bit[6]: Sign bit Bit[5:0]: Blue channel black level compensation

Returns
0xBE

Definition at line 1571 of file ov7670.h.

◆ OV7670_AD_CHGB_ADDRESS

uint8_t OV7670_AD_CHGB_ADDRESS = 0xC0
static

Gb Channel Black Level Compensation.

Gb Channel Black Level Compensation Bit[7]: Reserved Bit[6]: Sign bit Bit[5:0]: Gb channel black level compensation

Returns
0xC0

Definition at line 1591 of file ov7670.h.

◆ OV7670_AD_CHGR_ADDRESS

uint8_t OV7670_AD_CHGR_ADDRESS = 0xC1
static

Gr Channel Black Level Compensation.

Gr Channel Black Level Compensation Bit[7]: Reserved Bit[6]: Sign bit Bit[5:0]: Gr channel black level compensation

Returns
0xC1

Definition at line 1601 of file ov7670.h.

◆ OV7670_AD_CHR_ADDRESS

uint8_t OV7670_AD_CHR_ADDRESS = 0xBF
static

Red Channel Black Level Compensation.

Red Channel Black Level Compensation Bit[7]: Reserved Bit[6]: Sign bit Bit[5:0]: Red channel black level compensation

Returns
0xBF

Definition at line 1581 of file ov7670.h.

◆ OV7670_ADC_ADDRESS

uint8_t OV7670_ADC_ADDRESS = 0x37
static

ADC control (Reserved)

Returns
0x37

Definition at line 712 of file ov7670.h.

◆ OV7670_ADC_RESET_VALUE

uint8_t OV7670_ADC_RESET_VALUE = 0x1D
static

ADC reset.

0001 1101

Returns
0x1D

Definition at line 2020 of file ov7670.h.

◆ OV7670_ADCCTR0_ADDRESS

uint8_t OV7670_ADCCTR0_ADDRESS = 0x20
static

ADC control register 0.

ADC Control Bit[7:4]: Reserved Bit[3]: ADC range adjustment 0: 1x range 1: 1.5x range Bit[2:0]: ADC reference adjustment 000: 0.8x 100: 1x 111: 1.2x

Returns
0x20

Definition at line 552 of file ov7670.h.

◆ OV7670_ADCCTR1_ADDRESS

uint8_t OV7670_ADCCTR1_ADDRESS = 0x21
static

ADC control register 1 (Reserved)

Returns
0x21

Definition at line 558 of file ov7670.h.

◆ OV7670_ADCCTR2_ADDRESS

uint8_t OV7670_ADCCTR2_ADDRESS = 0x22
static

ADC control register 2 (Reserved)

Returns
0x22

Definition at line 564 of file ov7670.h.

◆ OV7670_ADCCTR2_RESET_VALUE

uint8_t OV7670_ADCCTR2_RESET_VALUE = 0x91
static

ADCCTR2 reset.

1001 0001

Returns
0x91

Definition at line 1992 of file ov7670.h.

◆ OV7670_ADCCTR3_ADDRESS

uint8_t OV7670_ADCCTR3_ADDRESS = 0x23
static

ADC control register 3 (Reserved)

Returns
0x23

Definition at line 570 of file ov7670.h.

◆ OV7670_ADVFH_ADDRESS

uint8_t OV7670_ADVFH_ADDRESS = 0x2E
static

MSB of insert dummy rows in vertical direction.

Returns
0x2E

Definition at line 658 of file ov7670.h.

◆ OV7670_ADVFL_ADDRESS

uint8_t OV7670_ADVFL_ADDRESS = 0x2D
static

LSB of insert dummy rows in vertical direction (1 bit equals 1 row)

Returns
0x2D

Definition at line 652 of file ov7670.h.

◆ OV7670_AEB_ADDRESS

uint8_t OV7670_AEB_ADDRESS = 0x25
static

AGC/AEC - Stable Operating Region (Lower Limit)

Returns
0x25

Definition at line 582 of file ov7670.h.

◆ OV7670_AEB_RESET_VALUE

uint8_t OV7670_AEB_RESET_VALUE = 0x33
static

AEB reset.

0011 00111

Returns
0x33

Definition at line 1894 of file ov7670.h.

◆ OV7670_AECH_ADDRESS

uint8_t OV7670_AECH_ADDRESS = 0x10
static

Exposure settings register.

Exposure Value Bit[7:0]: AEC[9:2] (see registers AECHH for AEC[15:10] and COM1 for AEC[1:0])

Returns
0x10

Definition at line 442 of file ov7670.h.

◆ OV7670_AECHH_ADDRESS

uint8_t OV7670_AECHH_ADDRESS = 0x07
static

Exposure Value - AEC MSB 5 bits.

Exposure Value - AEC MSB 5 bits Bit[7:6]: Reserved Bit[5:0]: AEC[15:10] (see registers AECH for AEC[9:2] and COM1 for AEC[1:0])

Returns
0x07

Definition at line 413 of file ov7670.h.

◆ OV7670_AEW_ADDRESS

uint8_t OV7670_AEW_ADDRESS = 0x24
static

AGC/AEC - Stable Operating Region (Upper Limit)

Returns
0x24

Definition at line 576 of file ov7670.h.

◆ OV7670_AEW_RESET_VALUE

uint8_t OV7670_AEW_RESET_VALUE = 0x95
static

AEW reset.

1001 0101

Returns
0x95

Definition at line 1887 of file ov7670.h.

◆ OV7670_ARBLM_ADDRESS

uint8_t OV7670_ARBLM_ADDRESS = 0x34
static

Array Reference Control (Reserved)

Returns
0x34

Definition at line 699 of file ov7670.h.

◆ OV7670_AWBC1_ADDRESS

uint8_t OV7670_AWBC1_ADDRESS = 0x43
static

AWB Control 1.

Returns
0x43

Definition at line 771 of file ov7670.h.

◆ OV7670_AWBC1_RESET_VALUE

uint8_t OV7670_AWBC1_RESET_VALUE = 0x0A
static

AWBC1 reset.

0000 1010

Returns
0x0A

Definition at line 2167 of file ov7670.h.

◆ OV7670_AWBC2_ADDRESS

uint8_t OV7670_AWBC2_ADDRESS = 0x44
static

AWB Control 2.

Returns
0x44

Definition at line 777 of file ov7670.h.

◆ OV7670_AWBC3_ADDRESS

uint8_t OV7670_AWBC3_ADDRESS = 0x45
static

AWB Control 3.

Returns
0x45

Definition at line 783 of file ov7670.h.

◆ OV7670_AWBC3_RESET_VALUE

uint8_t OV7670_AWBC3_RESET_VALUE = 0x34
static

AWBC3 reset.

0011 0100

Returns
0x34

Definition at line 2174 of file ov7670.h.

◆ OV7670_AWBC4_ADDRESS

uint8_t OV7670_AWBC4_ADDRESS = 0x46
static

AWB Control 4.

Returns
0x46

Definition at line 789 of file ov7670.h.

◆ OV7670_AWBC4_RESET_VALUE

uint8_t OV7670_AWBC4_RESET_VALUE = 0x58
static

AWBC4 reset.

0101 1000

Returns
0x58

Definition at line 2181 of file ov7670.h.

◆ OV7670_AWBC5_ADDRESS

uint8_t OV7670_AWBC5_ADDRESS = 0x47
static

AWB Control 5.

Returns
0x47

Definition at line 795 of file ov7670.h.

◆ OV7670_AWBC5_RESET_VALUE

uint8_t OV7670_AWBC5_RESET_VALUE = 0x28
static

AWBC5 reset.

0010 1000

Returns
0x28

Definition at line 2188 of file ov7670.h.

◆ OV7670_AWBC6_ADDRESS

uint8_t OV7670_AWBC6_ADDRESS = 0x48
static

AWB Control 6.

Returns
0x48

Definition at line 801 of file ov7670.h.

◆ OV7670_AWBC6_RESET_VALUE

uint8_t OV7670_AWBC6_RESET_VALUE = 0x3A
static

AWBC6 reset.

0011 1010

Returns
0x3A

Definition at line 2195 of file ov7670.h.

◆ OV7670_AWBCTR0_ADDRESS

uint8_t OV7670_AWBCTR0_ADDRESS = 0x6F
static

AWB Control 0 return 0x6F.

Definition at line 1051 of file ov7670.h.

◆ OV7670_AWBCTR0_RESET_VALUE

uint8_t OV7670_AWBCTR0_RESET_VALUE = 0x9F
static

AWBCTR0 reset.

0110 1111

Returns
0x6F

Definition at line 2265 of file ov7670.h.

◆ OV7670_AWBCTR1_ADDRESS

uint8_t OV7670_AWBCTR1_ADDRESS = 0x6E
static

AWB Control 1 return 0x6E.

Definition at line 1045 of file ov7670.h.

◆ OV7670_AWBCTR1_RESET_VALUE

uint8_t OV7670_AWBCTR1_RESET_VALUE = 0x11
static

AWBCTR1 reset.

0001 0001

Returns
0x11

Definition at line 2258 of file ov7670.h.

◆ OV7670_AWBCTR2_ADDRESS

uint8_t OV7670_AWBCTR2_ADDRESS = 0x6D
static

AWB Control 2 return 0x6D.

Definition at line 1039 of file ov7670.h.

◆ OV7670_AWBCTR2_RESET_VALUE

uint8_t OV7670_AWBCTR2_RESET_VALUE = 0x55
static

AWBCTR2 reset.

0101 0101

Returns
0x55

Definition at line 2251 of file ov7670.h.

◆ OV7670_AWBCTR3_ADDRESS

uint8_t OV7670_AWBCTR3_ADDRESS = 0x6C
static

AWB Control 3 return 0x6C.

Definition at line 1033 of file ov7670.h.

◆ OV7670_AWBCTR3_RESET_VALUE

uint8_t OV7670_AWBCTR3_RESET_VALUE = 0x0A
static

AWBCTR3 reset.

0000 1010

Returns
0x0A

Definition at line 2244 of file ov7670.h.

◆ OV7670_BAVE_ADDRESS

uint8_t OV7670_BAVE_ADDRESS = 0x05
static

U/B Average Level register.

U/B Average Level Automatically updated based on chip output format

Returns
0x05

Definition at line 395 of file ov7670.h.

◆ OV7670_BBIAS_ADDRESS

uint8_t OV7670_BBIAS_ADDRESS = 0x27
static

B channel signal bias.

B Channel Signal Output Bias (effective only when COM6[3] = 1) Bit[7]: Bias adjustment sign 0: Add bias 1: Subtract bias Bit[6:0]: Bias value of 10-bit range

Returns
0x27

Definition at line 602 of file ov7670.h.

◆ OV7670_BD50MAX_ADDRESS

uint8_t OV7670_BD50MAX_ADDRESS = 0xA5
static

BD50MAX register.

Returns
0xA5

Definition at line 1432 of file ov7670.h.

◆ OV7670_BD50MAX_RESET_VALUE

uint8_t OV7670_BD50MAX_RESET_VALUE = 0x05
static

BD50MAX reset 0000 0101.

Returns
0x05

Definition at line 1873 of file ov7670.h.

◆ OV7670_BD50ST_ADDRESS

uint8_t OV7670_BD50ST_ADDRESS = 0x9D
static

50 Hz Banding Filter Value

50 Hz Banding Filter Value (effective only when COM8[5] is high and COM11[3] is high)

Returns
0x9D

Definition at line 1371 of file ov7670.h.

◆ OV7670_BD50ST_RESET_VALUE

uint8_t OV7670_BD50ST_RESET_VALUE = 0x4C
static

BD50ST reset.

0100 1100

Returns
0x4C

Definition at line 2482 of file ov7670.h.

◆ OV7670_BD60MAX_ADDRESS

uint8_t OV7670_BD60MAX_ADDRESS = 0xAB
static

BD60MAX register.

Returns
0xAB

Definition at line 1468 of file ov7670.h.

◆ OV7670_BD60MAX_RESET_VALUE

uint8_t OV7670_BD60MAX_RESET_VALUE = 0x07
static

BD60MAX reset 0000 0111.

Returns
0x07

Definition at line 1880 of file ov7670.h.

◆ OV7670_BD60ST_ADDRESS

uint8_t OV7670_BD60ST_ADDRESS = 0x9E
static

60 Hz Banding Filter Value

60 Hz Banding Filter Value (effective only when COM8[5] is high and COM11[3] is low)

Returns
0x9E

Definition at line 1379 of file ov7670.h.

◆ OV7670_BD60ST_RESET_VALUE

uint8_t OV7670_BD60ST_RESET_VALUE = 0x3F
static

BD60ST reset.

0011 1111

Returns
0x3F

Definition at line 2489 of file ov7670.h.

◆ OV7670_BLUE_GAIN_ADDRESS

uint8_t OV7670_BLUE_GAIN_ADDRESS = 0x01
static

Blue channel gain settings.

AWB – Blue channel gain setting • Range: [00] to [FF]

Returns
0x01

Definition at line 368 of file ov7670.h.

◆ OV7670_BLUE_GAIN_RESET_VALUE

uint8_t OV7670_BLUE_GAIN_RESET_VALUE = 0x40
static

BLUE Gain reset.

0100 0000

Returns
0x40

Definition at line 2279 of file ov7670.h.

◆ OV7670_BRIGHT_ADDRESS

uint8_t OV7670_BRIGHT_ADDRESS = 0x55
static

Brightness Control.

Returns
0x55

Definition at line 872 of file ov7670.h.

◆ OV7670_CHLF_ADDRESS

uint8_t OV7670_CHLF_ADDRESS = 0x33
static

Array Current Control (Reserved)

Returns
0x33

Definition at line 692 of file ov7670.h.

◆ OV7670_CHLF_RESET_VALUE

uint8_t OV7670_CHLF_RESET_VALUE = 0x0B
static

CHLF reset value, reserved.

0000 1011

Returns
0x0B

Definition at line 2006 of file ov7670.h.

◆ OV7670_CLKRC_ADDRESS

uint8_t OV7670_CLKRC_ADDRESS = 0x11
static

CLKRC RW register.

Internal Clock Bit[7]: Reserved Bit[6]: Use external clock directly (no clock pre-scale available) Bit[5:0]: Internal clock pre-scalar F(internal clock) = F(input clock)/(Bit[5:0]+1) • Range: [0 0000] to [1 1111]

Returns
0x11

Definition at line 454 of file ov7670.h.

◆ OV7670_CLKRC_RESET_VALUE

uint8_t OV7670_CLKRC_RESET_VALUE = 0x01
static

CLKRC 30fps clock scale.

0x1 == 0000 0001 This value sets the internal clock pre-scaler

Returns
0x1

Definition at line 1656 of file ov7670.h.

◆ OV7670_COM10_ADDRESS

uint8_t OV7670_COM10_ADDRESS = 0x15
static

COM10 RW register.

Common Control 10 Bit[7]: Reserved Bit[6]: HREF changes to HSYNC Bit[5]: PCLK output option 0: Free running PCLK 1: PCLK does not toggle during horizontal blank Bit[4]: PCLK reverse Bit[3]: HREF reverse Bit[2]: VSYNC option 0: VSYNC changes on falling edge of PCLK 1: VSYNC changes on rising edge of PCLK Bit[1]: VSYNC negative Bit[0]: HSYNC negative

Returns
0x15

Definition at line 211 of file ov7670.h.

◆ OV7670_COM11_ADDRESS

uint8_t OV7670_COM11_ADDRESS = 0x3B
static

COM11 RW register.

Common Control 11 Bit[7]: Night mode 0: Night mode disable 1: Night mode enable - The frame rate is reduced automatically while the minimum frame rate is limited by COM11[6:5]. Also, ADVFH and ADVFL will be automatically updated. Bit[6:5]: Minimum frame rate of night mode 00: Same as normal mode frame rate 01: 1/2 of normal mode frame rate 10: 1/4 of normal mode frame rate 11: 1/8 of normal mode frame rate Bit[4]: D56_Auto 0: Disable 50/60 Hz auto detection 1: Enable 50/60 Hz auto detection Bit[3]: Banding filter value select (effective only when COM11[4] = 0) 0: Select BD60ST[7:0] (0x9E) as Banding Filter Value 1: Select BD50ST[7:0] (0x9D) as Banding Filter Value Bit[2]: Reserved Bit[1]: Exposure timing can be less than limit of banding filter when light is too strong Bit[0]: Reserved

Returns
0x3B

Definition at line 240 of file ov7670.h.

◆ OV7670_COM11_RESET_VALUE

uint8_t OV7670_COM11_RESET_VALUE = 0x12
static

COM11 reset.

0001 0010

Returns
0x12

Definition at line 2419 of file ov7670.h.

◆ OV7670_COM12_ADDRESS

uint8_t OV7670_COM12_ADDRESS = 0x3C
static

COM12 RW register.

Common Control 12 Bit[7]: HREF option 0: No HREF when VSYNC is low 1: Always has HREF Bit[6:0]: Reserved

Returns
0x3C

Definition at line 251 of file ov7670.h.

◆ OV7670_COM12_RESET_VALUE

uint8_t OV7670_COM12_RESET_VALUE = 0x78
static

COM12 reset.

0111 1000, magic reserved

Returns
0x78

Definition at line 2041 of file ov7670.h.

◆ OV7670_COM13_ADDRESS

uint8_t OV7670_COM13_ADDRESS = 0x3D
static

COM13 RW register.

Common Control 13 Bit[7]: Gamma enable Bit[6]: UV saturation level - UV auto adjustment. Result is saved in register SATCTR[3:0] (0xC9) Bit[5:2]: Reserved Bit[1]: UV swap (use with register TSLB[3] (0x3A)) TSLB[3], COM13[1]: 00: Y U Y V 01: Y V Y U 10: U Y V Y 11: V Y U Y Bit[0]: Reserved

Returns
0x3D

Definition at line 269 of file ov7670.h.

◆ OV7670_COM13_RESET_VALUE

uint8_t OV7670_COM13_RESET_VALUE = 0xC3
static

COM13 reset.

1100 0011

Returns
0xC3

Definition at line 2391 of file ov7670.h.

◆ OV7670_COM14_ADDRESS

uint8_t OV7670_COM14_ADDRESS = 0x3E
static

COM14 RW register.

Common Control 14 Bit[7:5]: Reserved Bit[4]: DCW and scaling PCLK enable 0: Normal PCLK 1: DCW and scaling PCLK, controlled by register COM14[2:0] and SCALING_PCLK_DIV[3:0] (0x73)) Bit[3]: Manual scaling enable for pre-defined resolution modes such as CIF, QCIF, and QVGA 0: Scaling parameter cannot be adjusted manually 1: Scaling parameter can be adjusted manually Bit[2:0]: PCLK divider (only when COM14[4] = 1) 000: Divided by 1 001: Divided by 2 010: Divided by 4 011: Divided by 8 100: Divided by 16 101~111: Not allowed

Returns
0x3E

Definition at line 292 of file ov7670.h.

◆ OV7670_COM14_RESET_VALUE

uint8_t OV7670_COM14_RESET_VALUE = 0x0
static

COM3 reset value.

0000 0000 , nothing important

Returns
0x0

Definition at line 1719 of file ov7670.h.

◆ OV7670_COM15_ADDRESS

uint8_t OV7670_COM15_ADDRESS = 0x40
static

COM15 RW register.

Common Control 15 Bit[7:6]: Data format - output full range enable 0x: Output range: [10] to [F0] 10: Output range: [01] to [FE] 11: Output range: [00] to [FF] Bit[5:4]: RGB 555/565 option (must set COM7[2] = 1 and COM7[0] = 0) x0: Normal RGB output 01: RGB 565 11: RGB 555 Bit[3:0]: Reserved

Returns
0x40

Definition at line 309 of file ov7670.h.

◆ OV7670_COM16_ADDRESS

uint8_t OV7670_COM16_ADDRESS = 0x41
static

COM16 RW register.

Common Control 16 Bit[7:6]: Reserved Bit[5]: Enable edge enhancement auto-adjustment for YUV output (result is saved in register EDGE[4:0] (0x3F) and range is controlled by registers REG75[4:0] (0x75) and REG76[4:0] (0x76)) 0: Disable 1: Enable Bit[4]: De-noise auto-adjustment (result is saved in register DNSTH (0x4C) and range is controlled by register REG77[7:0] (0x77)) 0: Disable 1: Enable Bit[3]: AWB gain enable Bit[2]: Reserved Bit[1]: Color matrix coefficient double option 0: Original matrix 1: Double of original matrix Bit[0]: Reserved

Returns
0x41

Definition at line 334 of file ov7670.h.

◆ OV7670_COM16_RESET_VALUE_ONE

uint8_t OV7670_COM16_RESET_VALUE_ONE = 0x08
static

COM16 reset.

0000 1000

Returns
0x08

Definition at line 2349 of file ov7670.h.

◆ OV7670_COM16_RESET_VALUE_TWO

uint8_t OV7670_COM16_RESET_VALUE_TWO = 0x38
static

COM16 reset.

0011 1000

Returns
0x38

Definition at line 2412 of file ov7670.h.

◆ OV7670_COM17_ADDRESS

uint8_t OV7670_COM17_ADDRESS = 0x42
static

COM17 RW register.

Common Control 17 Bit[7:6]: AEC window must be the same value as COM4[5:4]) 00: Normal 01: 1/2 10: 1/4 11: 1/4 Bit[5:4]: Reserved Bit[3]: DSP color bar enable 0: Disable 1: Enable Bit[2:0]: Reserved

Returns
0x42

Definition at line 351 of file ov7670.h.

◆ OV7670_COM1_ADDRESS

uint8_t OV7670_COM1_ADDRESS = 0x04
static

COM1 RW register.

Common Control 1 Bit[7]: Reserved Bit[6]: CCIR656 format 0: Disable 1: Enable Bit[5:2]: Reserved Bit[1:0]: AEC low 2 LSB (see registers AECHH for AEC[15:10] and AECH for AEC[9:2])

Returns
0x04

Definition at line 49 of file ov7670.h.

◆ OV7670_COM2_ADDRESS

uint8_t OV7670_COM2_ADDRESS = 0x09
static

COM2 RW register.

Common Control 2 Bit[7:5]: Reserved Bit[4]: Soft sleep mode Bit[3:2]: Reserved Bit[1:0]: Output Drive Capability 00: 1x 01: 2x 10: 3x 11: 4x

Returns
0x09

Definition at line 64 of file ov7670.h.

◆ OV7670_COM3_ADDRESS

uint8_t OV7670_COM3_ADDRESS = 0x0C
static

COM3 RW register.

Common Control 3 Bit[7]: Reserved Bit[6]: Output data MSB and LSB swap Bit[5]: Tri-state option for output clock (PCLK, HREF/HSYNC, VSYNC, and STROBE) at power-down period 0: Tri-state at this period 1: No tri-state at this period Bit[4]: Tri-state option for output data (D[7:0]) at power-down period 0: Tri-state at this period 1: No tri-state at this period Bit[3]: Scale enable 0: Disable 1: Enable - if set to a pre-defined format (see COM7[5:3]), then COM14[3] must be set to 1 for manual adjustment. Bit[2]: DCW enable 0: Disable 1: Enable - if set to a pre-defined format (see COM7[5:3]), then COM14[3] must be set to 1 for manual adjustment. Bit[1:0]: Reserved

Returns
0x0C

Definition at line 92 of file ov7670.h.

◆ OV7670_COM4_ADDRESS

uint8_t OV7670_COM4_ADDRESS = 0x0D
static

COM4 RW register.

Common Control 4 Bit[7:6]: Reserved Bit[5:4]: Average option (must be same value as COM17[7:6]) 00: Full window 01: 1/2 window 10: 1/4 window 11: 1/4 window Bit[3:0]: Reserved

Returns
0x0D

Definition at line 106 of file ov7670.h.

◆ OV7670_COM4_RESET_VALUE

uint8_t OV7670_COM4_RESET_VALUE = 0x40
static

COM4 reset, magic reserved 6th bit.

0100 0000

Returns
0x40

Definition at line 1859 of file ov7670.h.

◆ OV7670_COM5_ADDRESS

uint8_t OV7670_COM5_ADDRESS = 0x0E
static

COM5 RW register.

Common Control 5 Bit[7:0]: Reserved

Returns
0x0E

Definition at line 114 of file ov7670.h.

◆ OV7670_COM5_RESET_VALUE

uint8_t OV7670_COM5_RESET_VALUE = 0x61
static

COM5 reset.

0110 0001, magic reserved

Returns
0x61

Definition at line 1964 of file ov7670.h.

◆ OV7670_COM6_ADDRESS

uint8_t OV7670_COM6_ADDRESS = 0x0F
static

COM6 RW register.

Common Control 6 Bit[7]: Output of optical black row option 0: Disable HREF at optical black 1: Enable HREF at optical black Bit[6:2]: Reserved Bit[1]: Reset all timing when format changes 0: No reset 1: Resets timing Bit[0]: Reserved

Returns
0x0F

Definition at line 129 of file ov7670.h.

◆ OV7670_COM6_RESET_VALUE

uint8_t OV7670_COM6_RESET_VALUE = 0x4B
static

COM6 reset.

0100 1011, magic reserved

Returns
0x4B

Definition at line 1971 of file ov7670.h.

◆ OV7670_COM7_ADDRESS

uint8_t OV7670_COM7_ADDRESS = 0x12
static

COM7 RW register.

Common Control 7 Bit[7]: SCCB register reset 0: No change 1: Resets all registers to default values Bit[6]: Reserved Bit[5]: Output format - CIF selection Bit[4]: Output format - QVGA selection Bit[3]: Output format - QCIF selection Bit[2]: Output format - RGB selection (see below) Bit[1]: Color bar 0: Disable 1: Enable Bit[0]: Output format - Raw RGB (see below) COM7[2] COM7[0] YUV 0 0 RGB 1 0 Raw Bayer RGB 0 1 Processed Bayer RGB 1 1

Returns
0x12

Definition at line 153 of file ov7670.h.

◆ OV7670_COM7_RESET_VALUE

uint8_t OV7670_COM7_RESET_VALUE = 0x0
static

COM7 YUV reset value.

0000 0000

Returns
0x0

Definition at line 1670 of file ov7670.h.

◆ OV7670_COM7_SOFT_RESET

uint8_t OV7670_COM7_SOFT_RESET = 0x80
static

Values for registers to be set at camera init.

For this camera, these values aren't really mentioned in the datasheet and instead contact has to be made with OmniVision to get the best values. Instead of doing that myself, these values are from the Linux kernel driver for this camera, these values came from OmniVision.

The camera init should be done in this order too. These settings give VGA VUYU, 30fps COM7 software reset value.

Writing 0x80 to the COM7 register sets all registers to their default value. Default does not mean optimal though.

This is recommended to be run at the very start of the driver init.

Returns
0x80

Definition at line 1648 of file ov7670.h.

◆ OV7670_COM8_ADDRESS

uint8_t OV7670_COM8_ADDRESS = 0x13
static

COM8 RW register.

Common Control 8 Bit[7]: Enable fast AGC/AEC algorithm Bit[6]: AEC - Step size limit 0: Step size is limited to vertical blank 1: Unlimited step size Bit[5]: Banding filter ON/OFF - In order to turn ON the banding filter, BD50ST (0x9D) or BD60ST (0x9E) must be set to a non-zero value. 0: ON 1: OFF Bit[4:3]: Reserved Bit[2]: AGC Enable Bit[1]: AWB Enable Bit[0]: AEC Enable

Returns
0x13

Definition at line 173 of file ov7670.h.

◆ OV7670_COM8_RESET_VALUE_ONE

uint8_t OV7670_COM8_RESET_VALUE_ONE = 0xE0
static

COM8 reset, disable AGC and AEC first.

One/Two.

1110 0000 , reserved magic, banding on, AEC step size, fast algorithm

Returns
0xE0

Definition at line 1852 of file ov7670.h.

◆ OV7670_COM8_RESET_VALUE_THREE

uint8_t OV7670_COM8_RESET_VALUE_THREE = 0xE7
static

COM8 reset three.

1110 0111

Returns
0xE7

Definition at line 2293 of file ov7670.h.

◆ OV7670_COM8_RESET_VALUE_TWO

uint8_t OV7670_COM8_RESET_VALUE_TWO = 0xE5
static

COM8 reset 2.

1110 0101 , Enables FAST AEC, AEC STEP, BFILT, AGC, AEC

Returns
0xE5

Definition at line 1957 of file ov7670.h.

◆ OV7670_COM9_ADDRESS

uint8_t OV7670_COM9_ADDRESS = 0x14
static

COM9 RW register.

Common Control 9 Bit[7]: Reserved Bit[6:4]: Automatic Gain Ceiling - maximum AGC value 000: 2x 001: 4x 010: 8x 011: 16x 100: 32x 101: 64x 110: 128x 111: Not allowed Bit[3:1]: Reserved Bit[0]: Freeze AGC/AEC

Returns
0x14

Definition at line 192 of file ov7670.h.

◆ OV7670_COM9_RESET_VALUE

uint8_t OV7670_COM9_RESET_VALUE = 0x18
static

COM9 reset, magic reserved, 4x gain ceiling.

0001 1000

Returns
0x18

Definition at line 1866 of file ov7670.h.

◆ OV7670_CONTRAS_ADDRESS

uint8_t OV7670_CONTRAS_ADDRESS = 0x56
static

Contrast Control.

Returns
0x56

Definition at line 878 of file ov7670.h.

◆ OV7670_CONTRAS_CENTER_ADDRESS

uint8_t OV7670_CONTRAS_CENTER_ADDRESS = 0x57
static

Contrast Center.

Returns
0x57

Definition at line 884 of file ov7670.h.

◆ OV7670_DBLV_ADDRESS

uint8_t OV7670_DBLV_ADDRESS = 0x6B
static

DBLV register.

DBLV register Bit[7:6]: PLL control 00: Bypass PLL 01: Input clock x4 10: Input clock x6 11: Input clock x8 Bit[5]: Reserved Bit[4]: Regulator control 0: Enable internal regulator 1: Bypass internal regulator Bit[3:0]: Clock divider control for DSP scale control (valid only when COM14[3] = 1)

Returns
0x6B

Definition at line 1027 of file ov7670.h.

◆ OV7670_DBLV_RESET_VALUE

uint8_t OV7670_DBLV_RESET_VALUE = 0x4A
static

DBLV reset.

0100 1010

Returns
0x4A

Definition at line 2069 of file ov7670.h.

◆ OV7670_DM_LNH_ADDRESS

uint8_t OV7670_DM_LNH_ADDRESS = 0x93
static

z

Dummy Row high 8 bits register

Returns
0x93

Definition at line 1339 of file ov7670.h.

◆ OV7670_DM_LNL_ADDRESS

uint8_t OV7670_DM_LNL_ADDRESS = 0x92
static

Dummy Row low 8 bits register.

Returns
0x92

Definition at line 1333 of file ov7670.h.

◆ OV7670_DNSTH_ADDRESS

uint8_t OV7670_DNSTH_ADDRESS = 0x4C
static

De-noise strength.

Returns
0x4C

Definition at line 823 of file ov7670.h.

◆ OV7670_DNSTH_RESET_VALUE

uint8_t OV7670_DNSTH_RESET_VALUE = 0x0
static

DNSTH reset.

0000 0000

Returns
0x0

Definition at line 2377 of file ov7670.h.

◆ OV7670_EDGE_ADDRESS

uint8_t OV7670_EDGE_ADDRESS = 0x3F
static

Edge Enhancement Adjustment.

Edge Enhancement Adjustment Bit[7:5]: Reserved Bit[4:0]: Edge enhancement factor

Returns
0x3F

Definition at line 765 of file ov7670.h.

◆ OV7670_EDGE_RESET_VALUE

uint8_t OV7670_EDGE_RESET_VALUE = 0x0
static

EDGE reset.

0000 0000

Returns
0x0

Definition at line 2356 of file ov7670.h.

◆ OV7670_EXHCH_ADDRESS

uint8_t OV7670_EXHCH_ADDRESS = 0x2A
static

Dummy Pixel Insert MSB.

Dummy Pixel Insert MSB Bit[7:4]: 4 MSB for dummy pixel insert in horizontal direction Bit[3:2]: HSYNC falling edge delay 2 MSB Bit[1:0]: HSYNC rising edge delay 2 MSB

Returns
0x2A

Definition at line 629 of file ov7670.h.

◆ OV7670_EXHCL_ADDRESS

uint8_t OV7670_EXHCL_ADDRESS = 0x2B
static

Dummy Pixel Insert LSB.

8 LSB for dummy pixel insert in horizontal direction

Returns
0x2B

Definition at line 636 of file ov7670.h.

◆ OV7670_GAIN_ADDRESS

uint8_t OV7670_GAIN_ADDRESS = 0x00
static

Gain control setting.

AGC – Gain control gain setting Bit[7:0]: AGC[7:0] (see VREF[7:6] (0x03) for AGC[9:8]) • Range: [00] to [FF]

Returns
0x00

Definition at line 360 of file ov7670.h.

◆ OV7670_GAM10_ADDRESS

uint8_t OV7670_GAM10_ADDRESS = 0x84
static

Gamma Curve register 10.

Gamma Curve 10th Segment Input End Point 0x50 Output Value

Returns
0x84

Definition at line 1261 of file ov7670.h.

◆ OV7670_GAM10_RESET_VALUE

uint8_t OV7670_GAM10_RESET_VALUE = 0x96
static

GAM10 Gamma curve 10.

1001 0110

Returns
0x96

Definition at line 1810 of file ov7670.h.

◆ OV7670_GAM11_ADDRESS

uint8_t OV7670_GAM11_ADDRESS = 0x85
static

Gamma Curve register 11.

Gamma Curve 11th Segment Input End Point 0x60 Output Value

Returns
0x85

Definition at line 1268 of file ov7670.h.

◆ OV7670_GAM11_RESET_VALUE

uint8_t OV7670_GAM11_RESET_VALUE = 0xA3
static

GAM11 Gamma curve 11.

1010 0011

Returns
0xA3

Definition at line 1817 of file ov7670.h.

◆ OV7670_GAM12_ADDRESS

uint8_t OV7670_GAM12_ADDRESS = 0x86
static

Gamma Curve register 12.

Gamma Curve 12th Segment Input End Point 0x70 Output Value

Returns
0x86

Definition at line 1275 of file ov7670.h.

◆ OV7670_GAM12_RESET_VALUE

uint8_t OV7670_GAM12_RESET_VALUE = 0xAF
static

GAM12 Gamma curve 12.

1010 1111

Returns
0xAF

Definition at line 1824 of file ov7670.h.

◆ OV7670_GAM13_ADDRESS

uint8_t OV7670_GAM13_ADDRESS = 0x87
static

Gamma Curve register 13.

Gamma Curve 13th Segment Input End Point 0x90 Output Value

Returns
0x87

Definition at line 1282 of file ov7670.h.

◆ OV7670_GAM13_RESET_VALUE

uint8_t OV7670_GAM13_RESET_VALUE = 0xC4
static

GAM13 Gamma curve 13.

1100 0100

Returns
0xC4

Definition at line 1831 of file ov7670.h.

◆ OV7670_GAM14_ADDRESS

uint8_t OV7670_GAM14_ADDRESS = 0x88
static

Gamma Curve register 14.

Gamma Curve 14th Segment Input End Point 0xB0 Output Value

Returns
0x88

Definition at line 1289 of file ov7670.h.

◆ OV7670_GAM14_RESET_VALUE

uint8_t OV7670_GAM14_RESET_VALUE = 0xD7
static

GAM14 Gamma curve 14.

1101 0111

Returns
0xD7

Definition at line 1838 of file ov7670.h.

◆ OV7670_GAM15_ADDRESS

uint8_t OV7670_GAM15_ADDRESS = 0x89
static

Gamma Curve register 15.

Gamma Curve 15th Segment Input End Point 0xD0 Output Value

Returns
0x89

Definition at line 1296 of file ov7670.h.

◆ OV7670_GAM15_RESET_VALUE

uint8_t OV7670_GAM15_RESET_VALUE = 0xE8
static

GAM15 Gamma curve 15.

1110 1000

Returns
0xE8

Definition at line 1845 of file ov7670.h.

◆ OV7670_GAM1_ADDRESS

uint8_t OV7670_GAM1_ADDRESS = 0x7B
static

Gamma Curve register 1.

Gamma Curve 1st Segment Input End Point 0x04 Output Value

Returns
0x7B

Definition at line 1198 of file ov7670.h.

◆ OV7670_GAM1_RESET_VALUE

uint8_t OV7670_GAM1_RESET_VALUE = 0x10
static

GAM1 Gamma curve 1.

0001 0000

Returns
0x10

Definition at line 1747 of file ov7670.h.

◆ OV7670_GAM2_ADDRESS

uint8_t OV7670_GAM2_ADDRESS = 0x7C
static

Gamma Curve register 2.

Gamma Curve 2nd Segment Input End Point 0x08 Output Value

Returns
0x7C

Definition at line 1205 of file ov7670.h.

◆ OV7670_GAM2_RESET_VALUE

uint8_t OV7670_GAM2_RESET_VALUE = 0x1E
static

GAM2 Gamma curve 2.

0001 1110

Returns
0x1E

Definition at line 1754 of file ov7670.h.

◆ OV7670_GAM3_ADDRESS

uint8_t OV7670_GAM3_ADDRESS = 0x7D
static

Gamma Curve register 3.

Gamma Curve 3rd Segment Input End Point 0x10 Output Value

Returns
0x7D

Definition at line 1212 of file ov7670.h.

◆ OV7670_GAM3_RESET_VALUE

uint8_t OV7670_GAM3_RESET_VALUE = 0x35
static

GAM3 Gamma curve 3.

0011 0101

Returns
0x35

Definition at line 1761 of file ov7670.h.

◆ OV7670_GAM4_ADDRESS

uint8_t OV7670_GAM4_ADDRESS = 0x7E
static

Gamma Curve register 4.

Gamma Curve 4th Segment Input End Point 0x20 Output Value

Returns
0x7E

Definition at line 1219 of file ov7670.h.

◆ OV7670_GAM4_RESET_VALUE

uint8_t OV7670_GAM4_RESET_VALUE = 0x5A
static

GAM4 Gamma curve 4.

0101 1010

Returns
0x5A

Definition at line 1768 of file ov7670.h.

◆ OV7670_GAM5_ADDRESS

uint8_t OV7670_GAM5_ADDRESS = 0x7F
static

Gamma Curve register 5.

Gamma Curve 5th Segment Input End Point 0x28 Output Value

Returns
0x7F

Definition at line 1226 of file ov7670.h.

◆ OV7670_GAM5_RESET_VALUE

uint8_t OV7670_GAM5_RESET_VALUE = 0x69
static

GAM5 Gamma curve 5.

0110 1001

Returns
0x69

Definition at line 1775 of file ov7670.h.

◆ OV7670_GAM6_ADDRESS

uint8_t OV7670_GAM6_ADDRESS = 0x80
static

Gamma Curve register 6.

Gamma Curve 6th Segment Input End Point 0x30 Output Value

Returns
0x80

Definition at line 1233 of file ov7670.h.

◆ OV7670_GAM6_RESET_VALUE

uint8_t OV7670_GAM6_RESET_VALUE = 0x76
static

GAM6 Gamma curve 6.

0111 0110

Returns
0x76

Definition at line 1782 of file ov7670.h.

◆ OV7670_GAM7_ADDRESS

uint8_t OV7670_GAM7_ADDRESS = 0x81
static

Gamma Curve register 7.

Gamma Curve 7th Segment Input End Point 0x38 Output Value

Returns
0x81

Definition at line 1240 of file ov7670.h.

◆ OV7670_GAM7_RESET_VALUE

uint8_t OV7670_GAM7_RESET_VALUE = 0x80
static

GAM7 Gamma curve 7.

1000 0000

Returns
0x80

Definition at line 1789 of file ov7670.h.

◆ OV7670_GAM8_ADDRESS

uint8_t OV7670_GAM8_ADDRESS = 0x82
static

Gamma Curve register 8.

Gamma Curve 8th Segment Input End Point 0x40 Output Value

Returns
0x82

Definition at line 1247 of file ov7670.h.

◆ OV7670_GAM8_RESET_VALUE

uint8_t OV7670_GAM8_RESET_VALUE = 0x88
static

GAM8 Gamma curve 8.

1000 1000

Returns
0x88

Definition at line 1796 of file ov7670.h.

◆ OV7670_GAM9_ADDRESS

uint8_t OV7670_GAM9_ADDRESS = 0x83
static

Gamma Curve register 9.

Gamma Curve 9th Segment Input End Point 0x48 Output Value

Returns
0x83

Definition at line 1254 of file ov7670.h.

◆ OV7670_GAM9_RESET_VALUE

uint8_t OV7670_GAM9_RESET_VALUE = 0x8F
static

GAM9 Gamma curve 9.

1000 1111

Returns
0x8F

Definition at line 1803 of file ov7670.h.

◆ OV7670_GBAVE_ADDRESS

uint8_t OV7670_GBAVE_ADDRESS = 0x06
static

Y/Gb Average Level register.

Y/Gb Average Level Automatically updated based on chip output format

Returns
0x06

Definition at line 403 of file ov7670.h.

◆ OV7670_GBBIAS_ADDRESS

uint8_t OV7670_GBBIAS_ADDRESS = 0x28
static

Gb channel signal bias.

B Channel Signal Output Bias (effective only when COM6[3] = 1) Bit[7]: Bias adjustment sign 0: Add bias 1: Subtract bias Bit[6:0]: Bias value of 10-bit range

Returns
0x28

Definition at line 613 of file ov7670.h.

◆ OV7670_GFIX_ADDRESS

uint8_t OV7670_GFIX_ADDRESS = 0x69
static

Fixed Gain Control.

Fix Gain Control Bit[7:6]: Fix gain for Gr channel 00: 1x 01: 1.25x 10: 1.5x 11: 1.75x Bit[5:4]: Fix gain for Gb channel 00: 1x 01: 1.25x 10: 1.5x 11: 1.75x Bit[3:2]: Fix gain for R channel 00: 1x 01: 1.25x 10: 1.5x 11: 1.75x Bit[1:0]: Fix gain for B channel 00: 1x 01: 1.25x 10: 1.5x 11: 1.75x

Returns
0x69

Definition at line 1003 of file ov7670.h.

◆ OV7670_GFIX_RESET_VALUE

uint8_t OV7670_GFIX_RESET_VALUE = 0x0
static

GFIX reset.

0000 0000

Returns
0x0

Definition at line 2062 of file ov7670.h.

◆ OV7670_GGAIN_ADDRESS

uint8_t OV7670_GGAIN_ADDRESS = 0x6A
static

G Channel AWB Gain.

Returns
0x6A

Definition at line 1009 of file ov7670.h.

◆ OV7670_GGAIN_RESET_VALUE

uint8_t OV7670_GGAIN_RESET_VALUE = 0x40
static

GGAIN reset.

0100 0000

Returns
0x40

Definition at line 2272 of file ov7670.h.

◆ OV7670_HAECC1_ADDRESS

uint8_t OV7670_HAECC1_ADDRESS = 0x9F
static

HAECC1 Histogram-based AEC/AGC Control 1.

Returns
0x9F

Definition at line 1385 of file ov7670.h.

◆ OV7670_HAECC1_RESET_VALUE

uint8_t OV7670_HAECC1_RESET_VALUE = 0x78
static

HAECC1 reset.

0111 1000

Returns
0x78

Definition at line 1908 of file ov7670.h.

◆ OV7670_HAECC2_ADDRESS

uint8_t OV7670_HAECC2_ADDRESS = 0xA0
static

HAECC1 Histogram-based AEC/AGC Control 2.

Returns
0xA0

Definition at line 1391 of file ov7670.h.

◆ OV7670_HAECC2_RESET_VALUE

uint8_t OV7670_HAECC2_RESET_VALUE = 0x68
static

HAECC2 reset.

0110 1000

Returns
0x68

Definition at line 1915 of file ov7670.h.

◆ OV7670_HAECC3_ADDRESS

uint8_t OV7670_HAECC3_ADDRESS = 0xA6
static

HAECC3 Histogram-based AEC/AGC Control 3.

Returns
0xA6

Definition at line 1438 of file ov7670.h.

◆ OV7670_HAECC3_RESET_VALUE

uint8_t OV7670_HAECC3_RESET_VALUE = 0xD8
static

HAECC3 reset.

1101 1000

Returns
0xD8

Definition at line 1929 of file ov7670.h.

◆ OV7670_HAECC4_ADDRESS

uint8_t OV7670_HAECC4_ADDRESS = 0xA7
static

HAECC4 Histogram-based AEC/AGC Control 4.

Returns
0xA7

Definition at line 1444 of file ov7670.h.

◆ OV7670_HAECC4_RESET_VALUE

uint8_t OV7670_HAECC4_RESET_VALUE = 0xD8
static

HAECC4 reset.

1101 1000

Returns
0xD8

Definition at line 1936 of file ov7670.h.

◆ OV7670_HAECC5_ADDRESS

uint8_t OV7670_HAECC5_ADDRESS = 0xA8
static

HAECC5 Histogram-based AEC/AGC Control 5.

Returns
0xA8

Definition at line 1450 of file ov7670.h.

◆ OV7670_HAECC6_ADDRESS

uint8_t OV7670_HAECC6_ADDRESS = 0xA9
static

HAECC6 Histogram-based AEC/AGC Control 6.

Returns
0xA9

Definition at line 1456 of file ov7670.h.

◆ OV7670_HAECC6_RESET_VALUE

uint8_t OV7670_HAECC6_RESET_VALUE = 0x90
static

HAECC6 reset.

1001 0000

Returns
0x90

Definition at line 1943 of file ov7670.h.

◆ OV7670_HAECC7_ADDRESS

uint8_t OV7670_HAECC7_ADDRESS = 0xAA
static

HAECC7 Histogram-based AEC/AGC Control 7.

Returns
0xAA

Definition at line 1462 of file ov7670.h.

◆ OV7670_HAECC7_RESET_VALUE

uint8_t OV7670_HAECC7_RESET_VALUE = 0x94
static

HAECC7 reset.

1001 0100

Returns
0x94

Definition at line 1950 of file ov7670.h.

◆ OV7670_HREF_ADDRESS

uint8_t OV7670_HREF_ADDRESS = 0x32
static

HREF Control register.

HREF Control Bit[7:6]: HREF edge offset to data output Bit[5:3]: HREF end 3 LSB (high 8 MSB at register HSTOP) Bit[2:0]: HREF start 3 LSB (high 8 MSB at register HSTART)

Returns
0x32

Definition at line 686 of file ov7670.h.

◆ OV7670_HREF_RESET_VALUE

uint8_t OV7670_HREF_RESET_VALUE = 0xB6
static

HREF reset, MSB bits from HSTART AND HSTOP.

1011 0110 , HREF edge offset = 10

Returns
0xB6

Definition at line 1691 of file ov7670.h.

◆ OV7670_HSTART_ADDRESS

uint8_t OV7670_HSTART_ADDRESS = 0x17
static

Horizontal frame start high.

Output Format - Horizontal Frame (HREF column) start high 8-bit (low 3 bits are at HREF[2:0])

Returns
0x17

Definition at line 468 of file ov7670.h.

◆ OV7670_HSTART_RESET_VALUE

uint8_t OV7670_HSTART_RESET_VALUE = 0x13
static

HSTART reset, value from OV doesn't make sense at all.

0001 0011

Returns
0x13

Definition at line 1677 of file ov7670.h.

◆ OV7670_HSTOP_ADDRESS

uint8_t OV7670_HSTOP_ADDRESS = 0x18
static

Horizontal frame end high.

Output Format - Horizontal Frame (HREF column) end high 8-bit (low 3 bits are at HREF[5:3])

Returns
0x18

Definition at line 476 of file ov7670.h.

◆ OV7670_HSTOP_RESET_VALUE

uint8_t OV7670_HSTOP_RESET_VALUE = 0x01
static

HSTOP reset, value from OV doesn't make sense at all.

0000 0001

Returns
0x01

Definition at line 1684 of file ov7670.h.

◆ OV7670_HSYSN_ADDRESS

uint8_t OV7670_HSYSN_ADDRESS = 0x31
static

HSYNC Falling Edge Delay (low 8 bits)

Returns
0x31

Definition at line 676 of file ov7670.h.

◆ OV7670_HSYST_ADDRESS

uint8_t OV7670_HSYST_ADDRESS = 0x30
static

HSYNC Rising Edge Delay (low 8 bits)

Returns
0x30

Definition at line 670 of file ov7670.h.

◆ OV7670_I2C

I2C_HandleTypeDef* OV7670_I2C

Functions and other variables!

Definition at line 13 of file ov7670.c.

◆ OV7670_LAEC_ADDRESS

uint8_t OV7670_LAEC_ADDRESS = 0x1F
static

LAEC register (Reserved)

Returns
0x1F

Definition at line 537 of file ov7670.h.

◆ OV7670_LCC1_ADDRESS

uint8_t OV7670_LCC1_ADDRESS = 0x62
static

Lens Correction Option 1.

X Coordinate of Lens Correction Center Relative to Array Center

Returns
0x62

Definition at line 922 of file ov7670.h.

◆ OV7670_LCC2_ADDRESS

uint8_t OV7670_LCC2_ADDRESS = 0x63
static

Lens Correction Option 2.

Y Coordinate of Lens Correction Center Relative to Array Center

Returns
0x63

Definition at line 930 of file ov7670.h.

◆ OV7670_LCC3_ADDRESS

uint8_t OV7670_LCC3_ADDRESS = 0x64
static

Lens Correction Option 3.

G Channel Compensation Coefficient when LCC5[2] (0x66) is 1 R, G, and B Channel Compensation Coefficient when LCC5[2] (0x66) is 0

Returns
0x64

Definition at line 939 of file ov7670.h.

◆ OV7670_LCC4_ADDRESS

uint8_t OV7670_LCC4_ADDRESS = 0x65
static

Lens Correction Option 4.

Radius of the circular section where no compensation applies

Returns
0x65

Definition at line 947 of file ov7670.h.

◆ OV7670_LCC5_ADDRESS

uint8_t OV7670_LCC5_ADDRESS = 0x66
static

Lens Correction Control.

Lens Correction Control Bit[7:3]: Reserved Bit[2]: Lens correction control select 0: R, G, and B channel compensation coefficient is set by register LCC3 1: R, G, and B channel compensation coefficient is set by registers LCC6, LCC3, and LCC7, respectively Bit[1]: Reserved Bit[0]: Lens correction enable 0: Disable 1: Enable

Returns
0x66

Definition at line 964 of file ov7670.h.

◆ OV7670_LCC6_ADDRESS

uint8_t OV7670_LCC6_ADDRESS = 0x94
static

Lens Correction Option 6 (effective only when LCC5[2] is high)

Returns
0x94

Definition at line 1345 of file ov7670.h.

◆ OV7670_LCC7_ADDRESS

uint8_t OV7670_LCC7_ADDRESS = 0x95
static

Lens Correction Option 7 (effective only when LCC5[2] is high)

Returns
0x95

Definition at line 1351 of file ov7670.h.

◆ OV7670_MANU_ADDRESS

uint8_t OV7670_MANU_ADDRESS = 0x67
static

Manual U Value (effective only when register TSLB[4] is high)

Returns
0x67

Definition at line 970 of file ov7670.h.

◆ OV7670_MANV_ADDRESS

uint8_t OV7670_MANV_ADDRESS = 0x68
static

Manual V Value (effective only when register TSLB[4] is high)

Returns
0x68

Definition at line 976 of file ov7670.h.

◆ OV7670_MIDH_ADDRESS

uint8_t OV7670_MIDH_ADDRESS = 0x1C
static

Manufacturer ID Byte (High) (Read only = 0x7F)

Returns
0x1C

Definition at line 508 of file ov7670.h.

◆ OV7670_MIDL_ADDRESS

uint8_t OV7670_MIDL_ADDRESS = 0x1D
static

Manufacturer ID Byte (Low) (Read only = 0xA2)

Returns
0x1D

Definition at line 514 of file ov7670.h.

◆ OV7670_MTX1_ADDRESS

uint8_t OV7670_MTX1_ADDRESS = 0x4F
static

Matrix Coefficient 1.

Returns
0x4F

Definition at line 836 of file ov7670.h.

◆ OV7670_MTX1_RESET_VALUE

uint8_t OV7670_MTX1_RESET_VALUE = 0x80
static

MTX1 reset.

1000 0000

Returns
0x80

Definition at line 2300 of file ov7670.h.

◆ OV7670_MTX2_ADDRESS

uint8_t OV7670_MTX2_ADDRESS = 0x50
static

Matrix Coefficient 2.

Returns
0x50

Definition at line 842 of file ov7670.h.

◆ OV7670_MTX2_RESET_VALUE

uint8_t OV7670_MTX2_RESET_VALUE = 0x80
static

MTX2 reset.

1000 0000

Returns
0x80

Definition at line 2307 of file ov7670.h.

◆ OV7670_MTX3_ADDRESS

uint8_t OV7670_MTX3_ADDRESS = 0x51
static

Matrix Coefficient 3.

Returns
0x51

Definition at line 848 of file ov7670.h.

◆ OV7670_MTX3_RESET_VALUE

uint8_t OV7670_MTX3_RESET_VALUE = 0x0
static

MTX3 reset.

0000 0000

Returns
0x0

Definition at line 2314 of file ov7670.h.

◆ OV7670_MTX4_ADDRESS

uint8_t OV7670_MTX4_ADDRESS = 0x52
static

Matrix Coefficient 4.

Returns
0x52

Definition at line 854 of file ov7670.h.

◆ OV7670_MTX4_RESET_VALUE

uint8_t OV7670_MTX4_RESET_VALUE = 0x22
static

MTX4 reset.

0010 0010

Returns
0x22

Definition at line 2321 of file ov7670.h.

◆ OV7670_MTX5_ADDRESS

uint8_t OV7670_MTX5_ADDRESS = 0x53
static

Matrix Coefficient 5.

Returns
0x53

Definition at line 860 of file ov7670.h.

◆ OV7670_MTX5_RESET_VALUE

uint8_t OV7670_MTX5_RESET_VALUE = 0x5E
static

MTX5 reset.

0101 1110

Returns
0x5E

Definition at line 2328 of file ov7670.h.

◆ OV7670_MTX6_ADDRESS

uint8_t OV7670_MTX6_ADDRESS = 0x54
static

Matrix Coefficient 6.

Returns
0x54

Definition at line 866 of file ov7670.h.

◆ OV7670_MTX6_RESET_VALUE

uint8_t OV7670_MTX6_RESET_VALUE = 0x80
static

MTX6 reset.

1000 0000

Returns
0x80

Definition at line 2335 of file ov7670.h.

◆ OV7670_MTXS_ADDRESS

uint8_t OV7670_MTXS_ADDRESS = 0x58
static

Matrix Coefficient Sign register.

Matrix Coefficient Sign for coefficient 5 to 0 Bit[7]: Auto contrast center enable 0: Disable, center is set by register CONTRAS-CENTER (0x57) 1: Enable, register CONTRAS-CENTER is updated automatically Bit[6]: Reserved Bit[5:0]: Matrix coefficient sign 0: Plus 1: Minus

Returns
0x58

Definition at line 900 of file ov7670.h.

◆ OV7670_MTXS_RESET_VALUE

uint8_t OV7670_MTXS_RESET_VALUE = 0x9E
static

MTXS reset.

1001 1110

Returns
0x9E

Definition at line 2342 of file ov7670.h.

◆ OV7670_MVFP_ADDRESS

uint8_t OV7670_MVFP_ADDRESS = 0x1E
static

Mirror/VFlip image register.

Mirror/VFlip Enable Bit[7:6]: Reserved Bit[5]: Mirror 0: Normal image 1: Mirror image Bit[4]: VFlip enable 0: Normal image 1 : Vertically flip image Bit[3]: Reserved Bit[2]: Black sun enable Bit[1:0]: Reserved

Returns
0x1E

Definition at line 531 of file ov7670.h.

◆ OV7670_MVFP_RESET_VALUE

uint8_t OV7670_MVFP_RESET_VALUE = 0x07
static

MVFP reset.

0000 0111

Returns
0x07

Definition at line 1985 of file ov7670.h.

◆ OV7670_NT_CTRL_ADDRESS

uint8_t OV7670_NT_CTRL_ADDRESS = 0xA4
static

NT_CTRL register.

NT_CTRL register Bit[7:4]: Reserved Bit[3]: Auto frame rate adjustment dummy row selection 0: N is equal to the maximum exposure, time less than frame period when banding filter is enabled 1: N is equal to the number of rows per frame Bit[2]: Reserved Bit[1:0]: Auto frame rate adjustment switch point 00: Insert dummy row at 2x gain 01: Insert dummy row at 4x gain 10: Insert dummy row at 8x gain

Returns
0xA4

Definition at line 1426 of file ov7670.h.

◆ OV7670_NT_CTRL_RESET_VALUE

uint8_t OV7670_NT_CTRL_RESET_VALUE = 0x88
static

NT_CTRL reset.

1000 1000

Returns
0x88

Definition at line 2426 of file ov7670.h.

◆ OV7670_OFON_ADDRESS

uint8_t OV7670_OFON_ADDRESS = 0x39
static

ADC Offset Control.

Returns
0x39

Definition at line 724 of file ov7670.h.

◆ OV7670_OFON_RESET_VALUE

uint8_t OV7670_OFON_RESET_VALUE = 0x2A
static

OFON reset.

0010 1010

Returns
0x2A

Definition at line 2034 of file ov7670.h.

◆ OV7670_PID_ADDRESS

uint8_t OV7670_PID_ADDRESS = 0x0A
static

Product ID Number MSB (Read only)

Returns
0x0A

Definition at line 427 of file ov7670.h.

◆ OV7670_PSHIFT_ADDRESS

uint8_t OV7670_PSHIFT_ADDRESS = 0x1B
static

Pixel delay shift register.

Data Format - Pixel Delay Select (delays timing of the D[7:0] data relative to HREF in pixel units) • Range: [00] (no delay) to [FF] (256 pixel delay which accounts for whole array)

Returns
0x1B

Definition at line 502 of file ov7670.h.

◆ OV7670_RAVE_ADDRESS

uint8_t OV7670_RAVE_ADDRESS = 0x08
static

V/R Average Level.

V/R Average Level Automatically updated based on chip output format

Returns
0x08

Definition at line 421 of file ov7670.h.

◆ OV7670_RBIAS_ADDRESS

uint8_t OV7670_RBIAS_ADDRESS = 0x2C
static

R Channel Signal Output Bias.

R Channel Signal Output Bias (effective only when COM6[3] = 1) Bit[7]: Bias adjustment sign 0: Add bias 1: Subtract bias Bit[6:0]: Bias value of 10-bit range

Definition at line 646 of file ov7670.h.

◆ OV7670_READ_ADDRESS

uint8_t OV7670_READ_ADDRESS = 0x43
static

SCCB camera read slave address.

Returns
0x43

Definition at line 26 of file ov7670.h.

◆ OV7670_RED_GAIN_ADDRESS

uint8_t OV7670_RED_GAIN_ADDRESS = 0x02
static

Red channel gain settings.

AWB – Red channel gain setting • Range: [00] to [FF]

Returns
0x02

Definition at line 376 of file ov7670.h.

◆ OV7670_RED_GAIN_RESET_VALUE

uint8_t OV7670_RED_GAIN_RESET_VALUE = 0x60
static

RED Gain reset.

0110 0000

Returns
0x60

Definition at line 2286 of file ov7670.h.

◆ OV7670_REG4B_ADDRESS

uint8_t OV7670_REG4B_ADDRESS = 0x4B
static

Register 4B.

Register 4B Bit[7:1]: Reserved Bit[0]: UV average enable

Returns
0x4B

Definition at line 817 of file ov7670.h.

◆ OV7670_REG4B_RESET_VALUE

uint8_t OV7670_REG4B_RESET_VALUE = 0x09
static

REG4B reset.

0000 1001

Returns
0x09

Definition at line 2398 of file ov7670.h.

◆ OV7670_REG74_ADDRESS

uint8_t OV7670_REG74_ADDRESS = 0x74
static

Register 74.

REG74 Bit[7:5]: Reserved Bit[4]: Digital gain control select 0: Digital gain control by VREF[7:6] 1: Digital gain control by REG74[1:0] Bit[3:2]: Reserved Bit[1:0]: Digital gain manual control 00: Bypass 01: 1x 10: 2x 11: 4x

Returns
0x74

Definition at line 1144 of file ov7670.h.

◆ OV7670_REG74_RESET_VALUE

uint8_t OV7670_REG74_RESET_VALUE = 0x10
static

REG74 reset.

0001 0000

Returns
0x10

Definition at line 2076 of file ov7670.h.

◆ OV7670_REG75_ADDRESS

uint8_t OV7670_REG75_ADDRESS = 0x75
static

Register 75.

REG75 Bit[7:5]: Reserved Bit[4:0]: Edge enhancement lower limit

Returns
0x75

Definition at line 1153 of file ov7670.h.

◆ OV7670_REG75_RESET_VALUE

uint8_t OV7670_REG75_RESET_VALUE = 0x05
static

REG75 reset.

0000 0101

Returns
0x05

Definition at line 2363 of file ov7670.h.

◆ OV7670_REG76_ADDRESS

uint8_t OV7670_REG76_ADDRESS = 0x76
static

Register 76.

REG76 Bit[7]: Reserved Bit[6]: White pixel correction enable 0: Disable 1: Enable Bit[5]: Black pixel correction enable 0: Disable 1: Enable Bit[4:0]: Edge enhancement higher limit

Returns
0x76

Definition at line 1168 of file ov7670.h.

◆ OV7670_REG76_RESET_VALUE

uint8_t OV7670_REG76_RESET_VALUE = 0xE1
static

REG76 reset.

1110 0001

Returns
0xE1

Definition at line 2370 of file ov7670.h.

◆ OV7670_REG77_ADDRESS

uint8_t OV7670_REG77_ADDRESS = 0x77
static

Register 77.

REG77 Bit[7:0]: Offset, de-noise range control

Returns
0x77

Definition at line 1176 of file ov7670.h.

◆ OV7670_REG77_RESET_VALUE

uint8_t OV7670_REG77_RESET_VALUE = 0x01
static

REG77 reset.

0000 0001

Returns
0x01

Definition at line 2384 of file ov7670.h.

◆ OV7670_RGB444_ADDRESS

uint8_t OV7670_RGB444_ADDRESS = 0x8C
static

RGB444 register.

RGB444 register Bit[7:2]: Reserved Bit[1]: RGB444 enable, effective only when COM15[4] is high 0: Disable 1: Enable Bit[0]: RGB444 word format 0: xR GB 1: RG Bx

Returns
0x8C

Definition at line 1317 of file ov7670.h.

◆ OV7670_RSVD_16_ADDRESS

uint8_t OV7670_RSVD_16_ADDRESS = 0x16
static

Reserved register (RSVD)

Returns
0x16

Definition at line 460 of file ov7670.h.

◆ OV7670_RSVD_16_RESET_VALUE

uint8_t OV7670_RSVD_16_RESET_VALUE = 0x02
static

RSVD reset.

0000 0010

Returns
0x02

Definition at line 1978 of file ov7670.h.

◆ OV7670_RSVD_29_ADDRESS

uint8_t OV7670_RSVD_29_ADDRESS = 0x29
static

RSVD (Reserved)

Returns
0x29

Definition at line 619 of file ov7670.h.

◆ OV7670_RSVD_29_RESET_VALUE

uint8_t OV7670_RSVD_29_RESET_VALUE = 0x07
static

RSVD reset.

0000 0111

Returns
0x07

Definition at line 1999 of file ov7670.h.

◆ OV7670_RSVD_35_ADDRESS

uint8_t OV7670_RSVD_35_ADDRESS = 0x35
static

Reserved 2.

Returns
0x35-0x36

Definition at line 705 of file ov7670.h.

◆ OV7670_RSVD_35_RESET_VALUE

uint8_t OV7670_RSVD_35_RESET_VALUE = 0x0B
static

RSVD reset.

0000 1011

Returns
0x0B

Definition at line 2013 of file ov7670.h.

◆ OV7670_RSVD_36_ADDRESS

uint8_t OV7670_RSVD_36_ADDRESS = 0x36
static

Definition at line 706 of file ov7670.h.

◆ OV7670_RSVD_49_ADDRESS

uint8_t OV7670_RSVD_49_ADDRESS = 0x49
static

Reserved register 0x49-0x4A.

Returns
0x49-0x4A

Definition at line 807 of file ov7670.h.

◆ OV7670_RSVD_4A_ADDRESS

uint8_t OV7670_RSVD_4A_ADDRESS = 0x4A
static

Definition at line 808 of file ov7670.h.

◆ OV7670_RSVD_4D_ADDRESS

uint8_t OV7670_RSVD_4D_ADDRESS = 0x4D
static

Reserved register 0x4D-0x4E.

Returns
0x4D

Definition at line 829 of file ov7670.h.

◆ OV7670_RSVD_4D_RESET_VALUE

uint8_t OV7670_RSVD_4D_RESET_VALUE = 0x40
static

RSVD reset.

0100 0000

Returns
0x40

Definition at line 2048 of file ov7670.h.

◆ OV7670_RSVD_4E_ADDRESS

uint8_t OV7670_RSVD_4E_ADDRESS = 0x4E
static

Definition at line 830 of file ov7670.h.

◆ OV7670_RSVD_4E_RESET_VALUE

uint8_t OV7670_RSVD_4E_RESET_VALUE = 0x20
static

RSVD reset.

0010 0000

Returns
0x20

Definition at line 2055 of file ov7670.h.

◆ OV7670_RSVD_59_ADDRESS

uint8_t OV7670_RSVD_59_ADDRESS = 0x59
static

RSVD (Reserved)

Returns
0x59-0x61

Definition at line 906 of file ov7670.h.

◆ OV7670_RSVD_59_RESET_VALUE

uint8_t OV7670_RSVD_59_RESET_VALUE = 0x88
static

RSVD reset.

1000 1000

Returns
0x88

Definition at line 2202 of file ov7670.h.

◆ OV7670_RSVD_5A_ADDRESS

uint8_t OV7670_RSVD_5A_ADDRESS = 0x5A
static

Definition at line 907 of file ov7670.h.

◆ OV7670_RSVD_5A_RESET_VALUE

uint8_t OV7670_RSVD_5A_RESET_VALUE = 0x88
static

RSVD reset.

1000 1000

Returns
0x88

Definition at line 2209 of file ov7670.h.

◆ OV7670_RSVD_5B_ADDRESS

uint8_t OV7670_RSVD_5B_ADDRESS = 0x5B
static

Definition at line 908 of file ov7670.h.

◆ OV7670_RSVD_5B_RESET_VALUE

uint8_t OV7670_RSVD_5B_RESET_VALUE = 0x44
static

RSVD reset.

0100 0100

Returns
0x44

Definition at line 2216 of file ov7670.h.

◆ OV7670_RSVD_5C_ADDRESS

uint8_t OV7670_RSVD_5C_ADDRESS = 0x5C
static

Definition at line 909 of file ov7670.h.

◆ OV7670_RSVD_5C_RESET_VALUE

uint8_t OV7670_RSVD_5C_RESET_VALUE = 0x67
static

RSVD reset.

0110 0111

Returns
0x67

Definition at line 2223 of file ov7670.h.

◆ OV7670_RSVD_5D_ADDRESS

uint8_t OV7670_RSVD_5D_ADDRESS = 0x5D
static

Definition at line 910 of file ov7670.h.

◆ OV7670_RSVD_5D_RESET_VALUE

uint8_t OV7670_RSVD_5D_RESET_VALUE = 0x49
static

RSVD reset.

0100 1001

Returns
0x49

Definition at line 2230 of file ov7670.h.

◆ OV7670_RSVD_5E_ADDRESS

uint8_t OV7670_RSVD_5E_ADDRESS = 0x5E
static

Definition at line 911 of file ov7670.h.

◆ OV7670_RSVD_5E_RESET_VALUE

uint8_t OV7670_RSVD_5E_RESET_VALUE = 0x0E
static

RSVD reset.

0000 1110

Returns
0x0E

Definition at line 2237 of file ov7670.h.

◆ OV7670_RSVD_5F_ADDRESS

uint8_t OV7670_RSVD_5F_ADDRESS = 0x5F
static

Definition at line 912 of file ov7670.h.

◆ OV7670_RSVD_60_ADDRESS

uint8_t OV7670_RSVD_60_ADDRESS = 0x60
static

Definition at line 913 of file ov7670.h.

◆ OV7670_RSVD_61_ADDRESS

uint8_t OV7670_RSVD_61_ADDRESS = 0x61
static

Definition at line 914 of file ov7670.h.

◆ OV7670_RSVD_78_ADDRESS

uint8_t OV7670_RSVD_78_ADDRESS = 0x78
static

RSVD (Reserved)

Returns
0x78-0x79

Definition at line 1182 of file ov7670.h.

◆ OV7670_RSVD_78_RESET_VALUE

uint8_t OV7670_RSVD_78_RESET_VALUE = 0x04
static

RSVD reset.

0000 0100

Returns
0x04

Definition at line 2496 of file ov7670.h.

◆ OV7670_RSVD_79_ADDRESS

uint8_t OV7670_RSVD_79_ADDRESS = 0x79
static

Definition at line 1183 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_EIGHT

uint8_t OV7670_RSVD_79_RESET_VALUE_EIGHT = 0x09
static

RSVD reset.

0000 1001

Returns
0x09

Definition at line 2601 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_ELEVEN

uint8_t OV7670_RSVD_79_RESET_VALUE_ELEVEN = 0x05
static

RSVD reset.

0000 0101

Returns
0x05

Definition at line 2643 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_FINAL

uint8_t OV7670_RSVD_79_RESET_VALUE_FINAL = 0x26
static

RSVD reset.

0010 0110

Returns
0x26

Definition at line 2657 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_FIVE

uint8_t OV7670_RSVD_79_RESET_VALUE_FIVE = 0x0B
static

RSVD reset.

0000 1011

Returns
0x0B

Definition at line 2559 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_FOUR

uint8_t OV7670_RSVD_79_RESET_VALUE_FOUR = 0x0A
static

RSVD reset.

0001 1010

Returns
0x0A

Definition at line 2545 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_NINE

uint8_t OV7670_RSVD_79_RESET_VALUE_NINE = 0x02
static

RSVD reset.

0000 0010

Returns
0x02

Definition at line 2615 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_ONE

uint8_t OV7670_RSVD_79_RESET_VALUE_ONE = 0x01
static

RSVD reset.

0000 0001

Returns
0x01

Definition at line 2503 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_SEVEN

uint8_t OV7670_RSVD_79_RESET_VALUE_SEVEN = 0x0D
static

RSVD reset.

0000 1101

Returns
0x0D

Definition at line 2587 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_SIX

uint8_t OV7670_RSVD_79_RESET_VALUE_SIX = 0x0C
static

RSVD reset.

0000 1100

Returns
0x0C

Definition at line 2573 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_TEN

uint8_t OV7670_RSVD_79_RESET_VALUE_TEN = 0x03
static

RSVD reset.

0000 0011

Returns
0x03

Definition at line 2629 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_THREE

uint8_t OV7670_RSVD_79_RESET_VALUE_THREE = 0x10
static

RSVD reset.

0001 0000

Returns
0x10

Definition at line 2531 of file ov7670.h.

◆ OV7670_RSVD_79_RESET_VALUE_TWO

uint8_t OV7670_RSVD_79_RESET_VALUE_TWO = 0x0F
static

RSVD reset.

0000 1111

Returns
0x0F

Definition at line 2517 of file ov7670.h.

◆ OV7670_RSVD_8A_ADDRESS

uint8_t OV7670_RSVD_8A_ADDRESS = 0x8A
static

RSVD (Reserved)

Returns
0x8A-0x8B

Definition at line 1302 of file ov7670.h.

◆ OV7670_RSVD_8B_ADDRESS

uint8_t OV7670_RSVD_8B_ADDRESS = 0x8B
static

Definition at line 1303 of file ov7670.h.

◆ OV7670_RSVD_8D_ADDRESS

uint8_t OV7670_RSVD_8D_ADDRESS = 0x8D
static

RSVD (Reserved)

Returns
0x8D-0x91

Definition at line 1323 of file ov7670.h.

◆ OV7670_RSVD_8D_RESET_VALUE

uint8_t OV7670_RSVD_8D_RESET_VALUE = 0x4F
static

RSVD reset.

0100 1111

Returns
0x4F

Definition at line 2083 of file ov7670.h.

◆ OV7670_RSVD_8E_ADDRESS

uint8_t OV7670_RSVD_8E_ADDRESS = 0x8E
static

Definition at line 1324 of file ov7670.h.

◆ OV7670_RSVD_8E_RESET_VALUE

uint8_t OV7670_RSVD_8E_RESET_VALUE = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2090 of file ov7670.h.

◆ OV7670_RSVD_8F_ADDRESS

uint8_t OV7670_RSVD_8F_ADDRESS = 0x8F
static

Definition at line 1325 of file ov7670.h.

◆ OV7670_RSVD_8F_RESET_VALUE

uint8_t OV7670_RSVD_8F_RESET_VALUE = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2097 of file ov7670.h.

◆ OV7670_RSVD_90_ADDRESS

uint8_t OV7670_RSVD_90_ADDRESS = 0x90
static

Definition at line 1326 of file ov7670.h.

◆ OV7670_RSVD_90_RESET_VALUE

uint8_t OV7670_RSVD_90_RESET_VALUE = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2104 of file ov7670.h.

◆ OV7670_RSVD_91_ADDRESS

uint8_t OV7670_RSVD_91_ADDRESS = 0x91
static

Definition at line 1327 of file ov7670.h.

◆ OV7670_RSVD_91_RESET_VALUE

uint8_t OV7670_RSVD_91_RESET_VALUE = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2111 of file ov7670.h.

◆ OV7670_RSVD_96_ADDRESS

uint8_t OV7670_RSVD_96_ADDRESS = 0x96
static

RSVD (Reserved)

Returns
0x96-0x9C

Definition at line 1357 of file ov7670.h.

◆ OV7670_RSVD_96_RESET_VALUE_ONE

uint8_t OV7670_RSVD_96_RESET_VALUE_ONE = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2118 of file ov7670.h.

◆ OV7670_RSVD_96_RESET_VALUE_TWO

uint8_t OV7670_RSVD_96_RESET_VALUE_TWO = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2433 of file ov7670.h.

◆ OV7670_RSVD_97_ADDRESS

uint8_t OV7670_RSVD_97_ADDRESS = 0x97
static

Definition at line 1358 of file ov7670.h.

◆ OV7670_RSVD_97_RESET_VALUE

uint8_t OV7670_RSVD_97_RESET_VALUE = 0x30
static

RSVD reset.

0011 0000

Returns
0x30

Definition at line 2440 of file ov7670.h.

◆ OV7670_RSVD_98_ADDRESS

uint8_t OV7670_RSVD_98_ADDRESS = 0x98
static

Definition at line 1359 of file ov7670.h.

◆ OV7670_RSVD_98_RESET_VALUE

uint8_t OV7670_RSVD_98_RESET_VALUE = 0x20
static

RSVD reset.

0020 0000

Returns
0x20

Definition at line 2447 of file ov7670.h.

◆ OV7670_RSVD_99_ADDRESS

uint8_t OV7670_RSVD_99_ADDRESS = 0x99
static

Definition at line 1360 of file ov7670.h.

◆ OV7670_RSVD_99_RESET_VALUE

uint8_t OV7670_RSVD_99_RESET_VALUE = 0x30
static

RSVD reset.

0011 0000

Returns
0x30

Definition at line 2454 of file ov7670.h.

◆ OV7670_RSVD_9A_ADDRESS

uint8_t OV7670_RSVD_9A_ADDRESS = 0x9A
static

Definition at line 1361 of file ov7670.h.

◆ OV7670_RSVD_9A_RESET_VALUE_ONE

uint8_t OV7670_RSVD_9A_RESET_VALUE_ONE = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2125 of file ov7670.h.

◆ OV7670_RSVD_9A_RESET_VALUE_TWO

uint8_t OV7670_RSVD_9A_RESET_VALUE_TWO = 0x84
static

RSVD reset.

1000 0100

Returns
0x84

Definition at line 2461 of file ov7670.h.

◆ OV7670_RSVD_9B_ADDRESS

uint8_t OV7670_RSVD_9B_ADDRESS = 0x9B
static

Definition at line 1362 of file ov7670.h.

◆ OV7670_RSVD_9B_RESET_VALUE

uint8_t OV7670_RSVD_9B_RESET_VALUE = 0x29
static

RSVD reset.

0010 1001

Returns
0x29

Definition at line 2468 of file ov7670.h.

◆ OV7670_RSVD_9C_ADDRESS

uint8_t OV7670_RSVD_9C_ADDRESS = 0x9C
static

Definition at line 1363 of file ov7670.h.

◆ OV7670_RSVD_9C_RESET_VALUE

uint8_t OV7670_RSVD_9C_RESET_VALUE = 0x03
static

RSVD reset.

0000 0011

Returns
0x03

Definition at line 2475 of file ov7670.h.

◆ OV7670_RSVD_A1_ADDRESS

uint8_t OV7670_RSVD_A1_ADDRESS = 0xA1
static

RSVD (Reserved)

Returns
0xA1

Definition at line 1397 of file ov7670.h.

◆ OV7670_RSVD_A1_RESET_VALUE

uint8_t OV7670_RSVD_A1_RESET_VALUE = 0x03
static

Reserved magic again.

0000 0011

Returns
0x03

Definition at line 1922 of file ov7670.h.

◆ OV7670_RSVD_A3_ADDRESS

uint8_t OV7670_RSVD_A3_ADDRESS = 0xA3
static

RSVD (Reserved)

Returns
0xA3

Definition at line 1409 of file ov7670.h.

◆ OV7670_RSVD_B0_ADDRESS

uint8_t OV7670_RSVD_B0_ADDRESS = 0xB0
static

RSVD (Reserved)

Returns
0xB0

Definition at line 1512 of file ov7670.h.

◆ OV7670_RSVD_B0_RESET_VALUE

uint8_t OV7670_RSVD_B0_RESET_VALUE = 0x84
static

RSVD reset.

1000 0100

Returns
0x84

Definition at line 2132 of file ov7670.h.

◆ OV7670_RSVD_B2_ADDRESS

uint8_t OV7670_RSVD_B2_ADDRESS = 0xB2
static

RSVD (Reserved)

Returns
0xB2

Definition at line 1530 of file ov7670.h.

◆ OV7670_RSVD_B2_RESET_VALUE

uint8_t OV7670_RSVD_B2_RESET_VALUE = 0x0E
static

RSVD reset.

0000 1110

Returns
0x0E

Definition at line 2146 of file ov7670.h.

◆ OV7670_RSVD_B4_ADDRESS

uint8_t OV7670_RSVD_B4_ADDRESS = 0xB4
static

RSVD (Reserved)

Returns
0xB4

Definition at line 1542 of file ov7670.h.

◆ OV7670_RSVD_B6_ADDRESS

uint8_t OV7670_RSVD_B6_ADDRESS = 0xB6
static

RSVD (Reserved)

Returns
0xB6-0xBD

Definition at line 1554 of file ov7670.h.

◆ OV7670_RSVD_B7_ADDRESS

uint8_t OV7670_RSVD_B7_ADDRESS = 0xB7
static

Definition at line 1555 of file ov7670.h.

◆ OV7670_RSVD_B8_ADDRESS

uint8_t OV7670_RSVD_B8_ADDRESS = 0xB8
static

Definition at line 1556 of file ov7670.h.

◆ OV7670_RSVD_B8_RESET_VALUE

uint8_t OV7670_RSVD_B8_RESET_VALUE = 0x0A
static

RSVD reset.

0000 1010

Returns
0x0A

Definition at line 2160 of file ov7670.h.

◆ OV7670_RSVD_B9_ADDRESS

uint8_t OV7670_RSVD_B9_ADDRESS = 0xB9
static

Definition at line 1557 of file ov7670.h.

◆ OV7670_RSVD_BA_ADDRESS

uint8_t OV7670_RSVD_BA_ADDRESS = 0xBA
static

Definition at line 1558 of file ov7670.h.

◆ OV7670_RSVD_BB_ADDRESS

uint8_t OV7670_RSVD_BB_ADDRESS = 0xBB
static

Definition at line 1559 of file ov7670.h.

◆ OV7670_RSVD_BC_ADDRESS

uint8_t OV7670_RSVD_BC_ADDRESS = 0xBC
static

Definition at line 1560 of file ov7670.h.

◆ OV7670_RSVD_BD_ADDRESS

uint8_t OV7670_RSVD_BD_ADDRESS = 0xBD
static

Definition at line 1561 of file ov7670.h.

◆ OV7670_RSVD_C2_ADDRESS

uint8_t OV7670_RSVD_C2_ADDRESS = 0xC2
static

RSVD (Reserved)

Returns
0xC2-0xC8

Definition at line 1607 of file ov7670.h.

◆ OV7670_RSVD_C3_ADDRESS

uint8_t OV7670_RSVD_C3_ADDRESS = 0xC3
static

Definition at line 1608 of file ov7670.h.

◆ OV7670_RSVD_C4_ADDRESS

uint8_t OV7670_RSVD_C4_ADDRESS = 0xC4
static

Definition at line 1609 of file ov7670.h.

◆ OV7670_RSVD_C5_ADDRESS

uint8_t OV7670_RSVD_C5_ADDRESS = 0xC5
static

Definition at line 1610 of file ov7670.h.

◆ OV7670_RSVD_C6_ADDRESS

uint8_t OV7670_RSVD_C6_ADDRESS = 0xC6
static

Definition at line 1611 of file ov7670.h.

◆ OV7670_RSVD_C7_ADDRESS

uint8_t OV7670_RSVD_C7_ADDRESS = 0xC7
static

Definition at line 1612 of file ov7670.h.

◆ OV7670_RSVD_C8_ADDRESS

uint8_t OV7670_RSVD_C8_ADDRESS = 0xC8
static

Definition at line 1613 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_EIGHT

uint8_t OV7670_RSVD_C8_RESET_VALUE_EIGHT = 0x80
static

RSVD reset.

1000 0000

Returns
0x80

Definition at line 2608 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_ELEVEN

uint8_t OV7670_RSVD_C8_RESET_VALUE_ELEVEN = 0x30
static

RSVD reset.

0011 0000

Returns
0x30

Definition at line 2650 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_FIVE

uint8_t OV7670_RSVD_C8_RESET_VALUE_FIVE = 0x01
static

RSVD reset.

0000 0001

Returns
0x01

Definition at line 2566 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_FOUR

uint8_t OV7670_RSVD_C8_RESET_VALUE_FOUR = 0x80
static

RSVD reset.

1000 0000

Returns
0x80

Definition at line 2552 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_NINE

uint8_t OV7670_RSVD_C8_RESET_VALUE_NINE = 0xC0
static

RSVD reset.

1100 0000

Returns
0xC0

Definition at line 2622 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_ONE

uint8_t OV7670_RSVD_C8_RESET_VALUE_ONE = 0xF0
static

RSVD reset.

1111 0000

Returns
0xF8

Definition at line 2510 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_SEVEN

uint8_t OV7670_RSVD_C8_RESET_VALUE_SEVEN = 0x20
static

RSVD reset.

0010 0000

Returns
0x20

Definition at line 2594 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_SIX

uint8_t OV7670_RSVD_C8_RESET_VALUE_SIX = 0x0F
static

RSVD reset.

0000 1111

Returns
0x0F

Definition at line 2580 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_TEN

uint8_t OV7670_RSVD_C8_RESET_VALUE_TEN = 0x40
static

RSVD reset.

0100 0000

Returns
0x40

Definition at line 2636 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_THREE

uint8_t OV7670_RSVD_C8_RESET_VALUE_THREE = 0x7E
static

RSVD reset.

0111 1110

Returns
0x7E

Definition at line 2538 of file ov7670.h.

◆ OV7670_RSVD_C8_RESET_VALUE_TWO

uint8_t OV7670_RSVD_C8_RESET_VALUE_TWO = 0x0
static

RSVD reset.

0000 0000

Returns
0x0

Definition at line 2524 of file ov7670.h.

◆ OV7670_SATCTR_ADDRESS

uint8_t OV7670_SATCTR_ADDRESS = 0xC9
static

Saturation Control register.

Saturation Control Bit[7:4]: UV saturation control minimum Bit[3:0]: UV saturation control result

Returns
0xC9

Definition at line 1622 of file ov7670.h.

◆ OV7670_SATCTR_RESET_VALUE

uint8_t OV7670_SATCTR_RESET_VALUE = 0x60
static

SATCTR reset.

0110 0000

Returns
0x60

Definition at line 2405 of file ov7670.h.

◆ OV7670_SCALING_DCWCTR_ADDRESS

uint8_t OV7670_SCALING_DCWCTR_ADDRESS = 0x72
static

DCW Control register.

DCW Control Bit[7]: Vertical average calculation option 0: Vertical truncation 1: Vertical rounding Bit[6]: Vertical down sampling option 0: Vertical truncation 1: Vertical rounding Bit[5:4]: Vertical down sampling rate 00: No vertical down sampling 01: Vertical down sample by 2 10: Vertical down sample by 4 11: Vertical down sample by 8 Bit[3]: Horizontal average calculation option 0: Horizontal truncation 1: Horizontal rounding Bit[2]: Horizontal down sampling option 0: Horizontal truncation 1: Horizontal rounding Bit[1:0]: Horizontal down sampling rate 00: No horizontal down sampling 01: Horizontal down sample by 2 10: Horizontal down sample by 4 11: Horizontal down sample by 8

Returns
0x72

Definition at line 1108 of file ov7670.h.

◆ OV7670_SCALING_PCLK_DELAY_ADDRESS

uint8_t OV7670_SCALING_PCLK_DELAY_ADDRESS = 0xA2
static

Pixel Clock Delay.

Returns
0xA2

Definition at line 1403 of file ov7670.h.

◆ OV7670_SCALING_PCLK_DIV_ADDRESS

uint8_t OV7670_SCALING_PCLK_DIV_ADDRESS = 0x73
static

SCALING_PCLK_DIV register.

SCALING_PCLK_DIV Bit[7:4]: Reserved Bit[3]: Bypass clock divider for DSP scale control 0: Enable clock divider 1: Bypass clock divider Bit[2:0]: Clock divider control for DSP scale control (valid only when COM14[3] = 1). Should change with COM14[2:0]. 000: Divided by 1 001: Divided by 2 010: Divided by 4 011: Divided by 8 100: Divided by 16 101~111: Not allowed

Returns
0x73

Definition at line 1127 of file ov7670.h.

◆ OV7670_SCALING_PCLK_DIV_RESET_VALUE

uint8_t OV7670_SCALING_PCLK_DIV_RESET_VALUE = 0xF0
static

SCALING_PCLK_DIV reset value.

1111 0000 , Reserved magic???

Returns
0xF0

Definition at line 1733 of file ov7670.h.

◆ OV7670_SCALING_XSC_ADDRESS

uint8_t OV7670_SCALING_XSC_ADDRESS = 0x70
static

SCALING_XSC register.

SCALING_XSC register Bit[7]: Test_pattern[0] - works with test_pattern[1] test_pattern (SCALING_XSC[7], SCALING_YSC[7]): 00: No test pattern output 01: Shifting "1" 10: 8-bar color bar 11: Fade to gray color bar Bit[6:0]: Horizontal scale factor

Returns
0x70

Definition at line 1065 of file ov7670.h.

◆ OV7670_SCALING_XSC_RESET_VALUE

uint8_t OV7670_SCALING_XSC_RESET_VALUE = 0x3A
static

SCALING_XSC reset value.

0011 1010 , Max horizontal scale factor, no test pattern output

Returns
0x3A

Definition at line 1726 of file ov7670.h.

◆ OV7670_SCALING_YSC_ADDRESS

uint8_t OV7670_SCALING_YSC_ADDRESS = 0x71
static

SCALING_YSC register.

SCALING_YSC register Bit[7]: Test_pattern[1] - works with test_pattern[0] test_pattern (SCALING_XSC[7], SCALING_YSC[7]): 00: No test pattern output 01: Shifting "1" 10: 8-bar color bar 11: Fade to gray color bar Bit[6:0]: Vertical scale factor

Returns
0x71

Definition at line 1079 of file ov7670.h.

◆ OV7670_SLOP_ADDRESS

uint8_t OV7670_SLOP_ADDRESS = 0x7A
static

SLOP register.

Gamma Curve Highest Segment Slop - calculated as follows: SLOP[7:0] = (0x100 - GAM15[7:0]) x 4/3

Returns
0x7A

Definition at line 1191 of file ov7670.h.

◆ OV7670_SLOP_RESET_VALUE

uint8_t OV7670_SLOP_RESET_VALUE = 0x20
static

SLOP , Gamma curve highest segment slop.

0010 0000

Returns
0x20

Definition at line 1740 of file ov7670.h.

◆ OV7670_STR_B_ADDRESS

uint8_t OV7670_STR_B_ADDRESS = 0xAF
static

B Gain for LED Output Frame.

Returns
0xAF

Definition at line 1506 of file ov7670.h.

◆ OV7670_STR_G_ADDRESS

uint8_t OV7670_STR_G_ADDRESS = 0xAE
static

G Gain for LED Output Frame.

Returns
0xAE

Definition at line 1500 of file ov7670.h.

◆ OV7670_STR_OPT_ADDRESS

uint8_t OV7670_STR_OPT_ADDRESS = 0xAC
static

STR-OPT register.

Register AC Bit[7]:Strobe enable Bit[6]: R / G / B gain controlled by STR_R (0xAD) / STR_G (0xAE) / STR_B (0xAF) for LED output frame Bit[5:4]: Xenon mode option 00: 1 row 01: 2 rows 10: 3 rows 11: 4 rows Bit[3:2]: Reserved Bit[1:0]: Mode select 00: Xenon 01: LED 1 1x: LED 2

Returns
0xAC

Definition at line 1488 of file ov7670.h.

◆ OV7670_STR_R_ADDRESS

uint8_t OV7670_STR_R_ADDRESS = 0xAD
static

R Gain for LED Output Frame.

Returns
0xAD

Definition at line 1494 of file ov7670.h.

◆ OV7670_THL_DLT_ADDRESS

uint8_t OV7670_THL_DLT_ADDRESS = 0xB5
static

ABLC Stable Range.

Returns
0xB5

Definition at line 1548 of file ov7670.h.

◆ OV7670_THL_ST_ADDRESS

uint8_t OV7670_THL_ST_ADDRESS = 0xB3
static

ABLC Target.

Returns
0xB3

Definition at line 1536 of file ov7670.h.

◆ OV7670_THL_ST_RESET_VALUE

uint8_t OV7670_THL_ST_RESET_VALUE = 0x82
static

THL_ST reset.

1000 0010

Returns
0x82

Definition at line 2153 of file ov7670.h.

◆ OV7670_TIMEOUT

uint32_t OV7670_TIMEOUT = 15
static

Timeout for whole driver coms.

Returns
15seconds

Definition at line 32 of file ov7670.h.

◆ OV7670_TSLB_ADDRESS

uint8_t OV7670_TSLB_ADDRESS = 0x3A
static

Line Buffer Test options register.

Line Buffer Test Option Bit[7:6]: Reserved Bit[5]: Negative image enable 0: Normal image 1: Negative image Bit[4]: UV output value 0: Use normal UV output 1: Use fixed UV value set in registers MANU and MANV as UV output instead of chip output Bit[3]: Output sequence (use with register COM13[1] (0x3D)) TSLB[3], COM13[1]: 00: Y U Y V 01: Y V Y U 10: U Y V Y 11: V Y U Y Bit[2:1]: Reserved Bit[0]: Auto output window 0: Sensor DOES NOT automatically set window after resolution change. The companion backend processor can adjust the output window immediately after changing the resolution

1: Sensor automatically sets output window when resolution changes. After resolution changes, the companion backend processor must adjust the output window after the next VSYNC pulse.

Returns
0x3A

Definition at line 756 of file ov7670.h.

◆ OV7670_TSLB_RESET_VALUE

uint8_t OV7670_TSLB_RESET_VALUE = 0x04
static

TSLB magic reserved bit.

0000 0100

Returns
0x04

Definition at line 1663 of file ov7670.h.

◆ OV7670_VER_ADDRESS

uint8_t OV7670_VER_ADDRESS = 0x0B
static

Product ID Number LSB (Read only)

Returns
0x0A

Definition at line 433 of file ov7670.h.

◆ OV7670_VPT_ADDRESS

uint8_t OV7670_VPT_ADDRESS = 0x26
static

AGC/AEC Fast Mode Operating Region.

AGC/AEC Fast Mode Operating Region Bit[7:4]: High nibble of upper limit of fast mode control zone Bit[3:0]: High nibble of lower limit of fast mode control zone

Returns
0x26

Definition at line 591 of file ov7670.h.

◆ OV7670_VPT_RESET_VALUE

uint8_t OV7670_VPT_RESET_VALUE = 0xE3
static

VPT reset.

1110 0011

Returns
0xE3

Definition at line 1901 of file ov7670.h.

◆ OV7670_VREF_ADDRESS

uint8_t OV7670_VREF_ADDRESS = 0x03
static

Vertical Frame Control (VREF) register.

Vertical Frame Control Bit[7:6]: AGC[9:8] (see GAIN[7:0] (0x00) for AGC[7:0]) Bit[5:4]: Reserved Bit[3:2]: VREF end low 2 bits (high 8 bits at VSTOP[7:0] Bit[1:0]: VREF start low 2 bits (high 8 bits at VSTRT[7:0]

Returns
0x03

Definition at line 387 of file ov7670.h.

◆ OV7670_VREF_RESET_VALUE

uint8_t OV7670_VREF_RESET_VALUE = 0x0A
static

VREF reset, start low 2 bits from VSTOP/START.

0000 1010

Returns
0x0A

Definition at line 1712 of file ov7670.h.

◆ OV7670_VSTART_ADDRESS

uint8_t OV7670_VSTART_ADDRESS = 0x19
static

Vertical frame start register.

Output Format - Vertical Frame (row) start high 8-bit ( low 2 bits are at VREF[1:0])

Returns
0x19

Definition at line 484 of file ov7670.h.

◆ OV7670_VSTART_RESET_VALUE

uint8_t OV7670_VSTART_RESET_VALUE = 0x02
static

VSTART reset.

0001 0010

Returns
0x02

Definition at line 1698 of file ov7670.h.

◆ OV7670_VSTOP_ADDRESS

uint8_t OV7670_VSTOP_ADDRESS = 0x1A
static

Vertical frame stop register.

Output Format - Vertical Frame (row) end high 8-bit ( low 2 bits are at VREF[3:2])

Returns
0x1A

Definition at line 492 of file ov7670.h.

◆ OV7670_VSTOP_RESET_VALUE

uint8_t OV7670_VSTOP_RESET_VALUE = 0x7A
static

VSTOP reset, this makes more sense compared to HSTOP.

0111 1010

Returns
0x7A

Definition at line 1705 of file ov7670.h.

◆ OV7670_WRITE_ADDRESS

uint8_t OV7670_WRITE_ADDRESS = 0x42
static

SCCB camera write slave address.

Returns
0x42

Definition at line 20 of file ov7670.h.

◆ OV7670_YAVE_ADDRESS

uint8_t OV7670_YAVE_ADDRESS = 0x2F
static

Y/G Channel Average Value.

Returns
0x2F

Definition at line 664 of file ov7670.h.