Categorygithub.com/twpayne/go-serial
modulepackage
0.0.0-20240402210304-e3dcd07446c5
Repository: https://github.com/twpayne/go-serial.git
Documentation: pkg.go.dev

# README

go-serial

PkgGoDev

Package serial handles serial ports.

Features

Compared to existing libraries like https://github.com/tarm/serial, go-serial is:

  • Maintained.
  • Linux, macOS, and *BSD only.
  • Enables reconfiguration of open ports.
  • Uses modern Go libraries (golang.org/x/sys/unix).

License

MIT

# Packages

No description provided by the author

# Functions

Open opens the serial port at path.
OpenAndConfigure opens the serial port at path and configures it with the given config.
Paths returns a list of paths to serial devices.

# Constants

Parities.
Parities.
Parities.
Stop bits.
Stop bits.

# Structs

A Config is a serial port configuration.
A Port is a serial port.

# Type aliases

A Parity is a parity.
A StopBits is the number of stop bits.