os/linux-2.6-tag--devboard-R2_10-4/arch/cris/arch-v32/drivers/elphel/mt9x001.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MT9M001_PARTID   0x8411
#define MT9D001_PARTID   0x8511
#define MT9T001_PARTID   0x1601
#define MT9P001_PARTID   0x1801
#define MT9X001_PARTIDMASK   0xff00
#define MT9X001_I2C_ADDR   0xba
#define MT9P001_I2C_ADDR   0x90
#define MT9M_TYP   1
#define MT9D_TYP   2
#define MT9T_TYP   3
#define MT9P_TYP   4
#define P_MT9X001_CHIPVER   0x00
#define P_MT9X001_ROWSTART   0x01
#define P_MT9X001_COLSTART   0x02
#define P_MT9X001_HEIGHT   0x03
#define P_MT9X001_WIDTH   0x04
#define P_MT9X001_HORBLANK   0x05
#define P_MT9X001_VERTBLANK   0x06
#define P_MT9X001_OUTCTRL   0x07
#define P_MT9X001_SHTRWDTHU   0x08
#define P_MT9X001_SHTRWDTH   0x09
#define P_MT9X001_PXLCTL   0x0a
#define P_MT9X001_RESTART   0x0b
#define P_MT9X001_SHTRDLY   0x0c
#define P_MT9X001_RESET   0x0d
#define P_MT9X001_PLL1   0x10
#define P_MT9X001_PLL2   0x11
#define P_MT9X001_PLL3   0x12
#define P_MT9X001_RMODE1   0x1e
#define P_MT9X001_RMODE2   0x20
#define P_MT9X001_RMODE3   0x21
#define P_MT9X001_RAM   0x22
#define P_MT9X001_CAM   0x23
#define P_MT9X001_GREEN1   0x2b
#define P_MT9X001_BLUE   0x2c
#define P_MT9X001_RED   0x2d
#define P_MT9X001_GREEN2   0x2e
#define P_MT9X001_ALLGAINS   0x35
#define P_MT9X001_DESIRBLACK   0x49
#define P_MT9X001_ROWRBLACKOFFS   0x4b
#define P_MT9X001_COARSETHRSH   0x5d
#define P_MT9X001_CALTHRESH   0x5f
#define P_MT9X001_CALGREEN1   0x60
#define P_MT9X001_CALGREEN2   0x61
#define P_MT9X001_CALCTRL   0x62
#define P_MT9X001_CALRED   0x63
#define P_MT9X001_CALBLUE   0x64
#define P_MT9X001_7F   0x7f
#define P_MT9X001_CHIPEN   0xF1
#define P_MT9X001_CHIPEN1   0xF8

Functions

int init_mt9x001 (void)
int adjustBinning_mt9x001 (void)
int program_woi_mt9x001 (int nonstop)
int program_gains_mt9x001 (void)
int program_exposure_mt9x001 (void)


Define Documentation

#define MT9D001_PARTID   0x8511

Definition at line 3 of file mt9x001.h.

Referenced by init_mt9x001().

#define MT9D_TYP   2

Definition at line 10 of file mt9x001.h.

Referenced by init_mt9x001(), and program_woi_mt9x001().

#define MT9M001_PARTID   0x8411

Definition at line 2 of file mt9x001.h.

Referenced by init_mt9x001().

#define MT9M_TYP   1

Definition at line 9 of file mt9x001.h.

Referenced by init_mt9x001(), and program_woi_mt9x001().

#define MT9P001_I2C_ADDR   0x90

Definition at line 8 of file mt9x001.h.

#define MT9P001_PARTID   0x1801

Definition at line 5 of file mt9x001.h.

Referenced by init_mt9x001().

#define MT9P_TYP   4

Definition at line 12 of file mt9x001.h.

Referenced by adjustBinning_mt9x001(), init_mt9x001(), program_exposure_mt9x001(), and program_woi_mt9x001().

#define MT9T001_PARTID   0x1601

Definition at line 4 of file mt9x001.h.

Referenced by init_mt9x001().

#define MT9T_TYP   3

Definition at line 11 of file mt9x001.h.

Referenced by adjustBinning_mt9x001(), init_mt9x001(), program_exposure_mt9x001(), and program_woi_mt9x001().

#define MT9X001_I2C_ADDR   0xba

Definition at line 7 of file mt9x001.h.

Referenced by init_mt9x001().

#define MT9X001_PARTIDMASK   0xff00

Definition at line 6 of file mt9x001.h.

Referenced by init_mt9x001().

#define P_MT9X001_7F   0x7f

Definition at line 173 of file mt9x001.h.

