targets/typemapping.py
changeset 1737 a39c2918c015
parent 1736 7e61baa047f0
child 1738 d2e979738700
equal deleted inserted replaced
1736:7e61baa047f0 1737:a39c2918c015
    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