FaultMonitor

Trait FaultMonitor 

Source
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§

Source

fn enable_interrupt(&mut self, hr_control: &mut HrPwmCtrl)

Source

fn is_fault_active(&self) -> bool

Returns true if a fault is preventing PWM output

Source

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.

Implementors§