Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * OpticFlow.h
- *
- * Created on: Nov 2, 2010
- * Author: phani
- */
- #ifndef OPTICFLOW_H_
- #define OPTICFLOW_H_
- typedef struct OpticalFlow{
- port OPTIC_DATA;
- out port WNR;
- out port CS;
- } OpticalFlow;
- //Vaulted Biases
- #define NBIAS 0
- #define VREF 64
- #define PRSUPPLY 192
- #define ANALOGOUTBIAS 256
- //Focal Plane Commands
- #define AMPCONF 512
- #define AMPOP 576
- #define FPCONF 640
- #define COLSEL 1024
- //ADC Configuration and Operation
- #define ADCOP 1536
- #define RESB 1600
- #define REST 1664
- #define YUKNBIAS 1728
- //Vault Commands
- #define CONNECTVDDA 1792
- #define BIASSWITCH1 1856
- #define BIASSWITCH2 1920
- #define BIASSWITCH3 1984
- //Focal Plane
- #define ROWSEL 2048
- #define HSW 2560
- #define VSW 3072
- //Linear Regulator
- #define LINREG1 3584
- #define LINREG2 3648
- #define LINREG3 3712
- #define LINREG4 3776
- //if type is 1, log, else linear
- //if bin is 1, binned 2x2, else full
- void initOpticalFlow(OpticalFlow &opf, int bin); //0, 1=2x2, 2 = 4x4, 3 = 8x8
- int readFrame(char buffer[256][128], OpticalFlow &opf); //return 1 if succesful
- int readFrame(char buffer[128][64], OpticalFlow &opf); //return 1 if succesful
- #endif /* OPTICFLOW_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement