lib/iec_types_all.h
changeset 497 5b7a0d9838d2
parent 404 ff3313e22883
child 628 fe0d516fe291
equal deleted inserted replaced
496:fa43fed1084c 497:5b7a0d9838d2
    84   IEC_##type fvalue;\
    84   IEC_##type fvalue;\
    85 } __IEC_##type##_p;
    85 } __IEC_##type##_p;
    86 
    86 
    87 #define __DECLARE_DERIVED_TYPE(type, base)\
    87 #define __DECLARE_DERIVED_TYPE(type, base)\
    88 typedef base type;\
    88 typedef base type;\
    89 typedef __IEC_##base##_t __IEC_##type##_t;
    89 typedef __IEC_##base##_t __IEC_##type##_t;\
       
    90 typedef __IEC_##base##_p __IEC_##type##_p;
    90 
    91 
    91 #define __DECLARE_COMPLEX_STRUCT(type)\
    92 #define __DECLARE_COMPLEX_STRUCT(type)\
    92 typedef struct {\
    93 typedef struct {\
    93   type value;\
    94   type value;\
    94   IEC_BYTE flags;\
    95   IEC_BYTE flags;\