Skip to main content

serial_id_registers

Function serial_id_registers 

Source
pub fn serial_id_registers(serial: u64) -> [u16; 3]
Expand description

Splits a serial number into the three registers a sensor reports it in.

The inverse of serial_id.

§Arguments

  • serial - the serial number; bits above 40 are ignored.

§Returns

The 0xFB, 0xFC, and 0xFD registers in that order.