equal
deleted
inserted
replaced
27 typedef uint64_t IEC_LWORD; |
27 typedef uint64_t IEC_LWORD; |
28 |
28 |
29 typedef float IEC_REAL; |
29 typedef float IEC_REAL; |
30 typedef double IEC_LREAL; |
30 typedef double IEC_LREAL; |
31 |
31 |
32 #pragma pack(push,1) |
|
33 typedef struct { |
32 typedef struct { |
34 long int tv_sec; /* Seconds. */ |
33 long int tv_sec; /* Seconds. */ |
35 long int tv_nsec; /* Nanoseconds. */ |
34 long int tv_nsec; /* Nanoseconds. */ |
36 }IEC_TIMESPEC; |
35 }__attribute__((packed)) IEC_TIMESPEC; |
37 #pragma pack(pop) |
|
38 |
36 |
39 typedef IEC_TIMESPEC IEC_TIME; |
37 typedef IEC_TIMESPEC IEC_TIME; |
40 typedef IEC_TIMESPEC IEC_DATE; |
38 typedef IEC_TIMESPEC IEC_DATE; |
41 typedef IEC_TIMESPEC IEC_DT; |
39 typedef IEC_TIMESPEC IEC_DT; |
42 typedef IEC_TIMESPEC IEC_TOD; |
40 typedef IEC_TIMESPEC IEC_TOD; |
48 #ifndef STR_LEN_TYPE |
46 #ifndef STR_LEN_TYPE |
49 #define STR_LEN_TYPE int8_t |
47 #define STR_LEN_TYPE int8_t |
50 #endif |
48 #endif |
51 |
49 |
52 typedef STR_LEN_TYPE __strlen_t; |
50 typedef STR_LEN_TYPE __strlen_t; |
53 #pragma pack(push,1) |
|
54 typedef struct { |
51 typedef struct { |
55 __strlen_t len; |
52 __strlen_t len; |
56 uint8_t body[STR_MAX_LEN]; |
53 uint8_t body[STR_MAX_LEN]; |
57 } IEC_STRING; |
54 } __attribute__((packed)) IEC_STRING; |
58 #pragma pack(pop) |
|
59 |
55 |
60 #endif /*IEC_TYPES_H*/ |
56 #endif /*IEC_TYPES_H*/ |