Skip to main content

Module list

Module list 

Source
Expand description

Helpers for normalizing port lists returned by serialport-rs.

Functionsยง

apply_android_single_port_per_device
When single_port_per_device is true, keeps one USB serial port per Android device (lowest port index; paths without # are port 0).
apply_single_port_per_device
macOS exposes each serial device twice: /dev/cu.* (callout) and /dev/tty.* (dial-in). serialport-rs returns both; Node.js SerialPort.list() keeps callout only.
enumerate_available_ports
Enumerate available serial ports (desktop), with optional macOS de-duplication.
port_info_from_type
Build metadata map for one enumerated port (desktop).