Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Port ¶
type Port interface { io.ReadWriteCloser /* Configuration */ SetInterfaceRate(rate uint32) error SetFlowControl(enabled bool) error /* Pins */ SetDTR(enabled bool) error SetRTS(enabled bool) error GetPins() (PortPins, error) /* Break */ DoBreak(duration time.Duration) error }
Port is an extended io.ReadWriteCloser that also allows changing some serial port specific settings
func Open ¶
func Open(options *PortOptions) (Port, error)
Open creates an object that implements the SerialPort interface
type PortOptions ¶
PortOptions is a parameter struct for Open
Click to show internal directories.
Click to hide internal directories.