lpf2.port_expander

LPF2 Port Expander support (extension device with 4 sub-ports).

Submodules

Classes

virtual_device

Emulated port-expander device (server side).

Package Contents

class lpf2.port_expander.virtual_device[source]

Bases: lpf2.virtual.device

Emulated port-expander device (server side).

Aggregates up to four attached lpf2.port objects and forwards LPF2 traffic between them and the upstream port. Attach ports via attachPort() before adding the virtual device to a lpf2.virtual.port.

Construct an empty port-expander device (no ports attached).

attachPort(port_num: int, port: lpf2.port) None[source]

Bind port as sub-port port_num (0..3, see port_num).