base_schilling
SchillingRaw.hpp
Go to the documentation of this file.
1 #ifndef BASE_SCHILLING_SCHILLINGRAW_HPP
2 #define BASE_SCHILLING_SCHILLINGRAW_HPP
3 
4 namespace schilling_raw
5 {
6  #define SCHILL_LEN_HEADER 4
7  #define SCHILL_CMD_READ 0x72
8  #define SCHILL_CMD_WRITE 0x77
9  #define SCHILL_CMD_SET 0x73
10  #define SCHILL_CMD_RESET 0x74
11 
12  #define SCHILL_CMD_MSG 0xC4
13  #define SCHILL_STAT_UNCHG_MSG 0x06
14  #define SCHILL_STAT_CHG_MSG 0x16
15  #define SCHILL_REPL_UNCHG_MSG 0xF2
16  #define SCHILL_REPL_CHG_MSG 0xD2
17  #define SCHILL_COMM_STAT_MSG 0xE2
18 
19  struct MsgHeader
20  {
21  unsigned char type;
22  unsigned char address;
23  unsigned char length;
24  unsigned char cmd;
26  : type(0),address(0),length(0),cmd(0)
27  {}
28  };
29 
30  struct Msg
31  {
33  char* msg_body;
34  Msg()
35  : msg_body(NULL)
36  {}
37  };
38 
39 }
40 
41 #endif
unsigned char type
Definition: SchillingRaw.hpp:21
Msg()
Definition: SchillingRaw.hpp:34
MsgHeader header
Definition: SchillingRaw.hpp:32
MsgHeader()
Definition: SchillingRaw.hpp:25
Definition: SchillingRaw.hpp:30
Definition: SchillingRaw.hpp:19
char * msg_body
Definition: SchillingRaw.hpp:33
unsigned char cmd
Definition: SchillingRaw.hpp:24
unsigned char address
Definition: SchillingRaw.hpp:22
unsigned char length
Definition: SchillingRaw.hpp:23