Skip to main content

Module device

Module device 

Source
Expand description

Device probe and port open helpers. Device discovery and port enumeration.

Use describe_device after the transport is ready (interfaces readable) to learn how many serial ports the chip exposes, then open_port with a zero-based index.

Structs§

DeviceDescriptor
USB device identify + probed driver and ports.
PortDescriptor
One logical serial port exposed by a USB composite / multi-interface device.

Functions§

describe_device
Probe VID/PID + interface layout without opening a driver session.
open_port
Open port port_index (0 for single-port chips like CH340).