Skip to main content

serial_id

Function serial_id 

Source
pub fn serial_id(high: u16, mid: u16, low: u16) -> u64
Expand description

Assembles the serial number from its three registers.

The datasheet numbers the serial bits 40 down to 0, spread as bits 40:25 in register 0xFB, 24:9 in 0xFC, and 8:0 in bits 15:7 of 0xFD.

§Arguments

  • high - the 0xFB register.
  • mid - the 0xFC register.
  • low - the 0xFD register.

§Returns

The serial number, in the low 41 bits.