Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
stv06xx_hdcs.h File Reference
#include "stv06xx_sensor.h"

Go to the source code of this file.

Macros

#define HDCS_REG_CONFIG(sd)   (IS_1020(sd) ? HDCS20_CONFIG : HDCS00_CONFIG)
 
#define HDCS_REG_CONTROL(sd)   (IS_1020(sd) ? HDCS20_CONTROL : HDCS00_CONTROL)
 
#define HDCS_1X00_DEF_WIDTH   360
 
#define HDCS_1X00_DEF_HEIGHT   296
 
#define HDCS_1020_DEF_WIDTH   352
 
#define HDCS_1020_DEF_HEIGHT   292
 
#define HDCS_1020_BOTTOM_Y_SKIP   4
 
#define HDCS_CLK_FREQ_MHZ   25
 
#define HDCS_ADC_START_SIG_DUR   3
 
#define HDCS_IDENT   (0x00 << 1)
 
#define HDCS_STATUS   (0x01 << 1)
 
#define HDCS_IMASK   (0x02 << 1)
 
#define HDCS_PCTRL   (0x03 << 1)
 
#define HDCS_PDRV   (0x04 << 1)
 
#define HDCS_ICTRL   (0x05 << 1)
 
#define HDCS_ITMG   (0x06 << 1)
 
#define HDCS_BFRAC   (0x07 << 1)
 
#define HDCS_BRATE   (0x08 << 1)
 
#define HDCS_ADCCTRL   (0x09 << 1)
 
#define HDCS_FWROW   (0x0a << 1)
 
#define HDCS_FWCOL   (0x0b << 1)
 
#define HDCS_LWROW   (0x0c << 1)
 
#define HDCS_LWCOL   (0x0d << 1)
 
#define HDCS_TCTRL   (0x0e << 1)
 
#define HDCS_ERECPGA   (0x0f << 1)
 
#define HDCS_EROCPGA   (0x10 << 1)
 
#define HDCS_ORECPGA   (0x11 << 1)
 
#define HDCS_OROCPGA   (0x12 << 1)
 
#define HDCS_ROWEXPL   (0x13 << 1)
 
#define HDCS_ROWEXPH   (0x14 << 1)
 
#define HDCS00_SROWEXPL   (0x15 << 1)
 
#define HDCS00_SROWEXPH   (0x16 << 1)
 
#define HDCS00_CONFIG   (0x17 << 1)
 
#define HDCS00_CONTROL   (0x18 << 1)
 
#define HDCS20_SROWEXP   (0x15 << 1)
 
#define HDCS20_ERROR   (0x16 << 1)
 
#define HDCS20_ITMG2   (0x17 << 1)
 
#define HDCS20_ICTRL2   (0x18 << 1)
 
#define HDCS20_HBLANK   (0x19 << 1)
 
#define HDCS20_VBLANK   (0x1a << 1)
 
#define HDCS20_CONFIG   (0x1b << 1)
 
#define HDCS20_CONTROL   (0x1c << 1)
 
#define HDCS_RUN_ENABLE   (1 << 2)
 
#define HDCS_SLEEP_MODE   (1 << 1)
 
#define HDCS_DEFAULT_EXPOSURE   48
 
#define HDCS_DEFAULT_GAIN   50
 

Variables

struct stv06xx_sensor stv06xx_sensor_hdcs1x00
 
struct stv06xx_sensor stv06xx_sensor_hdcs1020
 

Macro Definition Documentation

#define HDCS00_CONFIG   (0x17 << 1)

Definition at line 102 of file stv06xx_hdcs.h.

#define HDCS00_CONTROL   (0x18 << 1)

Definition at line 104 of file stv06xx_hdcs.h.

#define HDCS00_SROWEXPH   (0x16 << 1)

Definition at line 100 of file stv06xx_hdcs.h.

#define HDCS00_SROWEXPL   (0x15 << 1)

Definition at line 98 of file stv06xx_hdcs.h.

#define HDCS20_CONFIG   (0x1b << 1)

Definition at line 120 of file stv06xx_hdcs.h.

#define HDCS20_CONTROL   (0x1c << 1)

Definition at line 122 of file stv06xx_hdcs.h.

#define HDCS20_ERROR   (0x16 << 1)

Definition at line 110 of file stv06xx_hdcs.h.

#define HDCS20_HBLANK   (0x19 << 1)

Definition at line 116 of file stv06xx_hdcs.h.

#define HDCS20_ICTRL2   (0x18 << 1)

Definition at line 114 of file stv06xx_hdcs.h.

#define HDCS20_ITMG2   (0x17 << 1)

Definition at line 112 of file stv06xx_hdcs.h.

#define HDCS20_SROWEXP   (0x15 << 1)

Definition at line 108 of file stv06xx_hdcs.h.

#define HDCS20_VBLANK   (0x1a << 1)

Definition at line 118 of file stv06xx_hdcs.h.

#define HDCS_1020_BOTTOM_Y_SKIP   4

Definition at line 45 of file stv06xx_hdcs.h.

#define HDCS_1020_DEF_HEIGHT   292

Definition at line 43 of file stv06xx_hdcs.h.

