microspeclib.internal.payload module

class microspeclib.internal.payload.MicroSpecPayload

Bases: object

__bytes__()
__eq__(other)

Return self==value.

__getitem__(attr)
__iter__()
__len__()
__repr__()

Return repr(self).

__setattr__(attr, value)

Implement setattr(self, name, value).

__setitem__(attr, value)
__str__()

Return str(self).

__weakref__

list of weak references to the object (if defined)

_init(payload=None, **kwargs)
csv()
pack()
packformat()
packvalues()
unpack(payload)
values()
microspeclib.internal.payload.MicroSpecPayloadClassFactory(protocol, command_id, name, variables, sizes, repeat=None)
class microspeclib.internal.payload.MicroSpecRepeatPayload

Bases: microspeclib.internal.payload.MicroSpecPayload

The difference from the parent class is that the repeat process requires packing arrays, and requires partially-gradually unpacking the payload, since part of the payload defines how much to continue to pack and unpack.

__eq__(other)

Return self==value.

__setattr__(attr, value)

Implement setattr(self, name, value).

__setitem__(attr, value)
_init(*args, **kwargs)
packformat()
packvalues()
unpack(payload)