Skip to main content

humidity_raw_from_milli_percent

Function humidity_raw_from_milli_percent 

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

Builds the raw humidity word a part reports for a relative humidity.

The inverse of milli_percent, rounded to the nearest count and clamped to 0 to 100 %RH.

§Arguments

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

§Returns

The 16-bit humidity word.