Skip to main content

Module frame

Module frame 

Source
Expand description

MT frames on the wire: 0xFE, length, two command bytes, data, and an XOR check byte over everything after the start byte.

The first command byte holds the frame type in its top three bits and the subsystem in the low five; the second is the command id.

Structs§

Decoder
Splits a byte stream into frames, skipping noise between them. Holds at most one frame’s bytes.
Frame
One MT frame.

Enums§

Decoded
What the decoder found.
FrameError
A frame did not encode.
Kind
The frame type.

Constants§

MAX_DATA
The longest data field MT allows.
SOF
Start of frame.