PortConfiguration

data class PortConfiguration(val baudRate: BaudRate = BaudRate.B115200, val dataBits: PortDataBits = PortDataBits.DataBits8, val stopBits: PortStopBits = PortStopBits.StopBits1, val parity: PortParity = PortParity.None, val flowControl: PortFlowControl = PortFlowControl.None)

Port configuration for TTY devices.

Constructors

Link copied to clipboard
constructor(baudRate: BaudRate = BaudRate.B115200, dataBits: PortDataBits = PortDataBits.DataBits8, stopBits: PortStopBits = PortStopBits.StopBits1, parity: PortParity = PortParity.None, flowControl: PortFlowControl = PortFlowControl.None)

Properties

Link copied to clipboard

Baud rate. Actual limits depend on the driver.

Link copied to clipboard

Data bits, usually 8.

Link copied to clipboard

Flow control, usually none.

Link copied to clipboard

Parity, usually none.

Link copied to clipboard

Stop bits, usually 1.

Functions

Link copied to clipboard
open override fun toString(): String

Human-readable representation. Format: baudRate-dataBits-parity-stopBits