Versions in this module Expand all Collapse all v0 v0.2.0 Jan 4, 2021 Changes in this version + const LingoDigitalAudioID + const LingoDisplayRemoteID + const LingoEqID + const LingoExtRemoteID + const LingoGeneralID + const LingoRFTunerID + const LingoSimpleRemoteID + const LingoSportsID + const LingoStorageID + const LingoUSBHostID + const PacketStartByte + func BoolToByte(b bool) byte + func ByteToBool(b byte) bool + func Checksum(p []byte) uint8 + func DumpLingos() string + func RegisterLingos(lingoID uint8, m interface{}) error + func Respond(req *Command, pw CommandWriter, payload interface{}) + func Send(pw CommandWriter, payload interface{}) + func StringToBytes(s string) []byte + func TrxReset() + type CRC8 interface + Sum8 func() uint8 + func NewCRC8() CRC8 + type CmdBuffer struct + Commands []*Command + func (cbuf *CmdBuffer) WriteCommand(cmd *Command) error + type Command struct + ID LingoCmdID + Payload interface{} + Transaction *Transaction + func BuildCommand(payload interface{}) (*Command, error) + type CommandReader interface + ReadCommand func() (*Command, error) + type CommandSerde struct + TrxEnabled bool + func (s *CommandSerde) MarshalCmd(cmd *Command) ([]byte, error) + func (s *CommandSerde) UnmarshalCmd(pkt []byte) (*Command, error) + type CommandWriter interface + WriteCommand func(*Command) error + type FrameReadWriter interface + type FrameReader interface + ReadFrame func() ([]byte, error) + type FrameWriter interface + WriteFrame func(data []byte) error + type LingoCmdID uint32 + func LookupID(v interface{}) (id LingoCmdID, ok bool) + func NewLingoCmdID(lingo, cmd uint16) LingoCmdID + func (id LingoCmdID) CmdID() uint16 + func (id LingoCmdID) GoString() string + func (id LingoCmdID) LingoID() uint8 + func (id LingoCmdID) String() string + type LookupResult struct + Payload interface{} + Transaction bool + func Lookup(id LingoCmdID, payloadSize int, defaultTrxEnabled bool) (LookupResult, bool) + type PacketReader struct + func NewPacketReader(frame []byte) *PacketReader + func (pd *PacketReader) ReadPacket() ([]byte, error) + type PacketWriter struct + func NewPacketWriter() *PacketWriter + func (pw *PacketWriter) Bytes() []byte + func (pw *PacketWriter) WritePacket(payload []byte) error + type Transaction uint16 + func NewTransaction(t uint16) *Transaction + func TrxNext() *Transaction + func (tr *Transaction) Copy() *Transaction + func (tr *Transaction) Delta(d int) *Transaction + func (tr Transaction) GoString() string + func (tr Transaction) String() string + type UnknownPayload []byte