pub enum ProtectionStatus {
Normal,
Ovp,
Ocp,
Opp,
Lvp,
Oah,
Ohp,
Otp,
Oep,
Owh,
Icp,
Unknown(u16),
}Expand description
Latched protection cause read from PROTECT (register 0x0010).
Normal (0) is the only non-tripped state. The register stays
latched until written back to 0.
Variants§
Normal
Operating normally.
Ovp
Output overvoltage. Also fires transiently when V-SET is raised above the current S-OVP threshold — program protection before raising V-SET.
Ocp
Output overcurrent.
Opp
Output overpower.
Lvp
Input under-voltage (LVP setpoint).
Oah
Cumulative charge limit reached.
Ohp
Output-on time limit reached.
Otp
Over-temperature.
Oep
Cumulative energy (Ah) limit reached.
Owh
Cumulative energy (Wh) limit reached.
Icp
Input over-current / inrush.
Unknown(u16)
Register read back a value outside the documented 0–10 range.
Implementations§
Trait Implementations§
Source§impl Clone for ProtectionStatus
impl Clone for ProtectionStatus
Source§fn clone(&self) -> ProtectionStatus
fn clone(&self) -> ProtectionStatus
Returns a duplicate 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 ProtectionStatus
impl Debug for ProtectionStatus
Source§impl<'de> Deserialize<'de> for ProtectionStatus
impl<'de> Deserialize<'de> for ProtectionStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProtectionStatus
impl Display for ProtectionStatus
Source§impl Format for ProtectionStatus
impl Format for ProtectionStatus
Source§impl PartialEq for ProtectionStatus
impl PartialEq for ProtectionStatus
Source§impl Serialize for ProtectionStatus
impl Serialize for ProtectionStatus
impl Copy for ProtectionStatus
impl Eq for ProtectionStatus
impl StructuralPartialEq for ProtectionStatus
Auto Trait Implementations§
impl Freeze for ProtectionStatus
impl RefUnwindSafe for ProtectionStatus
impl Send for ProtectionStatus
impl Sync for ProtectionStatus
impl Unpin for ProtectionStatus
impl UnsafeUnpin for ProtectionStatus
impl UnwindSafe for ProtectionStatus
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