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

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 cc353.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 cc353.h.

#define X313_TIMESTAMPLEN   28

Definition at line 116 of file cc353.h.

Referenced by programSensor().


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.

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.

void camSeqStop ( void   ) 

Definition at line 1506 of file cc353.c.

void ccamCRAnd ( unsigned long  d  ) 

Definition at line 1561 of file cc353.c.

void ccamCRAndOr ( unsigned long  d_and,
unsigned long  d_or 
)

Definition at line 1583 of file cc353.c.

void ccamCROr ( unsigned long  d  ) 

Definition at line 1568 of file cc353.c.

void ccamCRXor ( unsigned long  d  ) 

Definition at line 1575 of file cc353.c.

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.

void exposition_unlock ( void   ) 

Definition at line 2871 of file cc353.c.

unsigned long get_imageParamsR ( int  n  ) 

Definition at line 1551 of file cc353.c.

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.

void program_early_timestamp ( void   ) 

Definition at line 3288 of file cc353.c.

void program_i2c ( void   ) 

Definition at line 3275 of file cc353.c.

int program_sensor_exposition ( void   ) 

Definition at line 2876 of file cc353.c.

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.

void program_smart_irq ( void   ) 

Definition at line 3282 of file cc353.c.

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.

int readSensorReg ( unsigned int  ra,
int  mode 
)

Definition at line 1608 of file cc353.c.

int readSensorReg16 ( unsigned char  ra,
int  mode 
)

Definition at line 1661 of file cc353.c.

void set_imageParamsR ( int  n,
unsigned long  d 
)

Definition at line 1555 of file cc353.c.

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.

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

Definition at line 1630 of file cc353.c.

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

Definition at line 1681 of file cc353.c.

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

Definition at line 1716 of file cc353.c.


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:05 2008 for elphel by  doxygen 1.5.1