Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
ov9640.h File Reference

Go to the source code of this file.

Data Structures

struct  ov9640_reg_alt
 
struct  ov9640_reg
 
struct  ov9640_priv
 

Macros

#define OV9640_GAIN   0x00
 
#define OV9640_BLUE   0x01
 
#define OV9640_RED   0x02
 
#define OV9640_VFER   0x03
 
#define OV9640_COM1   0x04
 
#define OV9640_BAVE   0x05
 
#define OV9640_GEAVE   0x06
 
#define OV9640_RSID   0x07
 
#define OV9640_RAVE   0x08
 
#define OV9640_COM2   0x09
 
#define OV9640_PID   0x0a
 
#define OV9640_VER   0x0b
 
#define OV9640_COM3   0x0c
 
#define OV9640_COM4   0x0d
 
#define OV9640_COM5   0x0e
 
#define OV9640_COM6   0x0f
 
#define OV9640_AECH   0x10
 
#define OV9640_CLKRC   0x11
 
#define OV9640_COM7   0x12
 
#define OV9640_COM8   0x13
 
#define OV9640_COM9   0x14
 
#define OV9640_COM10   0x15
 
#define OV9640_HSTART   0x17
 
#define OV9640_HSTOP   0x18
 
#define OV9640_VSTART   0x19
 
#define OV9640_VSTOP   0x1a
 
#define OV9640_PSHFT   0x1b
 
#define OV9640_MIDH   0x1c
 
#define OV9640_MIDL   0x1d
 
#define OV9640_MVFP   0x1e
 
#define OV9640_LAEC   0x1f
 
#define OV9640_BOS   0x20
 
#define OV9640_GBOS   0x21
 
#define OV9640_GROS   0x22
 
#define OV9640_ROS   0x23
 
#define OV9640_AEW   0x24
 
#define OV9640_AEB   0x25
 
#define OV9640_VPT   0x26
 
#define OV9640_BBIAS   0x27
 
#define OV9640_GBBIAS   0x28
 
#define OV9640_EXHCH   0x2a
 
#define OV9640_EXHCL   0x2b
 
#define OV9640_RBIAS   0x2c
 
#define OV9640_ADVFL   0x2d
 
#define OV9640_ADVFH   0x2e
 
#define OV9640_YAVE   0x2f
 
#define OV9640_HSYST   0x30
 
#define OV9640_HSYEN   0x31
 
#define OV9640_HREF   0x32
 
#define OV9640_CHLF   0x33
 
#define OV9640_ARBLM   0x34
 
#define OV9640_ADC   0x37
 
#define OV9640_ACOM   0x38
 
#define OV9640_OFON   0x39
 
#define OV9640_TSLB   0x3a
 
#define OV9640_COM11   0x3b
 
#define OV9640_COM12   0x3c
 
#define OV9640_COM13   0x3d
 
#define OV9640_COM14   0x3e
 
#define OV9640_EDGE   0x3f
 
#define OV9640_COM15   0x40
 
#define OV9640_COM16   0x41
 
#define OV9640_COM17   0x42
 
#define OV9640_MTX1   0x4f
 
#define OV9640_MTX2   0x50
 
#define OV9640_MTX3   0x51
 
#define OV9640_MTX4   0x52
 
#define OV9640_MTX5   0x53
 
#define OV9640_MTX6   0x54
 
#define OV9640_MTX7   0x55
 
#define OV9640_MTX8   0x56
 
#define OV9640_MTX9   0x57
 
#define OV9640_MTXS   0x58
 
#define OV9640_LCC1   0x62
 
#define OV9640_LCC2   0x63
 
#define OV9640_LCC3   0x64
 
#define OV9640_LCC4   0x65
 
#define OV9640_LCC5   0x66
 
#define OV9640_MANU   0x67
 
#define OV9640_MANV   0x68
 
#define OV9640_HV   0x69
 
#define OV9640_MBD   0x6a
 
#define OV9640_DBLV   0x6b
 
#define OV9640_GSP   0x6c /* ... till 0x7b */
 
