functions for the communication between SOLID slow control modules and Cprograms
Diff: sscm_comm.h
- Revision:
- 3:e9053e5e7175
- Parent:
- 2:1f9887337a1b
- Child:
- 4:66d1a4200f67
--- a/sscm_comm.h Wed Sep 24 09:12:42 2014 +0000 +++ b/sscm_comm.h Wed Sep 24 10:29:42 2014 +0000 @@ -2,10 +2,11 @@ #define SSCM_COMM_H /* * v 1.01 inital published , tested - 8 v 1.20 added devnr, added range checking + * v 1.20 added devnr, added range checking + * v 1.30 added \0 to cmd field */ -#define SSCM_COMM_LIB_HDR_VERSION "1.20" +#define SSCM_COMM_LIB_HDR_VERSION "1.30" #define MAXCMDLLENGTH 256 @@ -20,7 +21,7 @@ u8 con; // 1 char 0--2 ssc_dev dev; // 2 char 01--03 u8 devnr; - char cmd[4]; // 3 char + char cmd[5]; // 5 char + \0 u8 ch; // 2 char 00 -- FF or register nr u32 datain; // 2 char 0000 -- FFFF u32 dataout;// 2 char 00 -- FF