Versions in this module Expand all Collapse all v0 v0.1.1 Oct 28, 2021 Changes in this version + const V1MagicByte + const V2FlagSigned + const V2MagicByte + type Frame interface + Clone func() Frame + Decode func(*bufio.Reader) error + Encode func([]byte, []byte) ([]byte, error) + GenChecksum func(byte) uint16 + GetChecksum func() uint16 + GetComponentID func() byte + GetMessage func() msg.Message + GetSystemID func() byte + type V1Frame struct + Checksum uint16 + ComponentID byte + Message msg.Message + SequenceID byte + SystemID byte + func (f *V1Frame) Clone() Frame + func (f *V1Frame) Decode(br *bufio.Reader) error + func (f *V1Frame) Encode(buf []byte, msgEncoded []byte) ([]byte, error) + func (f *V1Frame) GenChecksum(crcExtra byte) uint16 + func (f *V1Frame) GetChecksum() uint16 + func (f *V1Frame) GetComponentID() byte + func (f *V1Frame) GetMessage() msg.Message + func (f *V1Frame) GetSystemID() byte + type V2Frame struct + Checksum uint16 + CompatibilityFlag byte + ComponentID byte + IncompatibilityFlag byte + Message msg.Message + SequenceID byte + Signature *V2Signature + SignatureLinkID byte + SignatureTimestamp uint64 + SystemID byte + func (f *V2Frame) Clone() Frame + func (f *V2Frame) Decode(br *bufio.Reader) error + func (f *V2Frame) Encode(buf []byte, msgEncoded []byte) ([]byte, error) + func (f *V2Frame) GenChecksum(crcExtra byte) uint16 + func (f *V2Frame) GenSignature(key *V2Key) *V2Signature + func (f *V2Frame) GetChecksum() uint16 + func (f *V2Frame) GetComponentID() byte + func (f *V2Frame) GetMessage() msg.Message + func (f *V2Frame) GetSystemID() byte + func (f *V2Frame) IsSigned() bool + type V2Key [32]byte + func NewV2Key(in []byte) *V2Key + type V2Signature [6]byte