pserial

package module
v0.0.0-...-00fd7a7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

README

pserial

go.dev reference Go Report Card codecov Go stability-experimental sourcegraph

pserial aims to be a replacement for pyserial. Will try to preserve as much syscall compatibility to pyserial as possible.

go mod download github.com/soypat/pserial@latest

This is a experimental WIP. Feel free to contribute!

Documentation

Index

Constants

View Source
const (
	Stop1 = iota
	Stop2
	Stop1_5 // 1.5 stop bits. Only available on some platforms.
)
View Source
const (
	ParityNone = iota
	ParityOdd
	ParityEven
	ParityMark
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode struct {
	// Baud is amount of data and non-data bits sent over the wire per second.
	// Common bauds are 9600, 19200, 115200.
	Baud int
	//
	ByteSize uint8
	Parity   Parity
	StopBits StopBits
}

type Parity

type Parity uint8

type Serial

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

func Open

func Open(name string, config Mode) (*Serial, error)

type StopBits

type StopBits uint8

Jump to

Keyboard shortcuts

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