lostik

package
v0.0.0-...-7a80b81 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RadioInitErr = errors.New("problem initialising radio")
	RadioTxErr   = errors.New("failed transmitting data")
	RadioRxErr   = errors.New("failed receiving data")
)

Functions

This section is empty.

Types

type LoStik

type LoStik struct {
	DevicePortName string
	BaudRate       int
	// contains filtered or unexported fields
}

func New

func New(devicePortName string, baudRate int) (LoStik, error)

func (LoStik) BlueLedOff

func (ls LoStik) BlueLedOff() error

func (LoStik) BlueLedOn

func (ls LoStik) BlueLedOn() error

func (LoStik) RadioInit

func (ls LoStik) RadioInit(initCmds ...string) error

func (LoStik) ReceivingLedPattern

func (ls LoStik) ReceivingLedPattern() error

func (LoStik) RedLedOff

func (ls LoStik) RedLedOff() error

func (LoStik) RedLedOn

func (ls LoStik) RedLedOn() error

func (LoStik) Rx

func (ls LoStik) Rx() ([]byte, error)

func (LoStik) SendingLedPattern

func (ls LoStik) SendingLedPattern() error

func (LoStik) SendingReceivingInterleavingLedPattern

func (ls LoStik) SendingReceivingInterleavingLedPattern() error

func (LoStik) Tx

func (ls LoStik) Tx(data []byte) error

Jump to

Keyboard shortcuts

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