pub enum ChgIn {
Undervoltage,
BelowBatt,
Overvoltage,
Valid,
}
Expand description
CHGIN status
Variants§
Undervoltage
VBUS is invalid. VCHGIN rising: VCHGIN < VCHGIN_UVLO VCHGIN falling: VCHGIN < VCHGIN_REG (AICL)
BelowBatt
VBUS is invalid. VCHGIN < VBATT + VCHGIN2SYS and VCHGIN > VCHGIN_UVLO
Overvoltage
VBUS is invalid. VCHGIN > VCHGIN_OVLO
Valid
VBUS is valid. VCHGIN > VCHGIN_UVLO and VCHGIN > VBATT + VCHGIN2SYS and VCHGIN < VCHGIN_OVLO
Trait Implementations§
Source§impl Ord for ChgIn
impl Ord for ChgIn
Source§impl PartialOrd for ChgIn
impl PartialOrd for ChgIn
Source§impl Specifier for ChgIn
impl Specifier for ChgIn
Source§fn into_bytes(input: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
fn into_bytes(input: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
Converts some bytes into the in-out type. Read more
Source§fn from_bytes(
bytes: Self::Bytes,
) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
fn from_bytes( bytes: Self::Bytes, ) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
Converts the given bytes into the in-out type. Read more
impl Copy for ChgIn
impl Eq for ChgIn
impl StructuralPartialEq for ChgIn
Auto Trait Implementations§
impl Freeze for ChgIn
impl RefUnwindSafe for ChgIn
impl Send for ChgIn
impl Sync for ChgIn
impl Unpin for ChgIn
impl UnwindSafe for ChgIn
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