functions for the communication between SOLID slow control modules and Cprograms
Diff: sscm_comm.h
- Revision:
- 4:66d1a4200f67
- Parent:
- 3:e9053e5e7175
- Child:
- 5:357fa8928d63
diff -r e9053e5e7175 -r 66d1a4200f67 sscm_comm.h --- a/sscm_comm.h Wed Sep 24 10:29:42 2014 +0000 +++ b/sscm_comm.h Tue Sep 30 13:19:31 2014 +0000 @@ -4,16 +4,17 @@ * v 1.01 inital published , tested * v 1.20 added devnr, added range checking * v 1.30 added \0 to cmd field + * v 1.40 added status in cmd , added SSCM as device */ -#define SSCM_COMM_LIB_HDR_VERSION "1.30" +#define SSCM_COMM_LIB_HDR_VERSION "1.40" #define MAXCMDLLENGTH 256 namespace sscm_comm { //public : -enum ssc_dev{ ADC=1, DAC=2, TEMP=3}; +enum ssc_dev{ ADC=1, DAC=2, TEMP=3,SSCCM=4}; typedef unsigned char u8; typedef unsigned int u32; typedef struct { @@ -25,6 +26,7 @@ u8 ch; // 2 char 00 -- FF or register nr u32 datain; // 2 char 0000 -- FFFF u32 dataout;// 2 char 00 -- FF + u8 status; } ssc_cmd; const char CMDSTART= '$';