mst

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IconData []byte = []byte{}/* 28830 elements not displayed */
View Source
var NOSESSIONCMD = []string{
	"none",
	"MIIO_net_change",
}

Functions

func Main

func Main()

func Send

func Send(cmd string) error

func Start

func Start(sc *SerialConfig, o chan string) error

func Status

func Status() bool

func Stop

func Stop()

Types

type ISerial

type ISerial interface {
	Init(c *SerialConfig) error
	Write(data []byte) error
	Read() ([]byte, error)
	Close() error
}

type SerialConfig

type SerialConfig struct {
	Name string
	Baud int
	Bits int
	Pary int
	Stop int
}

type SerialImpl

type SerialImpl struct {
}

func (*SerialImpl) Close

func (s *SerialImpl) Close() error

func (*SerialImpl) Init

func (s *SerialImpl) Init(c *SerialConfig) error

func (*SerialImpl) Read

func (s *SerialImpl) Read() ([]byte, error)

func (*SerialImpl) Write

func (s *SerialImpl) Write(data []byte) error

Jump to

Keyboard shortcuts

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