serial_tool

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERIAL_READ_TIMEOUT_MS = 20
)

Variables

View Source
var (
	AVAILABLE_BAUDRATE = []int{2400, 4800, 9600, 19200, 38400, 57600, 115200}
	BAUDRATE           = 9600
)

Functions

func ConnPort

func ConnPort(portName string) error

func GetConnectedStatus added in v0.2.0

func GetConnectedStatus() bool

func ScanPort

func ScanPort() ([]string, error)

func SerialDataProvider

func SerialDataProvider(ctx context.Context, serRecvChan chan<- []byte)

func SerialDataWriter

func SerialDataWriter(ctx context.Context, btChan <-chan []byte, repErr chan<- error)

func SetConnectedStatus added in v0.2.0

func SetConnectedStatus(stat bool)

func ShutPort

func ShutPort()

Types

This section is empty.

Jump to

Keyboard shortcuts

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