pub struct FaultStatus {
pub fault: bool,
pub gvdd_uv: bool,
pub gvdd_ov: bool,
pub pvdd_uv: bool,
pub otsd: bool,
pub otw: bool,
pub fetha_oc: bool,
pub fetla_oc: bool,
pub fethb_oc: bool,
pub fetlb_oc: bool,
pub fethc_oc: bool,
pub fetlc_oc: bool,
}Expand description
Complete fault status from both DRV8301 status registers
This struct provides a comprehensive view of all fault conditions reported by the DRV8301 gate driver IC.
Fields§
§fault: boolMaster fault indicator (OR of all fault conditions)
gvdd_uv: boolGVDD undervoltage fault (GVDD < ~8V)
gvdd_ov: boolGVDD overvoltage fault (GVDD > ~16V)
pvdd_uv: boolPVDD undervoltage fault (PVDD < ~5.9V)
otsd: boolOvertemperature shutdown (die temp > ~150°C)
otw: boolOvertemperature warning (die temp > ~130°C)
fetha_oc: boolPhase A high-side FET overcurrent
fetla_oc: boolPhase A low-side FET overcurrent
fethb_oc: boolPhase B high-side FET overcurrent
fetlb_oc: boolPhase B low-side FET overcurrent
fethc_oc: boolPhase C high-side FET overcurrent
fetlc_oc: boolPhase C low-side FET overcurrent
Implementations§
Source§impl FaultStatus
impl FaultStatus
Sourcepub fn has_overcurrent(&self) -> bool
pub fn has_overcurrent(&self) -> bool
Returns true if any overcurrent fault is active on any phase
Sourcepub fn has_thermal(&self) -> bool
pub fn has_thermal(&self) -> bool
Returns true if any thermal condition (warning or shutdown) is active
Sourcepub fn has_voltage_fault(&self) -> bool
pub fn has_voltage_fault(&self) -> bool
Returns true if any voltage fault (UV or OV) is active
Sourcepub fn phase_a_overcurrent(&self) -> bool
pub fn phase_a_overcurrent(&self) -> bool
Returns true if any phase A FET has an overcurrent fault
Sourcepub fn phase_b_overcurrent(&self) -> bool
pub fn phase_b_overcurrent(&self) -> bool
Returns true if any phase B FET has an overcurrent fault
Sourcepub fn phase_c_overcurrent(&self) -> bool
pub fn phase_c_overcurrent(&self) -> bool
Returns true if any phase C FET has an overcurrent fault
Trait Implementations§
Source§impl Clone for FaultStatus
impl Clone for FaultStatus
Source§fn clone(&self) -> FaultStatus
fn clone(&self) -> FaultStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more