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_t * | autoexp_state |
autoexp_t * | autoexp_set |
aexp_window_t * | aexp_window |
aexp_window_t * | aexp_window_set |
#define X313_SETFIELD | ( | x, | |||
y | ) |
void camSeqSetJPEG_rp | ( | int | p | ) |
Definition at line 1339 of file cc353.c.
References imageParamsR, P_CIRCBUFRP, P_CIRCBUFSIZE, P_CIRCBUFWP, and P_FREECIRCBUF.
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.
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 | ) |
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 | ) |
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.
Definition at line 1608 of file cc353.c.
References i2c_readData(), i2c_writeData(), local_irq_restore, local_irq_save, MD7, and printk.
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 | |||
) |
void writeSensorDefaults | ( | unsigned long * | data, | |
int | count | |||
) |
Definition at line 1630 of file cc353.c.
References i2c_writeData(), local_irq_restore, local_irq_save, MD8, and printk.
Definition at line 1681 of file cc353.c.
References get_sensor_i2c_regs16(), i2c_writeData(), local_irq_restore, local_irq_save, MD8, and printk.
Definition at line 1716 of file cc353.c.
References i2c_writeData(), int, local_irq_restore, local_irq_save, MD, and printk.
struct aexp_window_t* aexp_window |
struct aexp_window_t* aexp_window_set |
struct autoexp_t* autoexp_set |
struct autoexp_t* autoexp_state |