Skip to main content

COMMAND_FRAME_OVERHEAD

Constant COMMAND_FRAME_OVERHEAD 

Source
pub(crate) const COMMAND_FRAME_OVERHEAD: usize = 7;
Expand description

Number of bytes a command frame contains besides its data payload.

Layout: count (1) + opcode (1) + param1 (1) + param2 (2) + crc (2) = 7. This does not include the word address byte, which is prepended by the I2C transmit routine and is not covered by the CRC.