Versions in this module Expand all Collapse all v0 v0.2.3 Sep 16, 2021 Changes in this version + const MaxDataLength + const MaxExtendedID + const MaxID + func CheckBitRangeBigEndian(frameLength, rangeStart, rangeLength uint8) error + func CheckBitRangeLittleEndian(frameLength, rangeStart, rangeLength uint8) error + func CheckValue(value uint64, bits uint8) error + type Data [MaxDataLength]byte + func (d *Data) Bit(i uint8) bool + func (d *Data) PackBigEndian() uint64 + func (d *Data) PackLittleEndian() uint64 + func (d *Data) SetBit(i uint8, value bool) + func (d *Data) SetSignedBitsBigEndian(start, length uint8, value int64) + func (d *Data) SetSignedBitsLittleEndian(start, length uint8, value int64) + func (d *Data) SetUnsignedBitsBigEndian(start, length uint8, value uint64) + func (d *Data) SetUnsignedBitsLittleEndian(start, length uint8, value uint64) + func (d *Data) SignedBitsBigEndian(start, length uint8) int64 + func (d *Data) SignedBitsLittleEndian(start, length uint8) int64 + func (d *Data) UnpackBigEndian(packed uint64) + func (d *Data) UnpackLittleEndian(packed uint64) + func (d *Data) UnsignedBitsBigEndian(start, length uint8) uint64 + func (d *Data) UnsignedBitsLittleEndian(start, length uint8) uint64 + type Frame struct + Data Data + ID uint32 + IsExtended bool + IsRemote bool + Length uint8 + func (f *Frame) UnmarshalJSON(jsonData []byte) error + func (f *Frame) UnmarshalString(s string) error + func (f *Frame) Validate() error + func (f Frame) JSON() string + func (f Frame) MarshalJSON() ([]byte, error) + func (f Frame) String() string + type FrameMarshaler interface + MarshalFrame func() (Frame, error) + type FrameUnmarshaler interface + UnmarshalFrame func(Frame) error + type Message interface