#define HDCS_1020_DEF_WIDTH   352

Definition at line 42 of file stv06xx_hdcs.h.

#define HDCS_1X00_DEF_HEIGHT   296

Definition at line 40 of file stv06xx_hdcs.h.

#define HDCS_1X00_DEF_WIDTH   360

Definition at line 39 of file stv06xx_hdcs.h.

#define HDCS_ADC_START_SIG_DUR   3

Definition at line 49 of file stv06xx_hdcs.h.

#define HDCS_ADCCTRL   (0x09 << 1)

Definition at line 72 of file stv06xx_hdcs.h.

#define HDCS_BFRAC   (0x07 << 1)

Definition at line 68 of file stv06xx_hdcs.h.

#define HDCS_BRATE   (0x08 << 1)

Definition at line 70 of file stv06xx_hdcs.h.

#define HDCS_CLK_FREQ_MHZ   25

Definition at line 47 of file stv06xx_hdcs.h.

#define HDCS_DEFAULT_EXPOSURE   48

Definition at line 127 of file stv06xx_hdcs.h.

#define HDCS_DEFAULT_GAIN   50

Definition at line 128 of file stv06xx_hdcs.h.

#define HDCS_ERECPGA   (0x0f << 1)

Definition at line 84 of file stv06xx_hdcs.h.

#define HDCS_EROCPGA   (0x10 << 1)

Definition at line 86 of file stv06xx_hdcs.h.

#define HDCS_FWCOL   (0x0b << 1)

Definition at line 76 of file stv06xx_hdcs.h.

#define HDCS_FWROW   (0x0a << 1)

Definition at line 74 of file stv06xx_hdcs.h.

#define HDCS_ICTRL   (0x05 << 1)

Definition at line 64 of file stv06xx_hdcs.h.

#define HDCS_IDENT   (0x00 << 1)

Definition at line 54 of file stv06xx_hdcs.h.

#define HDCS_IMASK   (0x02 << 1)

Definition at line 58 of file stv06xx_hdcs.h.

#define HDCS_ITMG   (0x06 << 1)

Definition at line 66 of file stv06xx_hdcs.h.

#define HDCS_LWCOL   (0x0d << 1)

Definition at line 80 of file stv06xx_hdcs.h.

#define HDCS_LWROW   (0x0c << 1)

Definition at line 78 of file stv06xx_hdcs.h.

#define HDCS_ORECPGA   (0x11 << 1)

Definition at line 88 of file stv06xx_hdcs.h.

#define HDCS_OROCPGA   (0x12 << 1)

Definition at line 90 of file stv06xx_hdcs.h.

#define HDCS_PCTRL   (0x03 << 1)

Definition at line 60 of file stv06xx_hdcs.h.

#define HDCS_PDRV   (0x04 << 1)

Definition at line 62 of file stv06xx_hdcs.h.

#define HDCS_REG_CONFIG (   sd)    (IS_1020(sd) ? HDCS20_CONFIG : HDCS00_CONFIG)

Definition at line 36 of file stv06xx_hdcs.h.

#define HDCS_REG_CONTROL (   sd)    (IS_1020(sd) ? HDCS20_CONTROL : HDCS00_CONTROL)

Definition at line 37 of file stv06xx_hdcs.h.

#define HDCS_ROWEXPH   (0x14 << 1)

Definition at line 94 of file stv06xx_hdcs.h.

#define HDCS_ROWEXPL   (0x13 << 1)

Definition at line 92 of file stv06xx_hdcs.h.

#define HDCS_RUN_ENABLE   (1 << 2)

Definition at line 124 of file stv06xx_hdcs.h.

#define HDCS_SLEEP_MODE   (1 << 1)

Definition at line 125 of file stv06xx_hdcs.h.

#define HDCS_STATUS   (0x01 << 1)

Definition at line 56 of file stv06xx_hdcs.h.

#define HDCS_TCTRL   (0x0e << 1)

Definition at line 82 of file stv06xx_hdcs.h.

Variable Documentation

struct stv06xx_sensor stv06xx_sensor_hdcs1020
Initial value:
= {
.name = "HDCS-1020",
.i2c_flush = 0,
.i2c_addr = (0x55 << 1),
.i2c_len = 1,
.min_packet_size = { 847 },
.max_packet_size = { 847 },
.init = hdcs_init,
.init_controls = hdcs_init_controls,
.probe = hdcs_probe_1020,
.start = hdcs_start,
.stop = hdcs_stop,
.dump = hdcs_dump,
}

Definition at line 160 of file stv06xx_hdcs.h.

struct stv06xx_sensor stv06xx_sensor_hdcs1x00
Initial value:
= {
.name = "HP HDCS-1000/1100",
.i2c_flush = 0,
.i2c_addr = (0x55 << 1),
.i2c_len = 1,
.min_packet_size = { 847 },
.max_packet_size = { 847 },
.init = hdcs_init,
.init_controls = hdcs_init_controls,
.probe = hdcs_probe_1x00,
.start = hdcs_start,
.stop = hdcs_stop,
.dump = hdcs_dump,
}

Definition at line 141 of file stv06xx_hdcs.h.