Skip to main content

MAX_PACKET_SIZE

Constant MAX_PACKET_SIZE 

Source
pub(crate) const MAX_PACKET_SIZE: usize = 163;
Expand description

Maximum size of a command packet sent to the chip, including the word address byte prepended at the I2C level.

1 (word addr) + 1 (count) + 1 (opcode) + 1 (param1) + 2 (param2)

  • up to 155 bytes of data + 2 (CRC) = 163 bytes.