diff -r 34da877021d5 -r 22a009561502 erpc_interface/erpc_PLCObject/common.py --- a/erpc_interface/erpc_PLCObject/common.py Wed Jan 17 22:09:32 2024 +0100 +++ b/erpc_interface/erpc_PLCObject/common.py Fri Jan 19 19:58:44 2024 +0100 @@ -1,5 +1,5 @@ # -# Generated by erpcgen 1.11.0 on Wed Jan 17 21:59:20 2024. +# Generated by erpcgen 1.11.0 on Fri Jan 19 08:26:41 2024. # # AUTOGENERATED - DO NOT EDIT # @@ -13,6 +13,31 @@ Broken = 3 Disconnected = 4 +class IECtype_enum: + BOOL = 0 + STEP = 1 + TRANSITION = 2 + ACTION = 3 + SINT = 4 + USINT = 5 + BYTE = 6 + STRING = 7 + INT = 8 + UINT = 9 + WORD = 10 + DINT = 11 + UDINT = 12 + DWORD = 13 + LINT = 14 + ULINT = 15 + LWORD = 16 + REAL = 17 + LREAL = 18 + TIME = 19 + TOD = 20 + DATE = 21 + DT = 22 + # Structures data types declarations class log_message(object): @@ -187,12 +212,12 @@ class trace_order(object): def __init__(self, idx=None, iectype=None, force=None): self.idx = idx # uint32 - self.iectype = iectype # uint8 + self.iectype = iectype # IECtype_enum self.force = force # binary def _read(self, codec): self.idx = codec.read_uint32() - self.iectype = codec.read_uint8() + self.iectype = codec.read_int32() self.force = codec.read_binary() return self @@ -202,7 +227,7 @@ codec.write_uint32(self.idx) if self.iectype is None: raise ValueError("iectype is None") - codec.write_uint8(self.iectype) + codec.write_int32(self.iectype) if self.force is None: raise ValueError("force is None") codec.write_binary(self.force)