#define OV9640_GST   0x7c /* ... till 0x8a */
 
#define OV9640_CLKRC_DPLL_EN   0x80
 
#define OV9640_CLKRC_DIRECT   0x40
 
#define OV9640_CLKRC_DIV(x)   ((x) & 0x3f)
 
#define OV9640_PSHFT_VAL(x)   ((x) & 0xff)
 
#define OV9640_ACOM_2X_ANALOG   0x80
 
#define OV9640_ACOM_RSVD   0x12
 
#define OV9640_MVFP_V   0x10
 
#define OV9640_MVFP_H   0x20
 
#define OV9640_COM1_HREF_NOSKIP   0x00
 
#define OV9640_COM1_HREF_2SKIP   0x04
 
#define OV9640_COM1_HREF_3SKIP   0x08
 
#define OV9640_COM1_QQFMT   0x20
 
#define OV9640_COM2_SSM   0x10
 
#define OV9640_COM3_VP   0x04
 
#define OV9640_COM4_QQ_VP   0x80
 
#define OV9640_COM4_RSVD   0x40
 
#define OV9640_COM5_SYSCLK   0x80
 
#define OV9640_COM5_LONGEXP   0x01
 
#define OV9640_COM6_OPT_BLC   0x40
 
#define OV9640_COM6_ADBLC_BIAS   0x08
 
#define OV9640_COM6_FMT_RST   0x82
 
#define OV9640_COM6_ADBLC_OPTEN   0x01
 
#define OV9640_COM7_RAW_RGB   0x01
 
#define OV9640_COM7_RGB   0x04
 
#define OV9640_COM7_QCIF   0x08
 
#define OV9640_COM7_QVGA   0x10
 
#define OV9640_COM7_CIF   0x20
 
#define OV9640_COM7_VGA   0x40
 
#define OV9640_COM7_SCCB_RESET   0x80
 
#define OV9640_TSLB_YVYU_YUYV   0x04
 
#define OV9640_TSLB_YUYV_UYVY   0x08
 
#define OV9640_COM12_YUV_AVG   0x04
 
#define OV9640_COM12_RSVD   0x40
 
#define OV9640_COM13_GAMMA_NONE   0x00
 
#define OV9640_COM13_GAMMA_Y   0x40
 
#define OV9640_COM13_GAMMA_RAW   0x80
 
#define OV9640_COM13_RGB_AVG   0x20
 
#define OV9640_COM13_MATRIX_EN   0x10
 
#define OV9640_COM13_Y_DELAY_EN   0x08
 
#define OV9640_COM13_YUV_DLY(x)   ((x) & 0x07)
 
#define OV9640_COM15_OR_00FF   0x00
 
#define OV9640_COM15_OR_01FE   0x40
 
#define OV9640_COM15_OR_10F0   0xc0
 
#define OV9640_COM15_RGB_NORM   0x00
 
#define OV9640_COM15_RGB_565   0x10
 
#define OV9640_COM15_RGB_555   0x30
 
#define OV9640_COM16_RB_AVG   0x01
 
#define OV9640_V2   0x9648
 
#define OV9640_V3   0x9649
 
#define VERSION(pid, ver)   (((pid) << 8) | ((ver) & 0xFF))
 
#define H_SXGA   960
 

Enumerations

enum  {
  W_QQCIF = 88, W_QQVGA = 160, W_QCIF = 176, W_QVGA = 320,
  W_CIF = 352, W_VGA = 640, W_SXGA = 1280
}
 

Macro Definition Documentation

#define H_SXGA   960

Definition at line 184 of file ov9640.h.

#define OV9640_ACOM   0x38

Definition at line 70 of file ov9640.h.

#define OV9640_ACOM_2X_ANALOG   0x80

Definition at line 112 of file ov9640.h.

#define OV9640_ACOM_RSVD   0x12

Definition at line 113 of file ov9640.h.

#define OV9640_ADC   0x37

Definition at line 69 of file ov9640.h.

#define OV9640_ADVFH   0x2e

Definition at line 61 of file ov9640.h.

#define OV9640_ADVFL   0x2d

