Skip to main content

high_alert

Function high_alert 

Source
pub fn high_alert(config: u16) -> bool
Expand description

Returns whether the configuration register’s HIGH_Alert flag (bit 15) is set.

In alert mode the flag means the last result was above the high limit and reading the configuration register clears it; in therm mode it stays set until a result falls below the low limit.

§Arguments

  • config - the configuration register.

§Returns

true if the high alert flag is set.