hw functions for the SOLID slow control
Dependents: S_SCTRL_e_test SPItest sscm
Diff: S_SCTRL_SM1_hwfunct.h
- Revision:
- 0:8d755a0f3ab3
- Child:
- 1:af78e316f889
diff -r 000000000000 -r 8d755a0f3ab3 S_SCTRL_SM1_hwfunct.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/S_SCTRL_SM1_hwfunct.h Sun Sep 07 14:39:32 2014 +0000 @@ -0,0 +1,48 @@ + + + +typedef struct HWlines { + +DigitalInOut* msio[2]; +DigitalOut* sclk[2]; +DigitalOut* direction[2]; +DigitalOut* stio_mo[2]; +DigitalOut* csb1_1[2]; +DigitalOut* csb2_1[2]; + + + +// SPI pins +DigitalOut* mosi[2]; +DigitalIn* miso[2]; + +DigitalOut* t_cs[2]; +DigitalOut* tc_cs1[2]; +DigitalOut* tc_cs2[2]; +DigitalOut* dac_cs[2]; +DigitalOut* dac_rst[2]; + + +//cal +DigitalOut* cal13[2]; // physical the same so will point to the same port +DigitalOut* cal24[2]; // physical the same so will point to the same port +DigitalOut* calint[2]; + +// not related to connector 1 /2 +DigitalOut* calext; +DigitalOut* calgenext; + +DigitalOut* ledred; +DigitalOut* ledgreen; + +AnalogIn* ain1, ain2; + + + + } hwlines ; + +void setcalsource( int extcal, HWlines hwl); +void setdefault(HWlines hwl ) ; + + + \ No newline at end of file