Definition at line 60 of file ov9640.h.

#define OV9640_AEB   0x25

Definition at line 52 of file ov9640.h.

#define OV9640_AECH   0x10

Definition at line 31 of file ov9640.h.

#define OV9640_AEW   0x24

Definition at line 51 of file ov9640.h.

#define OV9640_ARBLM   0x34

Definition at line 67 of file ov9640.h.

#define OV9640_BAVE   0x05

Definition at line 20 of file ov9640.h.

#define OV9640_BBIAS   0x27

Definition at line 54 of file ov9640.h.

#define OV9640_BLUE   0x01

Definition at line 16 of file ov9640.h.

#define OV9640_BOS   0x20

Definition at line 47 of file ov9640.h.

#define OV9640_CHLF   0x33

Definition at line 66 of file ov9640.h.

#define OV9640_CLKRC   0x11

Definition at line 32 of file ov9640.h.

#define OV9640_CLKRC_DIRECT   0x40

Definition at line 107 of file ov9640.h.

#define OV9640_CLKRC_DIV (   x)    ((x) & 0x3f)

Definition at line 108 of file ov9640.h.

#define OV9640_CLKRC_DPLL_EN   0x80

Definition at line 106 of file ov9640.h.

#define OV9640_COM1   0x04

Definition at line 19 of file ov9640.h.

#define OV9640_COM10   0x15

Definition at line 36 of file ov9640.h.

#define OV9640_COM11   0x3b

Definition at line 73 of file ov9640.h.

#define OV9640_COM12   0x3c

Definition at line 74 of file ov9640.h.

#define OV9640_COM12_RSVD   0x40

Definition at line 150 of file ov9640.h.

#define OV9640_COM12_YUV_AVG   0x04

Definition at line 149 of file ov9640.h.

#define OV9640_COM13   0x3d

Definition at line 75 of file ov9640.h.

#define OV9640_COM13_GAMMA_NONE   0x00

Definition at line 152 of file ov9640.h.

#define OV9640_COM13_GAMMA_RAW   0x80

Definition at line 154 of file ov9640.h.

#define OV9640_COM13_GAMMA_Y   0x40

Definition at line 153 of file ov9640.h.

#define OV9640_COM13_MATRIX_EN   0x10

Definition at line 156 of file ov9640.h.

#define OV9640_COM13_RGB_AVG   0x20

Definition at line 155 of file ov9640.h.

#define OV9640_COM13_Y_DELAY_EN   0x08

Definition at line 157 of file ov9640.h.

#define OV9640_COM13_YUV_DLY (   x)    ((x) & 0x07)

Definition at line 158 of file ov9640.h.

#define OV9640_COM14   0x3e

Definition at line 76 of file ov9640.h.

#define OV9640_COM15   0x40

Definition at line 78 of file ov9640.h.

#define OV9640_COM15_OR_00FF   0x00

Definition at line 160 of file ov9640.h.

#define OV9640_COM15_OR_01FE   0x40

Definition at line 161 of file ov9640.h.

#define OV9640_COM15_OR_10F0   0xc0

Definition at line 162 of file ov9640.h.

#define OV9640_COM15_RGB_555   0x30

Definition at line 165 of file ov9640.h.

#define OV9640_COM15_RGB_565   0x10

Definition at line 164 of file ov9640.h.

#define OV9640_COM15_RGB_NORM   0x00

Definition at line 163 of file ov9640.h.

#define OV9640_COM16   0x41

Definition at line 79 of file ov9640.h.

#define OV9640_COM16_RB_AVG   0x01

Definition at line 167 of file ov9640.h.

#define OV9640_COM17   0x42

Definition at line 80 of file ov9640.h.

#define OV9640_COM1_HREF_2SKIP   0x04

Definition at line 119 of file ov9640.h.

#define OV9640_COM1_HREF_3SKIP   0x08

Definition at line 120 of file ov9640.h.

#define OV9640_COM1_HREF_NOSKIP   0x00

Definition at line 118 of file ov9640.h.

#define OV9640_COM1_QQFMT   0x20

