class documentation

class tagIOMultiplexing: (source)

Constructor: tagIOMultiplexing.unpack(data)

View In Hierarchy

Represents an I/O multiplexing command.

Class Method unpack Unpacks a bytes sequence into a tagIOMultiplexing object.
Method pack Packs the tagIOMultiplexing object into a bytes sequence.
Class Variable address Undocumented
Class Variable multiplex Undocumented

Unpacks a bytes sequence into a tagIOMultiplexing object.

Parameters
data:bytesThe bytes to unpack, expected to be 2 bytes (2 uint8s).
Returns
tagIOMultiplexingA tagIOMultiplexing object.
Raises
struct.errorIf the input bytes are not the expected size (2 bytes).
ValueErrorIf the unpacked byte value for multiplex does not correspond to a valid IOFunction enum member.
def pack(self) -> bytes: (source)

Packs the tagIOMultiplexing object into a bytes sequence.

Packs the address (uint8) and multiplex (IOFunction value as uint8) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (1 + 1 = 2 bytes).

Undocumented

Undocumented