lib/iec_types.h
changeset 742 a9741eb5aaab
parent 741 cdce312be3c4
child 818 2a3f34967cae
equal deleted inserted replaced
739:438cb1078886 742:a9741eb5aaab
    30 typedef double   IEC_LREAL;
    30 typedef double   IEC_LREAL;
    31 
    31 
    32 typedef struct {
    32 typedef struct {
    33     long int tv_sec;            /* Seconds.  */
    33     long int tv_sec;            /* Seconds.  */
    34     long int tv_nsec;           /* Nanoseconds.  */
    34     long int tv_nsec;           /* Nanoseconds.  */
    35 }__attribute__((packed)) IEC_TIMESPEC;
    35 } /* __attribute__((packed)) */ IEC_TIMESPEC;  /* packed is gcc specific! */
    36 
    36 
    37 typedef IEC_TIMESPEC IEC_TIME;
    37 typedef IEC_TIMESPEC IEC_TIME;
    38 typedef IEC_TIMESPEC IEC_DATE;
    38 typedef IEC_TIMESPEC IEC_DATE;
    39 typedef IEC_TIMESPEC IEC_DT;
    39 typedef IEC_TIMESPEC IEC_DT;
    40 typedef IEC_TIMESPEC IEC_TOD;
    40 typedef IEC_TIMESPEC IEC_TOD;
    49 
    49 
    50 typedef STR_LEN_TYPE __strlen_t;
    50 typedef STR_LEN_TYPE __strlen_t;
    51 typedef struct {
    51 typedef struct {
    52     __strlen_t len;
    52     __strlen_t len;
    53     uint8_t body[STR_MAX_LEN];
    53     uint8_t body[STR_MAX_LEN];
    54 } __attribute__((packed)) IEC_STRING;
    54 } /* __attribute__((packed)) */ IEC_STRING;  /* packed is gcc specific! */
    55 
    55 
    56 #endif /*IEC_TYPES_H*/
    56 #endif /*IEC_TYPES_H*/