Skip to main content

humidity_register

Function humidity_register 

Source
pub fn humidity_register(milli_percent: u32) -> u16
Expand description

Builds the humidity register the sensor reports for a relative humidity.

The inverse of milli_percent, with the same 14-bit alignment as temperature_register. Inputs above 100 %RH clamp to full scale.

§Arguments

  • milli_percent - the relative humidity in thousandths of a percent.

§Returns

The 16-bit humidity register.