from ctypes import Structure,c_uint8,c_uint32

from mbus.MBusDataVariable import MBusDataVariable
from mbus.MBusDataFixed import MBusDataFixed

class MBusFrameData(Structure):
    _fields_ = [("data_var",   MBusDataVariable),
                ("data_fixed", MBusDataFixed),
                ("type",       c_uint32),
                ("error",      c_uint32)]

    def __str__(self):
        return "MBusFrameData: XXX"

@@ -169,16 +169,186 @@
 cture):%0A
+    #%0A    # ABSTRACT DATA FORMAT (error, fixed or variable length)%0A    #%0A    MBUS_DATA_TYPE_FIXED =    1%0A    MBUS_DATA_TYPE_VARIABLE = 2%0A    MBUS_DATA_TYPE_ERROR =    3%0A%0A
     _fie

Define constants for data type.