edouard@3884: # edouard@4035: # Generated by erpcgen 1.13.0 on Fri Nov 8 11:06:24 2024. edouard@3884: # edouard@3884: # AUTOGENERATED - DO NOT EDIT edouard@3884: # edouard@3884: edouard@3884: edouard@3884: # Enumerators data types declarations edouard@3884: class PLCstatus_enum: edouard@3884: Empty = 0 edouard@3884: Stopped = 1 edouard@3884: Started = 2 edouard@3884: Broken = 3 edouard@3884: Disconnected = 4 edouard@3884: edouard@3884: edouard@3884: # Structures data types declarations edouard@3884: class log_message(object): edouard@3884: def __init__(self, msg=None, tick=None, sec=None, nsec=None): edouard@3884: self.msg = msg # string edouard@3884: self.tick = tick # uint32 edouard@3884: self.sec = sec # uint32 edouard@3884: self.nsec = nsec # uint32 edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.msg = codec.read_string() edouard@3884: self.tick = codec.read_uint32() edouard@3884: self.sec = codec.read_uint32() edouard@3884: self.nsec = codec.read_uint32() edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.msg is None: edouard@3884: raise ValueError("msg is None") edouard@3884: codec.write_string(self.msg) edouard@3884: if self.tick is None: edouard@3884: raise ValueError("tick is None") edouard@3884: codec.write_uint32(self.tick) edouard@3884: if self.sec is None: edouard@3884: raise ValueError("sec is None") edouard@3884: codec.write_uint32(self.sec) edouard@3884: if self.nsec is None: edouard@3884: raise ValueError("nsec is None") edouard@3884: codec.write_uint32(self.nsec) edouard@3884: edouard@3884: def __str__(self): edouard@3884: return "<%s@%x msg=%s tick=%s sec=%s nsec=%s>" % (self.__class__.__name__, id(self), self.msg, self.tick, self.sec, self.nsec) edouard@3884: edouard@3884: def __repr__(self): edouard@3884: return self.__str__() edouard@3884: edouard@3884: class PSKID(object): edouard@3884: def __init__(self, ID=None, PSK=None): edouard@3884: self.ID = ID # string edouard@3884: self.PSK = PSK # string edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.ID = codec.read_string() edouard@3884: self.PSK = codec.read_string() edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.ID is None: edouard@3884: raise ValueError("ID is None") edouard@3884: codec.write_string(self.ID) edouard@3884: if self.PSK is None: edouard@3884: raise ValueError("PSK is None") edouard@3884: codec.write_string(self.PSK) edouard@3884: edouard@3884: def __str__(self): edouard@3884: return "<%s@%x ID=%s PSK=%s>" % (self.__class__.__name__, id(self), self.ID, self.PSK) edouard@3884: edouard@3884: def __repr__(self): edouard@3884: return self.__str__() edouard@3884: edouard@3884: class PLCstatus(object): edouard@3884: def __init__(self, PLCstatus=None, logcounts=None): edouard@3884: self.PLCstatus = PLCstatus # PLCstatus_enum edouard@3884: self.logcounts = logcounts # uint32[4] edouard@3884: edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.PLCstatus = codec.read_int32() edouard@3884: self.logcounts = [] edouard@3884: for _i0 in range(4): edouard@3884: _v0 = codec.read_uint32() edouard@3884: self.logcounts.append(_v0) edouard@3884: edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.PLCstatus is None: edouard@3884: raise ValueError("PLCstatus is None") edouard@3884: codec.write_int32(self.PLCstatus) edouard@3884: if self.logcounts is None: edouard@3884: raise ValueError("logcounts is None") edouard@3884: for _i0 in self.logcounts: edouard@3884: codec.write_uint32(_i0) edouard@3884: edouard@3884: edouard@3884: def __str__(self): edouard@3884: return "<%s@%x PLCstatus=%s logcounts=%s>" % (self.__class__.__name__, id(self), self.PLCstatus, self.logcounts) edouard@3884: edouard@3884: def __repr__(self): edouard@3884: return self.__str__() edouard@3884: edouard@3884: class trace_sample(object): edouard@3884: def __init__(self, tick=None, TraceBuffer=None): edouard@3884: self.tick = tick # uint32 edouard@3884: self.TraceBuffer = TraceBuffer # binary edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.tick = codec.read_uint32() edouard@3884: self.TraceBuffer = codec.read_binary() edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.tick is None: edouard@3884: raise ValueError("tick is None") edouard@3884: codec.write_uint32(self.tick) edouard@3884: if self.TraceBuffer is None: edouard@3884: raise ValueError("TraceBuffer is None") edouard@3884: codec.write_binary(self.TraceBuffer) edouard@3884: edouard@3884: def __str__(self): edouard@3884: return "<%s@%x tick=%s TraceBuffer=%s>" % (self.__class__.__name__, id(self), self.tick, self.TraceBuffer) edouard@3884: edouard@3884: def __repr__(self): edouard@3884: return self.__str__() edouard@3884: edouard@3884: class TraceVariables(object): edouard@3884: def __init__(self, PLCstatus=None, traces=None): edouard@3884: self.PLCstatus = PLCstatus # PLCstatus_enum edouard@3884: self.traces = traces # list edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.PLCstatus = codec.read_int32() edouard@3884: _n0 = codec.start_read_list() edouard@3884: self.traces = [] edouard@3884: for _i0 in range(_n0): edouard@3884: _v0 = trace_sample()._read(codec) edouard@3884: self.traces.append(_v0) edouard@3884: edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.PLCstatus is None: edouard@3884: raise ValueError("PLCstatus is None") edouard@3884: codec.write_int32(self.PLCstatus) edouard@3884: if self.traces is None: edouard@3884: raise ValueError("traces is None") edouard@3884: codec.start_write_list(len(self.traces)) edouard@3884: for _i0 in self.traces: edouard@3884: _i0._write(codec) edouard@3884: edouard@3884: edouard@3884: def __str__(self): edouard@3884: return "<%s@%x PLCstatus=%s traces=%s>" % (self.__class__.__name__, id(self), self.PLCstatus, self.traces) edouard@3884: edouard@3884: def __repr__(self): edouard@3884: return self.__str__() edouard@3884: edouard@3884: class extra_file(object): edouard@3884: def __init__(self, fname=None, blobID=None): edouard@3884: self.fname = fname # string edouard@3884: self.blobID = blobID # binary edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.fname = codec.read_string() edouard@3884: self.blobID = codec.read_binary() edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.fname is None: edouard@3884: raise ValueError("fname is None") edouard@3884: codec.write_string(self.fname) edouard@3884: if self.blobID is None: edouard@3884: raise ValueError("blobID is None") edouard@3884: codec.write_binary(self.blobID) edouard@3884: edouard@3884: def __str__(self): edouard@3884: return "<%s@%x fname=%s blobID=%s>" % (self.__class__.__name__, id(self), self.fname, self.blobID) edouard@3884: edouard@3884: def __repr__(self): edouard@3884: return self.__str__() edouard@3884: edouard@3884: class trace_order(object): edouard@3887: def __init__(self, idx=None, force=None): edouard@3884: self.idx = idx # uint32 edouard@3884: self.force = force # binary edouard@3884: edouard@3884: def _read(self, codec): edouard@3884: self.idx = codec.read_uint32() edouard@3884: self.force = codec.read_binary() edouard@3884: return self edouard@3884: edouard@3884: def _write(self, codec): edouard@3884: if self.idx is None: edouard@3884: raise ValueError("idx is None") edouard@3884: codec.write_uint32(self.idx) edouard@3884: if self.force is None: edouard@3884: raise ValueError("force is None") edouard@3884: codec.write_binary(self.force) edouard@3884: edouard@3884: def __str__(self): edouard@3887: return "<%s@%x idx=%s force=%s>" % (self.__class__.__name__, id(self), self.idx, self.force) edouard@3887: edouard@3887: def __repr__(self): edouard@3887: return self.__str__() edouard@3887: