equal
deleted
inserted
replaced
41 |
41 |
42 class IEC_TIME(Structure): |
42 class IEC_TIME(Structure): |
43 """ |
43 """ |
44 Must be changed according to changes in iec_types.h |
44 Must be changed according to changes in iec_types.h |
45 """ |
45 """ |
46 _fields_ = [("s", c_long), #tv_sec |
46 _fields_ = [("s", c_long), # tv_sec |
47 ("ns", c_long)] #tv_nsec |
47 ("ns", c_long)] # tv_nsec |
48 |
48 |
49 |
49 |
50 def _t(t, u=lambda x:x.value, p=lambda t,x:t(x)): return (t, u, p) |
50 def _t(t, u=lambda x:x.value, p=lambda t,x:t(x)): return (t, u, p) |
51 |
51 |
52 |
52 |