serial

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// 码率
	BaudRate uint

	// 串口
	PortName string

	Ser io.ReadWriteCloser
}

func New

func New(rate uint, name string) *Connector

func (Connector) Close

func (c Connector) Close() error

func (*Connector) Connect

func (c *Connector) Connect() (err error)

Jump to

Keyboard shortcuts

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