hw functions for the SOLID slow control
Dependents: S_SCTRL_e_test SPItest sscm
S_SCTRL_SM1_hwfunct.h@0:8d755a0f3ab3, 2014-09-07 (annotated)
- Committer:
- wbeaumont
- Date:
- Sun Sep 07 14:39:32 2014 +0000
- Revision:
- 0:8d755a0f3ab3
- Child:
- 1:af78e316f889
inital lib untested to include in e test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wbeaumont | 0:8d755a0f3ab3 | 1 | |
wbeaumont | 0:8d755a0f3ab3 | 2 | |
wbeaumont | 0:8d755a0f3ab3 | 3 | |
wbeaumont | 0:8d755a0f3ab3 | 4 | typedef struct HWlines { |
wbeaumont | 0:8d755a0f3ab3 | 5 | |
wbeaumont | 0:8d755a0f3ab3 | 6 | DigitalInOut* msio[2]; |
wbeaumont | 0:8d755a0f3ab3 | 7 | DigitalOut* sclk[2]; |
wbeaumont | 0:8d755a0f3ab3 | 8 | DigitalOut* direction[2]; |
wbeaumont | 0:8d755a0f3ab3 | 9 | DigitalOut* stio_mo[2]; |
wbeaumont | 0:8d755a0f3ab3 | 10 | DigitalOut* csb1_1[2]; |
wbeaumont | 0:8d755a0f3ab3 | 11 | DigitalOut* csb2_1[2]; |
wbeaumont | 0:8d755a0f3ab3 | 12 | |
wbeaumont | 0:8d755a0f3ab3 | 13 | |
wbeaumont | 0:8d755a0f3ab3 | 14 | |
wbeaumont | 0:8d755a0f3ab3 | 15 | // SPI pins |
wbeaumont | 0:8d755a0f3ab3 | 16 | DigitalOut* mosi[2]; |
wbeaumont | 0:8d755a0f3ab3 | 17 | DigitalIn* miso[2]; |
wbeaumont | 0:8d755a0f3ab3 | 18 | |
wbeaumont | 0:8d755a0f3ab3 | 19 | DigitalOut* t_cs[2]; |
wbeaumont | 0:8d755a0f3ab3 | 20 | DigitalOut* tc_cs1[2]; |
wbeaumont | 0:8d755a0f3ab3 | 21 | DigitalOut* tc_cs2[2]; |
wbeaumont | 0:8d755a0f3ab3 | 22 | DigitalOut* dac_cs[2]; |
wbeaumont | 0:8d755a0f3ab3 | 23 | DigitalOut* dac_rst[2]; |
wbeaumont | 0:8d755a0f3ab3 | 24 | |
wbeaumont | 0:8d755a0f3ab3 | 25 | |
wbeaumont | 0:8d755a0f3ab3 | 26 | //cal |
wbeaumont | 0:8d755a0f3ab3 | 27 | DigitalOut* cal13[2]; // physical the same so will point to the same port |
wbeaumont | 0:8d755a0f3ab3 | 28 | DigitalOut* cal24[2]; // physical the same so will point to the same port |
wbeaumont | 0:8d755a0f3ab3 | 29 | DigitalOut* calint[2]; |
wbeaumont | 0:8d755a0f3ab3 | 30 | |
wbeaumont | 0:8d755a0f3ab3 | 31 | // not related to connector 1 /2 |
wbeaumont | 0:8d755a0f3ab3 | 32 | DigitalOut* calext; |
wbeaumont | 0:8d755a0f3ab3 | 33 | DigitalOut* calgenext; |
wbeaumont | 0:8d755a0f3ab3 | 34 | |
wbeaumont | 0:8d755a0f3ab3 | 35 | DigitalOut* ledred; |
wbeaumont | 0:8d755a0f3ab3 | 36 | DigitalOut* ledgreen; |
wbeaumont | 0:8d755a0f3ab3 | 37 | |
wbeaumont | 0:8d755a0f3ab3 | 38 | AnalogIn* ain1, ain2; |
wbeaumont | 0:8d755a0f3ab3 | 39 | |
wbeaumont | 0:8d755a0f3ab3 | 40 | |
wbeaumont | 0:8d755a0f3ab3 | 41 | |
wbeaumont | 0:8d755a0f3ab3 | 42 | } hwlines ; |
wbeaumont | 0:8d755a0f3ab3 | 43 | |
wbeaumont | 0:8d755a0f3ab3 | 44 | void setcalsource( int extcal, HWlines hwl); |
wbeaumont | 0:8d755a0f3ab3 | 45 | void setdefault(HWlines hwl ) ; |
wbeaumont | 0:8d755a0f3ab3 | 46 | |
wbeaumont | 0:8d755a0f3ab3 | 47 | |
wbeaumont | 0:8d755a0f3ab3 | 48 |