#[repr(u8)]pub enum FaultControl {
EnableReset = 1,
EnableInterrupt = 2,
DisableBoth = 4,
}Expand description
Fault control configuration for different fault types.
Determines what action the CDOG takes when a fault is detected.
Variants§
EnableReset = 1
Enable system reset on fault detection
EnableInterrupt = 2
Enable interrupt on fault detection
DisableBoth = 4
Disable both reset and interrupt
Trait Implementations§
Source§impl Clone for FaultControl
impl Clone for FaultControl
Source§fn clone(&self) -> FaultControl
fn clone(&self) -> FaultControl
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 FaultControl
impl Debug for FaultControl
Source§impl Default for FaultControl
impl Default for FaultControl
Source§fn default() -> FaultControl
fn default() -> FaultControl
Returns the “default value” for a type. Read more
Source§impl From<FaultControl> for Ctrl
impl From<FaultControl> for Ctrl
Source§fn from(val: FaultControl) -> Self
fn from(val: FaultControl) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FaultControl
impl PartialEq for FaultControl
impl Copy for FaultControl
impl Eq for FaultControl
impl StructuralPartialEq for FaultControl
Auto Trait Implementations§
impl Freeze for FaultControl
impl RefUnwindSafe for FaultControl
impl Send for FaultControl
impl Sync for FaultControl
impl Unpin for FaultControl
impl UnwindSafe for FaultControl
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