Definition at line 121 of file ov9640.h.

#define OV9640_COM2   0x09

Definition at line 24 of file ov9640.h.

#define OV9640_COM2_SSM   0x10

Definition at line 123 of file ov9640.h.

#define OV9640_COM3   0x0c

Definition at line 27 of file ov9640.h.

#define OV9640_COM3_VP   0x04

Definition at line 125 of file ov9640.h.

#define OV9640_COM4   0x0d

Definition at line 28 of file ov9640.h.

#define OV9640_COM4_QQ_VP   0x80

Definition at line 127 of file ov9640.h.

#define OV9640_COM4_RSVD   0x40

Definition at line 128 of file ov9640.h.

#define OV9640_COM5   0x0e

Definition at line 29 of file ov9640.h.

#define OV9640_COM5_LONGEXP   0x01

Definition at line 131 of file ov9640.h.

#define OV9640_COM5_SYSCLK   0x80

Definition at line 130 of file ov9640.h.

#define OV9640_COM6   0x0f

Definition at line 30 of file ov9640.h.

#define OV9640_COM6_ADBLC_BIAS   0x08

Definition at line 134 of file ov9640.h.

#define OV9640_COM6_ADBLC_OPTEN   0x01

Definition at line 136 of file ov9640.h.

#define OV9640_COM6_FMT_RST   0x82

Definition at line 135 of file ov9640.h.

#define OV9640_COM6_OPT_BLC   0x40

Definition at line 133 of file ov9640.h.

#define OV9640_COM7   0x12

Definition at line 33 of file ov9640.h.

#define OV9640_COM7_CIF   0x20

Definition at line 142 of file ov9640.h.

#define OV9640_COM7_QCIF   0x08

Definition at line 140 of file ov9640.h.

#define OV9640_COM7_QVGA   0x10

Definition at line 141 of file ov9640.h.

#define OV9640_COM7_RAW_RGB   0x01

Definition at line 138 of file ov9640.h.

#define OV9640_COM7_RGB   0x04

Definition at line 139 of file ov9640.h.

#define OV9640_COM7_SCCB_RESET   0x80

Definition at line 144 of file ov9640.h.

#define OV9640_COM7_VGA   0x40

Definition at line 143 of file ov9640.h.

#define OV9640_COM8   0x13

Definition at line 34 of file ov9640.h.

#define OV9640_COM9   0x14

Definition at line 35 of file ov9640.h.

#define OV9640_DBLV   0x6b

Definition at line 102 of file ov9640.h.

#define OV9640_EDGE   0x3f

Definition at line 77 of file ov9640.h.

#define OV9640_EXHCH   0x2a

Definition at line 57 of file ov9640.h.

#define OV9640_EXHCL   0x2b

Definition at line 58 of file ov9640.h.

#define OV9640_GAIN   0x00

Definition at line 15 of file ov9640.h.

#define OV9640_GBBIAS   0x28

Definition at line 55 of file ov9640.h.

#define OV9640_GBOS   0x21

Definition at line 48 of file ov9640.h.

#define OV9640_GEAVE   0x06

Definition at line 21 of file ov9640.h.

#define OV9640_GROS   0x22

Definition at line 49 of file ov9640.h.

#define OV9640_GSP   0x6c /* ... till 0x7b */

Definition at line 103 of file ov9640.h.

#define OV9640_GST   0x7c /* ... till 0x8a */

Definition at line 104 of file ov9640.h.

#define OV9640_HREF   0x32

Definition at line 65 of file ov9640.h.

#define OV9640_HSTART   0x17

Definition at line 38 of file ov9640.h.

#define OV9640_HSTOP   0x18

Definition at line 39 of file ov9640.h.

#define OV9640_HSYEN   0x31

Definition at line 64 of file ov9640.h.

#define OV9640_HSYST   0x30

Definition at line 63 of file ov9640.h.

#define OV9640_HV   0x69

Definition at line 100 of file ov9640.h.

#define OV9640_LAEC   0x1f

Definition at line 46 of file ov9640.h.

#define OV9640_LCC1   0x62