#define P_MT9X001_ALLGAINS   0x35

Definition at line 127 of file mt9x001.h.

#define P_MT9X001_BLUE   0x2c

Definition at line 121 of file mt9x001.h.

Referenced by program_gains_mt9x001().

#define P_MT9X001_CALBLUE   0x64

Definition at line 171 of file mt9x001.h.

#define P_MT9X001_CALCTRL   0x62

Definition at line 151 of file mt9x001.h.

#define P_MT9X001_CALGREEN1   0x60

Definition at line 145 of file mt9x001.h.

#define P_MT9X001_CALGREEN2   0x61

Definition at line 148 of file mt9x001.h.

#define P_MT9X001_CALRED   0x63

Definition at line 168 of file mt9x001.h.

#define P_MT9X001_CALTHRESH   0x5f

Definition at line 135 of file mt9x001.h.

#define P_MT9X001_CAM   0x23

Definition at line 114 of file mt9x001.h.

Referenced by program_woi_mt9x001().

#define P_MT9X001_CHIPEN   0xF1

Definition at line 174 of file mt9x001.h.

#define P_MT9X001_CHIPEN1   0xF8

Definition at line 178 of file mt9x001.h.

#define P_MT9X001_CHIPVER   0x00

Definition at line 15 of file mt9x001.h.

Referenced by init_mt9x001().

#define P_MT9X001_COARSETHRSH   0x5d

Definition at line 130 of file mt9x001.h.

#define P_MT9X001_COLSTART   0x02

Definition at line 17 of file mt9x001.h.

Referenced by program_woi_mt9x001().

#define P_MT9X001_DESIRBLACK   0x49

Definition at line 128 of file mt9x001.h.

#define P_MT9X001_GREEN1   0x2b

Definition at line 119 of file mt9x001.h.

Referenced by program_gains_mt9x001().

#define P_MT9X001_GREEN2   0x2e

Definition at line 125 of file mt9x001.h.

Referenced by program_gains_mt9x001().

#define P_MT9X001_HEIGHT   0x03

Definition at line 18 of file mt9x001.h.

Referenced by check_fps(), program_exposure_mt9x001(), and program_woi_mt9x001().

#define P_MT9X001_HORBLANK   0x05

Definition at line 20 of file mt9x001.h.

Referenced by check_fps(), and program_woi_mt9x001().

#define P_MT9X001_OUTCTRL   0x07

Definition at line 22 of file mt9x001.h.

#define P_MT9X001_PLL1   0x10

Definition at line 49 of file mt9x001.h.

#define P_MT9X001_PLL2   0x11

Definition at line 55 of file mt9x001.h.

#define P_MT9X001_PLL3   0x12

Definition at line 59 of file mt9x001.h.

#define P_MT9X001_PXLCTL   0x0a

Definition at line 34 of file mt9x001.h.

#define P_MT9X001_RAM   0x22

Definition at line 110 of file mt9x001.h.

Referenced by program_woi_mt9x001().

#define P_MT9X001_RED   0x2d

Definition at line 123 of file mt9x001.h.

Referenced by program_gains_mt9x001().

#define P_MT9X001_RESET   0x0d

Definition at line 47 of file mt9x001.h.

#define P_MT9X001_RESTART   0x0b

Definition at line 39 of file mt9x001.h.

#define P_MT9X001_RMODE1   0x1e

Definition at line 63 of file mt9x001.h.

Referenced by program_woi_mt9x001().

#define P_MT9X001_RMODE2   0x20

Definition at line 85 of file mt9x001.h.

Referenced by program_woi_mt9x001().

#define P_MT9X001_RMODE3   0x21

Definition at line 106 of file mt9x001.h.

#define P_MT9X001_ROWRBLACKOFFS   0x4b

Definition at line 129 of file mt9x001.h.

#define P_MT9X001_ROWSTART   0x01

Definition at line 16 of file mt9x001.h.

Referenced by program_woi_mt9x001().

#define P_MT9X001_SHTRDLY   0x0c

Definition at line 45 of file mt9x001.h.

#define P_MT9X001_SHTRWDTH   0x09

Definition at line 33 of file mt9x001.h.

Referenced by check_fps(), and program_exposure_mt9x001().

#define P_MT9X001_SHTRWDTHU   0x08

Definition at line 32 of file mt9x001.h.

Referenced by check_fps(), and program_exposure_mt9x001().

#define P_MT9X001_VERTBLANK   0x06

Definition at line 21 of file mt9x001.h.

Referenced by check_fps(), and program_exposure_mt9x001().

#define P_MT9X001_WIDTH   0x04

Definition at line 19 of file mt9x001.h.

