equal
deleted
inserted
replaced
45 typedef struct timespec IEC_TIME; |
45 typedef struct timespec IEC_TIME; |
46 typedef struct timespec IEC_DATE; |
46 typedef struct timespec IEC_DATE; |
47 typedef struct timespec IEC_DT; |
47 typedef struct timespec IEC_DT; |
48 typedef struct timespec IEC_TOD; |
48 typedef struct timespec IEC_TOD; |
49 |
49 |
|
50 #ifndef STR_MAX_LEN |
50 #define STR_MAX_LEN 40 |
51 #define STR_MAX_LEN 40 |
51 typedef int8_t __strlen_t; |
52 #endif |
|
53 |
|
54 #ifndef STR_LEN_TYPE |
|
55 #define STR_LEN_TYPE uint8_t |
|
56 #endif |
|
57 |
|
58 typedef STR_LEN_TYPE __strlen_t; |
52 typedef struct { |
59 typedef struct { |
53 __strlen_t len; |
60 __strlen_t len; |
54 uint8_t body[STR_MAX_LEN]; |
61 uint8_t body[STR_MAX_LEN]; |
55 } IEC_STRING; |
62 } IEC_STRING; |
56 |
63 |