Definition at line 93 of file ov9640.h.

#define OV9640_LCC2   0x63

Definition at line 94 of file ov9640.h.

#define OV9640_LCC3   0x64

Definition at line 95 of file ov9640.h.

#define OV9640_LCC4   0x65

Definition at line 96 of file ov9640.h.

#define OV9640_LCC5   0x66

Definition at line 97 of file ov9640.h.

#define OV9640_MANU   0x67

Definition at line 98 of file ov9640.h.

#define OV9640_MANV   0x68

Definition at line 99 of file ov9640.h.

#define OV9640_MBD   0x6a

Definition at line 101 of file ov9640.h.

#define OV9640_MIDH   0x1c

Definition at line 43 of file ov9640.h.

#define OV9640_MIDL   0x1d

Definition at line 44 of file ov9640.h.

#define OV9640_MTX1   0x4f

Definition at line 82 of file ov9640.h.

#define OV9640_MTX2   0x50

Definition at line 83 of file ov9640.h.

#define OV9640_MTX3   0x51

Definition at line 84 of file ov9640.h.

#define OV9640_MTX4   0x52

Definition at line 85 of file ov9640.h.

#define OV9640_MTX5   0x53

Definition at line 86 of file ov9640.h.

#define OV9640_MTX6   0x54

Definition at line 87 of file ov9640.h.

#define OV9640_MTX7   0x55

Definition at line 88 of file ov9640.h.

#define OV9640_MTX8   0x56

Definition at line 89 of file ov9640.h.

#define OV9640_MTX9   0x57

Definition at line 90 of file ov9640.h.

#define OV9640_MTXS   0x58

Definition at line 91 of file ov9640.h.

#define OV9640_MVFP   0x1e

Definition at line 45 of file ov9640.h.

#define OV9640_MVFP_H   0x20

Definition at line 116 of file ov9640.h.

#define OV9640_MVFP_V   0x10

Definition at line 115 of file ov9640.h.

#define OV9640_OFON   0x39

Definition at line 71 of file ov9640.h.

#define OV9640_PID   0x0a

Definition at line 25 of file ov9640.h.

#define OV9640_PSHFT   0x1b

Definition at line 42 of file ov9640.h.

#define OV9640_PSHFT_VAL (   x)    ((x) & 0xff)

Definition at line 110 of file ov9640.h.

#define OV9640_RAVE   0x08

Definition at line 23 of file ov9640.h.

#define OV9640_RBIAS   0x2c

Definition at line 59 of file ov9640.h.

#define OV9640_RED   0x02

Definition at line 17 of file ov9640.h.

#define OV9640_ROS   0x23

Definition at line 50 of file ov9640.h.

#define OV9640_RSID   0x07

Definition at line 22 of file ov9640.h.

#define OV9640_TSLB   0x3a

Definition at line 72 of file ov9640.h.

#define OV9640_TSLB_YUYV_UYVY   0x08

Definition at line 147 of file ov9640.h.

#define OV9640_TSLB_YVYU_YUYV   0x04

Definition at line 146 of file ov9640.h.

#define OV9640_V2   0x9648

Definition at line 170 of file ov9640.h.

#define OV9640_V3   0x9649

Definition at line 171 of file ov9640.h.

#define OV9640_VER   0x0b

Definition at line 26 of file ov9640.h.

#define OV9640_VFER   0x03

Definition at line 18 of file ov9640.h.

#define OV9640_VPT   0x26

Definition at line 53 of file ov9640.h.

#define OV9640_VSTART   0x19

Definition at line 40 of file ov9640.h.

#define OV9640_VSTOP   0x1a

Definition at line 41 of file ov9640.h.

#define OV9640_YAVE   0x2f

Definition at line 62 of file ov9640.h.

#define VERSION (   pid,
  ver 
)    (((pid) << 8) | ((ver) & 0xFF))

Definition at line 172 of file ov9640.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
W_QQCIF 
W_QQVGA 
W_QCIF 
W_QVGA 
W_CIF 
W_VGA 
W_SXGA 

Definition at line 175 of file ov9640.h.