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

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

Go to the source code of this file.

Defines

#define MD(x)
#define X313_SETFIELD(x, y)
#define X313_TIMESTAMPLEN   28

Functions

void init_autoexp_struct (void)
int get_sensor_i2c_regs16 (int n)
unsigned char get_sensor_i2c_regs (int n)
unsigned long get_imageParamsR (int n)
unsigned long get_imageParamsW (int n)
unsigned char get_sensor_i2c_addr (void)
void set_sensor_i2c_regs (int n, unsigned char d)
void set_imageParamsR (int n, unsigned long d)
void set_imageParamsW (int n, unsigned long d)
void set_sensor_i2c_addr (unsigned char d)
void ccamCRAnd (unsigned long d)
void ccamCROr (unsigned long d)
void ccamCRXor (unsigned long d)
void ccamCRAndOr (unsigned long d_and, unsigned long d_or)
unsigned long ccamGetCR (void)
void writeSensorDefaults (unsigned long *data, int count)
int writeSensorReg (unsigned int ra, unsigned char rd, int uncond)
int readSensorReg (unsigned int ra, int mode)
int readSensorReg16 (unsigned char ra, int mode)
int writeSensorReg16 (unsigned char ra, int rd, int uncond)
int writeSensorRegFF (unsigned char ra, int rd, int uncond)
void camSeqStop (void)
int camSeqStartClip (int nfr, int len)
 only "n, -1" and "0, -1" are updated to include CCD so far
int camSeqGetJPEG_wp (void)
int camSeqGetJPEG_rp (void)
void camSeqSetJPEG_rp (int p)
int program_sensor_exposition (void)
int program_sensor_exposition_just (void)
 This program returns -1 for all not yet suported (re-supported ) sensors.
void program_trigger (void)
 program trigger parameters
void program_i2c (void)
void program_smart_irq (void)
void program_early_timestamp (void)
void exposition_unlock (void)
void dumpFrameParams (struct frame_params_t *fp, const char *title)

Variables

autoexp_tautoexp_state
autoexp_tautoexp_set
aexp_window_taexp_window
aexp_window_taexp_window_set


Define Documentation

#define MD ( x   ) 

Definition at line 7 of file cc3x3.h.

#define X313_SETFIELD ( x,
 ) 

Value:

