pub fn serial_number(frame: &[u8; 9]) -> Result<u64, SensorError>Expand description
Decodes the nine bytes of get_serial_number to the 48-bit serial number.
Table 24: serial = word[0] << 32 | word[1] << 16 | word[2], each word followed
by its CRC.
§Arguments
frame- the three word frames read aftercommand::GET_SERIAL_NUMBER.
§Returns
The serial number.
§Errors
Returns SensorError::Crc if any of the three CRC bytes does not match its
word.