Documentation ¶
Index ¶
Constants ¶
View Source
const ( MySentry = 0xA2 Meter = 0xA5 // Bayer Contour glucometer RFRemote = 0xA6 // MMT-503 remote Pump = 0xA7 Sensor = 0xA8 )
Medtronic packet types.
Variables ¶
View Source
var ErrDecoding = errors.New("6b/4b decoding failure")
ErrDecoding indicates a 6b/4b decoding failure.
Functions ¶
func Decode ¶
Decode performs 6b/4b decoding and CRC verification. It returns the decoded data, excluding the CRC byte.
func Decode6b4b ¶
Decode6b4b returns the 6b/4b decoding of the given data.
func Encode ¶
Encode appends the CRC to the data and returns the 4b/6b-encoded result. This may modify data's underlying array.
func Encode4b6b ¶
Encode4b6b returns the 4b/6b encoding of the given data.
func IsSensorType ¶
IsSensorType returns true for Sensor packet types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.