ccamCRAndOr(~(((1 << X313__##x##__WIDTH)-1)  << X313__##x##__BITNM) ,\
 (((y) & ((1 << X313__##x##__WIDTH)-1)) << X313__##x##__BITNM) )

Definition at line 12 of file cc3x3.h.

#define X313_TIMESTAMPLEN   28

Definition at line 116 of file cc3x3.h.


Function Documentation

int camSeqGetJPEG_rp ( void   ) 

Definition at line 1338 of file cc353.c.

int camSeqGetJPEG_wp ( void   ) 

Definition at line 1337 of file cc353.c.

void camSeqSetJPEG_rp ( int  p  ) 

Definition at line 1339 of file cc353.c.

References imageParamsR, P_CIRCBUFRP, P_CIRCBUFSIZE, P_CIRCBUFWP, and P_FREECIRCBUF.

int camSeqStartClip ( int  nfr,
int  len 
)

only "n, -1" and "0, -1" are updated to include CCD so far

0, 0 - reread n, l - both restrictions n,-1 - n frames, any length -1, l - any n, fixed length 0,-1 - start constant compressing -1, 0 - end constant compressing (will need to wait for the state to be "DONE") if "end" and it was'n running - acquire 1 full buffer

stop and wasn't running - acquire 1 full buffer (nfr == -2 - will not restart)

NOTE: here it is important to start from the beginning of the buffer

make it invalid - why? First we'll fix dealing with invalid JPEG_rp, then - remove this operator.

start constant compression (after skipping 2 "bad" frames)

already acquiring/compressing? hello -z -> 7

do we need to reset everything - maybe just contunue?

copied from camSeq_interrupt this sequence is normally executed _after_ the first frame, but we do not want to waste first frame here

already acquiring/compressing? hello -z -> 7

copied from camSeq_interrupt this sequence is normally executed _after_ the first frame, but we do not want to waste first frame here

(0,0) - just reread from memory

Definition at line 1360 of file cc353.c.

References CAMSEQ_DONE, CAMSEQ_JPEG, CAMSEQ_READY, CAMSEQ_RUN, CAMSEQ_SINGLE, CAMSEQ_STOP, CCAM_DMA_SIZE, compressorRun(), compressorSingle(), EN_INTERRUPT, getCamSeqState(), imageParamsR, IS_KAI11000, local_irq_restore, local_irq_save, MD1, MD7, nint_done_compress, nint_vact, P_CIRCBUFRP, P_CIRCBUFWP, P_FREECIRCBUF, P_JPEG_WP, P_SKIP_FRAMES, printk, resetPointers(), setCamSeqCount(), setCamSeqState(), writeSensorReg16(), X313_ACQUIRE_ON, X313_CHN_DIS, x313_dma_reset_chain(), x313_dma_start(), and X313_POSTINIT_SDCHAN.

void camSeqStop ( void   ) 

Definition at line 1506 of file cc353.c.

References CAMSEQ_READY, compressorStop(), DIS_INTERRUPTS, getCamSeqState(), imageParamsR, MD1, MD11, MD12, P_COMPRESSOR_CMD, printk, setCamSeqState(), X313_ACQUIRE_STOP, and x313_dma_stop().

void ccamCRAnd ( unsigned long  d  ) 

Definition at line 1561 of file cc353.c.

References local_irq_restore, local_irq_save, port_csp0_addr, and X313_WA_WCTL.

void ccamCRAndOr ( unsigned long  d_and,
unsigned long  d_or 
)

Definition at line 1583 of file cc353.c.

References local_irq_restore, local_irq_save, port_csp0_addr, and X313_WA_WCTL.

void ccamCROr ( unsigned long  d  ) 

Definition at line 1568 of file cc353.c.

References local_irq_restore, local_irq_save, port_csp0_addr, and X313_WA_WCTL.

void ccamCRXor ( unsigned long  d  ) 

Definition at line 1575 of file cc353.c.

References local_irq_restore, local_irq_save, port_csp0_addr, and X313_WA_WCTL.

unsigned long ccamGetCR ( void   ) 

Definition at line 1591 of file cc353.c.

void dumpFrameParams ( struct frame_params_t fp,
const char *  title 
)

Definition at line 750 of file cc353.c.

References frame_params_t::black, frame_params_t::bscale, frame_params_t::color, frame_params_t::colorsat, DEFAULT_COLOR_SATURATION_BLUE, DEFAULT_COLOR_SATURATION_RED, frame_params_t::exposure, frame_params_t::gain_b, frame_params_t::gain_g, frame_params_t::gain_gb, frame_params_t::gain_r, frame_params_t::gamma, frame_params_t::height, frame_params_t::meta_index, printk, frame_params_t::quality, frame_params_t::rscale, frame_params_t::signffff, frame_params_t::timestamp_sec, frame_params_t::timestamp_usec, and frame_params_t::width.

void exposition_unlock ( void   ) 

Definition at line 2871 of file cc353.c.

References get_imageParamsR(), P_EXPOS, P_VEXPOS, and set_imageParamsW().

unsigned long get_imageParamsR ( int  n  ) 

Definition at line 1551 of file cc353.c.

References imageParamsR.

unsigned long get_imageParamsW ( int  n  ) 

Definition at line 1552 of file cc353.c.

unsigned char get_sensor_i2c_addr ( void   ) 

Definition at line 1553 of file cc353.c.

unsigned char get_sensor_i2c_regs ( int  n  ) 

Definition at line 1550 of file cc353.c.

int get_sensor_i2c_regs16 ( int  n  ) 

Definition at line 1549 of file cc353.c.

void init_autoexp_struct ( void   ) 

Definition at line 3886 of file cc353.c.

References aexp_window, aexp_window_set, autoexp_set, autoexp_state, imageParamsR, P_AEXPWND, and P_AUTOEXP.

void program_early_timestamp ( void   ) 

Definition at line 3288 of file cc353.c.

References CCAM_TIMESTAMP_EARLY, CCAM_TIMESTAMP_NORMAL, imageParamsR, and P_EARLY_TIMESTAMP.

void program_i2c ( void   ) 

Definition at line 3275 of file cc353.c.

References imageParamsR, MD20, P_I2C_BYTES, P_I2C_QPERIOD, port_csp0_addr, and printk.

int program_sensor_exposition ( void   ) 

Definition at line 2876 of file cc353.c.

References hist_sensor_t::exposure, hist_sensor_lock(), hist_sensor_unlock(), P_VEXPOS, program_sensor_exposition_just(), and set_imageParamsW().

int program_sensor_exposition_just ( void   ) 

This program returns -1 for all not yet suported (re-supported ) sensors.

Just a placeholder TODO: put something meaningful here

Definition at line 2922 of file cc353.c.

References adjust_fps_2_compressor(), imageParamsR, P_SENSOR, program_exposure_mt9x001(), SENSOR_KAC1310, SENSOR_KAC5000, SENSOR_KAI11000, SENSOR_MASK, SENSOR_MT9X001, SENSOR_MT9Y001, SENSOR_ZR32112, and SENSOR_ZR32212.

void program_smart_irq ( void   ) 

Definition at line 3282 of file cc353.c.

References imageParamsR, P_IRQ_SMART, and port_csp0_addr.

void program_trigger ( void   ) 

program trigger parameters

overloaded lseek for SEEK_END with offset>0 Will execute JPEG commands (1..0xf) as with ioctl

Definition at line 3267 of file cc353.c.

References imageParamsR, P_TRIG_CONDITION, P_TRIG_DELAY, P_TRIG_OUT, P_TRIG_PERIOD, and port_csp0_addr.

int readSensorReg ( unsigned int  ra,
int  mode 
)

Definition at line 1608 of file cc353.c.

References i2c_readData(), i2c_writeData(), local_irq_restore, local_irq_save, MD7, and printk.

int readSensorReg16 ( unsigned char  ra,
int  mode 
)

Definition at line 1661 of file cc353.c.

References get_sensor_i2c_regs16(), i2c_readData(), i2c_writeData(), local_irq_restore, local_irq_save, MD8, and printk.

void set_imageParamsR ( int  n,
unsigned long  d 
)

Definition at line 1555 of file cc353.c.

References imageParamsR.

void set_imageParamsW ( int  n,
unsigned long  d 
)

Definition at line 1556 of file cc353.c.

void set_sensor_i2c_addr ( unsigned char  d  ) 

Definition at line 1557 of file cc353.c.

void set_sensor_i2c_regs ( int  n,
unsigned char  d 
)

Definition at line 1554 of file cc353.c.

void writeSensorDefaults ( unsigned long *  data,
int  count 
)

Definition at line 1593 of file cc353.c.

References imageParamsR, MD7, P_PARS_CHANGED, and printk.

int writeSensorReg ( unsigned int  ra,
unsigned char  rd,
int  uncond 
)

Definition at line 1630 of file cc353.c.

References i2c_writeData(), local_irq_restore, local_irq_save, MD8, and printk.

int writeSensorReg16 ( unsigned char  ra,
int  rd,
int  uncond 
)

Definition at line 1681 of file cc353.c.

References get_sensor_i2c_regs16(), i2c_writeData(), local_irq_restore, local_irq_save, MD8, and printk.

int writeSensorRegFF ( unsigned char  ra,
int  rd,
int  uncond 
)

Definition at line 1716 of file cc353.c.

References i2c_writeData(), int, local_irq_restore, local_irq_save, MD, and printk.


Variable Documentation

struct aexp_window_t* aexp_window

Definition at line 796 of file cc353.c.

struct aexp_window_t* aexp_window_set

Definition at line 797 of file cc353.c.

struct autoexp_t* autoexp_set

Definition at line 39 of file autoexp.c.

struct autoexp_t* autoexp_state

Definition at line 794 of file cc353.c.


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