pub fn parse_lock_config_zone(payload: &[u8]) -> Result<u16, PayloadError>Expand description
Parse the payload of CommandOpcode::LockConfigZone.
Layout: magic (4) || crc (2 LE). Returns the CRC if the magic
matches. The CRC is the CRC-16 of the chip’s current 128-byte
configuration zone, computed by the host CLI just before sending.
§Errors
PayloadError::WrongLenif the payload is not exactly 6 bytes.PayloadError::MagicMismatchif the first 4 bytes are notLOCK_CONFIG_MAGIC.