Documentation
¶
Overview ¶
Package linuxserial provides utilitis for working with serial devices in Linux. This was written to list and canonicalize RS-485 USB devices used to connect to a heat pump using modbus RTU.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a pointer to a serial device.
func FromPath ¶
FromPath returns a serial device based on a file path like "/dev/ttyUSB0" or /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_XYZ-if00-port0.
func (Device) Canonicalize ¶
Canonicalize returns a device that points to the same underlying device but has a persistent pathname. The returned value typically begins with /dev/serial/by-id.
Click to show internal directories.
Click to hide internal directories.