serial

package
v0.0.0-...-6e85980 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSerialPortFunc

func NewSerialPortFunc(tty string, baud int) func() (io.ReadWriteCloser, error)

func RunPipe

func RunPipe(tty string, baud int)

RunPipe opens the supplied tty and pipes data between it and stdin/stdout.

Types

type SerialPort

type SerialPort struct {
	// contains filtered or unexported fields
}

func (*SerialPort) Close

func (sp *SerialPort) Close() error

func (*SerialPort) Read

func (sp *SerialPort) Read(b []byte) (int, error)

func (*SerialPort) Write

func (sp *SerialPort) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL