Enum embedded_devices::devices::mcp9808::AlertStatus
source · pub enum AlertStatus {
NotAsserted = 0,
Asserted = 1,
}
Expand description
Alert Output Status bit.
This bit cannot be changed in Shutdown mode.
However, if the Alert output is configured as Interrupt mode, and the host controller
clears the interrupt bit by reading InterruptClear in Shutdown mode,
then this bit will also be cleared to 0
AlertStatus::NotAsserted.
Variants§
NotAsserted = 0
Alert output is not asserted by the device (power-up default)
Asserted = 1
Alert output is asserted as a comparator/Interrupt or critical temperature output
Trait Implementations§
source§impl BitfieldEnum for AlertStatus
impl BitfieldEnum for AlertStatus
source§impl Clone for AlertStatus
impl Clone for AlertStatus
source§fn clone(&self) -> AlertStatus
fn clone(&self) -> AlertStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AlertStatus
impl Debug for AlertStatus
source§impl Format for AlertStatus
impl Format for AlertStatus
source§impl PartialEq for AlertStatus
impl PartialEq for AlertStatus
source§fn eq(&self, other: &AlertStatus) -> bool
fn eq(&self, other: &AlertStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AlertStatus
impl StructuralEq for AlertStatus
impl StructuralPartialEq for AlertStatus
Auto Trait Implementations§
impl RefUnwindSafe for AlertStatus
impl Send for AlertStatus
impl Sync for AlertStatus
impl Unpin for AlertStatus
impl UnwindSafe for AlertStatus
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