Skip to main content

burst_for

Function burst_for 

Source
pub fn burst_for(celsius: f32, hectopascals: f32) -> [u8; 6]
Expand description

The six data registers that compensate to a reading against calibration.

§Arguments

  • celsius - the temperature to land on.
  • hectopascals - the pressure to land on.

§Returns

The bytes a burst read returns, found by searching, since the compensation only runs one way. The search reads the compensated pressure as signed: at the far end of the converter’s range the reference arithmetic goes below zero and wraps when it is stored unsigned.