serial

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCT630Baud = 9600
	DefaultCT630Bits = 8
)

Variables

This section is empty.

Functions

func GuessPortName

func GuessPortName() (string, error)

Types

type ConsoleWriter

type ConsoleWriter struct{}

func (*ConsoleWriter) Write

func (*ConsoleWriter) Write(instruction string) (int, error)

type SerialWriter

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

func TryNew

func TryNew(device string) (*SerialWriter, error)

func (*SerialWriter) Write

func (w *SerialWriter) Write(data string) (int, error)

type Writer

type Writer interface {
	Write(data string) (int, error)
}

Jump to

Keyboard shortcuts

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