Skip to main content

parse_lock_config_zone

Function parse_lock_config_zone 

Source
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