armlink

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExtendedStop  = byte(17)
	ExtendedReset = byte(64)
	ExtendedSleep = byte(96)
)

Functions

This section is empty.

Types

type ArmLinkPacket

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

ArmLinkPacket holds the armlink packet parameters

func NewArmLinkPacket

func NewArmLinkPacket(br, sr, er, wa, wr, g uint16, d, b, e byte) *ArmLinkPacket

NewArmLinkPacket creates a new ArmLinkPacket

func (*ArmLinkPacket) Bytes

func (alp *ArmLinkPacket) Bytes() []byte

func (*ArmLinkPacket) SetExtended

func (alp *ArmLinkPacket) SetExtended(e byte)

SetExtended set the extendedInstructionByte

func (*ArmLinkPacket) String

func (alp *ArmLinkPacket) String() string

type ArmLinkSerial

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

func NewArmLinkSerial

func NewArmLinkSerial() *ArmLinkSerial

func (*ArmLinkSerial) Close

func (als *ArmLinkSerial) Close()

func (*ArmLinkSerial) Send

func (als *ArmLinkSerial) Send(b []byte)

Jump to

Keyboard shortcuts

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