serial

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort     = "COM1"
	DefaultBaudRate = 9600
)

Variables

This section is empty.

Functions

func AddrFromConfig

func AddrFromConfig(cfg *goserial.Config) string

func NewConn

func NewConn(port io.ReadWriteCloser, addr net.Addr, cancel context.CancelFunc) net.Conn

func ParseConfigFromAddr

func ParseConfigFromAddr(addr string) *goserial.Config

COM1,9600,odd

Types

type Addr

type Addr struct {
	Port string
}

func (*Addr) Network

func (a *Addr) Network() string

func (*Addr) String

func (a *Addr) String() string

Jump to

Keyboard shortcuts

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