Referenced by check_fps(), and program_woi_mt9x001().


Function Documentation

int adjustBinning_mt9x001 ( void   ) 

Definition at line 593 of file mt9x001.c.

References bh, bv, dh, dv, get_imageParamsR(), MT9P_TYP, MT9T_TYP, P_BIN_HOR, P_BIN_VERT, P_DCM_HOR, P_DCM_VERT, P_SENSOR, and set_imageParamsR().

Referenced by programSensor().

int init_mt9x001 ( void   ) 

Definition at line 444 of file mt9x001.c.

References sensor_t::i2c_addr, i2c_readData(), i2c_writeData(), MD7, memcpy(), mt9d001, mt9d001_inits, MT9D001_PARTID, MT9D_TYP, mt9m001, mt9m001_inits, MT9M001_PARTID, MT9M_TYP, mt9p001, mt9p001_inits, MT9P001_PARTID, MT9P_TYP, mt9t001, mt9t001_inits, MT9T001_PARTID, mt9t_broken, MT9T_TYP, MT9X001_I2C_ADDR, MT9X001_PARTIDMASK, P_MT9X001_CHIPVER, P_SENSOR, printk, readSensorReg16(), sensor, SENSOR_MT9X001, sensor_t::sensorType, set_imageParamsR(), set_sensor_i2c_addr(), and writeSensorReg16().

Referenced by init_sensor(), and programSensor().

int program_exposure_mt9x001 ( void   ) 

Definition at line 937 of file mt9x001.c.

References dv, e, get_imageParamsR(), get_imageParamsW(), get_sensor_i2c_regs16(), sensor_t::maxShutter, sensor_t::maxVertBlank, MD7, MD9, sensor_t::minVertBlank, MT9P_TYP, MT9T_TYP, P_CLK_SENSOR, P_DCM_VERT, P_EXPOS, P_FP100S, P_FPSLM, P_MT9X001_HEIGHT, P_MT9X001_SHTRWDTH, P_MT9X001_SHTRWDTHU, P_MT9X001_VERTBLANK, P_PERIOD, P_SENSOR, P_TRIG, P_VEXPOS, P_VIRT_HEIGHT, P_VIRT_WIDTH, printk, sclk, sensor, set_imageParamsR(), vh, wh, and writeSensorReg16().

Referenced by program_sensor_exposition_just().

int program_gains_mt9x001 ( void   ) 

Definition at line 892 of file mt9x001.c.

References frame_params, frame_params_t::gain_b, frame_params_t::gain_g, frame_params_t::gain_gb, gain_mt9x001(), frame_params_t::gain_r, gb, get_imageParamsW(), gg, ggb, gr, sensor_t::maxGain256, normalize_gain(), P_GAINB, P_GAING, P_GAINGB, P_GAINR, P_MT9X001_BLUE, P_MT9X001_GREEN1, P_MT9X001_GREEN2, P_MT9X001_RED, sensor, set_imageParamsR(), and writeSensorReg16().

Referenced by programSensor().

int program_woi_mt9x001 ( int  nonstop  ) 

Definition at line 614 of file mt9x001.c.

References bh, bv, sensor_t::clearHeight, sensor_t::clearLeft, sensor_t::clearTop, sensor_t::clearWidth, dh, dv, fclk, get_imageParamsR(), get_imageParamsW(), get_sensor_i2c_regs16(), sensor_t::margins, sensor_t::maxHorBlank, MD7, sensor_t::minHorBlank, MT9D_TYP, MT9M_TYP, MT9P_TYP, MT9T_TYP, P_BAYER, P_BIN_HOR, P_BIN_VERT, P_CLK_FPGA, P_CLK_SENSOR, P_DCM_HOR, P_DCM_VERT, P_FLIP, P_FPGA_XTRA, P_MT9X001_CAM, P_MT9X001_COLSTART, P_MT9X001_HEIGHT, P_MT9X001_HORBLANK, P_MT9X001_RAM, P_MT9X001_RMODE1, P_MT9X001_RMODE2, P_MT9X001_ROWSTART, P_MT9X001_WIDTH, P_OVERSIZE, P_PF_HEIGHT, P_SENSOR, P_TRIG, P_VIRT_WIDTH, P_WOI_HEIGHT, P_WOI_LEFT, P_WOI_TOP, pfh, sensor_t::pixelHeight, sensor_t::pixelWidth, printk, sclk, sensor, set_imageParamsR(), wh, wl, writeSensorReg16(), wt, ww, and xtra.

Referenced by programSensor().


Generated on Thu Aug 7 16:20:36 2008 for elphel by  doxygen 1.5.1