pub fn decode_frame(bytes: &[u8]) -> Result<DecodedFrame<'_>>Expand description
Decode the single frame that begins at the start of bytes.
Verifies the preamble and the CRC-24Q. Returns Error::Parse if the
preamble is missing, the buffer is shorter than the declared frame, or the
CRC does not match.