pub trait FaultMonitor {
// Required methods
fn enable_interrupt(&mut self, hr_control: &mut HrPwmCtrl);
fn is_fault_active(&self) -> bool;
fn clear_fault(&mut self);
}
Expand description
Allows a FaultMonitor to monitor faults
Required Methods§
fn enable_interrupt(&mut self, hr_control: &mut HrPwmCtrl)
Sourcefn is_fault_active(&self) -> bool
fn is_fault_active(&self) -> bool
Returns true if a fault is preventing PWM output
Sourcefn clear_fault(&mut self)
fn clear_fault(&mut self)
Clear the fault interrupt flag
This will NOT resume normal PWM operation. The affected outputs need to be re-enabled to resume operation; This will do nothing if the fault is still active.