equal
deleted
inserted
replaced
51 |
51 |
52 |
52 |
53 def _ttime(): return (IEC_TIME, |
53 def _ttime(): return (IEC_TIME, |
54 lambda x: td(0, x.s, x.ns/1000), |
54 lambda x: td(0, x.s, x.ns/1000), |
55 lambda t, x: t(x.days * 24 * 3600 + x.seconds, x.microseconds*1000)) |
55 lambda t, x: t(x.days * 24 * 3600 + x.seconds, x.microseconds*1000)) |
|
56 |
56 |
57 |
57 SameEndianessTypeTranslator = { |
58 SameEndianessTypeTranslator = { |
58 "BOOL": _t(c_uint8, lambda x: x.value != 0), |
59 "BOOL": _t(c_uint8, lambda x: x.value != 0), |
59 "STEP": _t(c_uint8), |
60 "STEP": _t(c_uint8), |
60 "TRANSITION": _t(c_uint8), |
61 "TRANSITION": _t(c_uint8), |