pub enum AlertFunction {
ShuntOverLimit,
ShuntUnderLimit,
BusOverLimit,
BusUnderLimit,
PowerOverLimit,
}Expand description
The five limit comparisons the alert pin can be assigned to.
Variants§
ShuntOverLimit
Shunt voltage above the alert limit (SOL, bit 15).
ShuntUnderLimit
Shunt voltage below the alert limit (SUL, bit 14).
BusOverLimit
Bus voltage above the alert limit (BOL, bit 13).
BusUnderLimit
Bus voltage below the alert limit (BUL, bit 12).
PowerOverLimit
Power above the alert limit (POL, bit 11).
Trait Implementations§
Source§impl Clone for AlertFunction
impl Clone for AlertFunction
Source§fn clone(&self) -> AlertFunction
fn clone(&self) -> AlertFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlertFunction
Source§impl Debug for AlertFunction
impl Debug for AlertFunction
impl Eq for AlertFunction
Source§impl PartialEq for AlertFunction
impl PartialEq for AlertFunction
Source§fn eq(&self, other: &AlertFunction) -> bool
fn eq(&self, other: &AlertFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlertFunction
Auto Trait Implementations§
impl Freeze for AlertFunction
impl RefUnwindSafe for AlertFunction
impl Send for AlertFunction
impl Sync for AlertFunction
impl Unpin for AlertFunction
impl UnsafeUnpin for AlertFunction
impl UnwindSafe for AlertFunction
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