pub struct DeviceStatusRegister(/* private fields */);Expand description
Sensor status register.
Implementations§
Source§impl DeviceStatusRegister
impl DeviceStatusRegister
Sourcepub fn fan_speed_warning(&self) -> bool
pub fn fan_speed_warning(&self) -> bool
Returns whether a fan speed warning is present, as the speed is off more than 10% for multiple measurement intervals. Disappears if the issue disappears.
Sourcepub fn pm_sensor_error(&self) -> bool
pub fn pm_sensor_error(&self) -> bool
Returns whether the PM sensor exhibits an error.
Persists even if the error disappears. Requires reseting the devices
status, the device or performing a power cycle.
Sourcepub fn co2_sensor_error(&self) -> bool
pub fn co2_sensor_error(&self) -> bool
Returns whether the CO2 sensor exhibits an error.
Persists even if the error disappears. Requires reseting the devices
status, the device or performing a power cycle.
Sourcepub fn gas_sensor_error(&self) -> bool
pub fn gas_sensor_error(&self) -> bool
Returns whether the Gas sensor exhibits an error.
Persists even if the error disappears. Requires reseting the devices
status, the device or performing a power cycle.
Sourcepub fn rht_sensor_error(&self) -> bool
pub fn rht_sensor_error(&self) -> bool
Returns whether the RH/T sensor exhibits an error.
Persists even if the error disappears. Requires reseting the devices
status, the device or performing a power cycle.
Sourcepub fn fan_error(&self) -> bool
pub fn fan_error(&self) -> bool
Returns whether the fan exhibits an error: It is turned on, but 0RPM are reported over multiple measurement intervals.
Persists even if the error disappears. Requires reseting the devices
status, the device or performing a power cycle.
Sourcepub fn has_error(&self) -> Result<(), DeviceError>
pub fn has_error(&self) -> Result<(), DeviceError>
Checks whether any error has occured
§Errors
DeviceError: Returned when any error is present, flags indicate which errors are present.
Trait Implementations§
Source§impl Debug for DeviceStatusRegister
impl Debug for DeviceStatusRegister
Source§impl PartialEq for DeviceStatusRegister
impl PartialEq for DeviceStatusRegister
Source§impl TryFrom<&[u8]> for DeviceStatusRegister
impl TryFrom<&[u8]> for DeviceStatusRegister
impl StructuralPartialEq for DeviceStatusRegister
Auto Trait Implementations§
impl Freeze for DeviceStatusRegister
impl RefUnwindSafe for DeviceStatusRegister
impl Send for DeviceStatusRegister
impl Sync for DeviceStatusRegister
impl Unpin for DeviceStatusRegister
impl UnwindSafe for DeviceStatusRegister
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more