targets/typemapping.py
changeset 594 120bc22302a1
parent 593 726f58cf97e3
child 595 6348c0110e0f
equal deleted inserted replaced
593:726f58cf97e3 594:120bc22302a1
    60     "LWORD" :      _t(c_uint64),
    60     "LWORD" :      _t(c_uint64),
    61     "REAL" :       _t(c_float),
    61     "REAL" :       _t(c_float),
    62     "LREAL" :      _t(c_double),
    62     "LREAL" :      _t(c_double),
    63     "TIME" :       _t(IEC_TIME, 
    63     "TIME" :       _t(IEC_TIME, 
    64                       lambda x:td(0, x.s, x.ns/1000), 
    64                       lambda x:td(0, x.s, x.ns/1000), 
    65                       lambda t,x:t(x.seconds, x.microseconds*1000)),
    65                       lambda t,x:t(x.days * 24 * 3600 + x.seconds, x.microseconds*1000)),
    66     } 
    66     } 
    67 
    67 
    68 SwapedEndianessTypeTranslator = {
    68 SwapedEndianessTypeTranslator = {
    69     #TODO
    69     #TODO
    70     } 
    70     }