Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.17 KB | None | 0 0
  1. /*
  2.  * OpticFlow.h
  3.  *
  4.  *  Created on: Nov 2, 2010
  5.  *      Author: phani
  6.  */
  7.  
  8. #ifndef OPTICFLOW_H_
  9. #define OPTICFLOW_H_
  10.  
  11. typedef struct OpticalFlow{
  12.     port OPTIC_DATA;
  13.     out port WNR;
  14.     out port CS;
  15. } OpticalFlow;
  16.  
  17. //Vaulted Biases
  18. #define NBIAS 0
  19. #define VREF 64
  20. #define PRSUPPLY 192
  21. #define ANALOGOUTBIAS 256
  22. //Focal Plane Commands
  23. #define AMPCONF 512
  24. #define AMPOP 576
  25. #define FPCONF 640
  26. #define COLSEL 1024
  27. //ADC Configuration and Operation
  28. #define ADCOP 1536
  29. #define RESB 1600
  30. #define REST 1664
  31. #define YUKNBIAS 1728
  32. //Vault Commands
  33. #define CONNECTVDDA 1792
  34. #define BIASSWITCH1 1856
  35. #define BIASSWITCH2 1920
  36. #define BIASSWITCH3 1984
  37. //Focal Plane
  38. #define ROWSEL 2048
  39. #define HSW 2560
  40. #define VSW 3072
  41. //Linear Regulator
  42. #define LINREG1 3584
  43. #define LINREG2 3648
  44. #define LINREG3 3712
  45. #define LINREG4 3776
  46.  
  47. //if type is 1, log, else linear
  48. //if bin is 1, binned 2x2, else full
  49.  
  50. void initOpticalFlow(OpticalFlow &opf, int bin); //0, 1=2x2, 2 = 4x4, 3 = 8x8
  51. int readFrame(char buffer[256][128], OpticalFlow &opf); //return 1 if succesful
  52. int readFrame(char buffer[128][64], OpticalFlow &opf); //return 1 if succesful
  53.  
  54.  
  55.  
  56.  
  57. #endif /* OPTICFLOW_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement