#[repr(transparent)]pub struct Cr(pub u32);Expand description
Control
Tuple Fields§
§0: u32Implementations§
Source§impl Cr
impl Cr
Sourcepub const fn swr(&self) -> bool
pub const fn swr(&self) -> bool
Software reset is not self-clearing: it must be released by writing zero. Locking CR disables software reset. No reset operation is performed by this model. Raw bit values: false (0) = NoEffect: No effect; true (1) = SwReset: Perform a software reset
Sourcepub const fn set_swr(&mut self, val: bool)
pub const fn set_swr(&mut self, val: bool)
Software reset is not self-clearing: it must be released by writing zero. Locking CR disables software reset. No reset operation is performed by this model. Raw bit values: false (0) = NoEffect: No effect; true (1) = SwReset: Perform a software reset
Sourcepub const fn den(&self) -> bool
pub const fn den(&self) -> bool
Enable before enabling any glitch filter; disable only after disabling all filters. Raw bit values: false (0) = Disable: Disables TDET clock and prescaler; true (1) = Enable: Enables TDET clock and prescaler
Sourcepub const fn set_den(&mut self, val: bool)
pub const fn set_den(&mut self, val: bool)
Enable before enabling any glitch filter; disable only after disabling all filters. Raw bit values: false (0) = Disable: Disables TDET clock and prescaler; true (1) = Enable: Enables TDET clock and prescaler
Sourcepub const fn tfsr(&self) -> bool
pub const fn tfsr(&self) -> bool
Tamper Force System Reset Raw bit values: false (0) = NoReset: Do not force chip reset; true (1) = Reset: Force chip reset
Sourcepub const fn set_tfsr(&mut self, val: bool)
pub const fn set_tfsr(&mut self, val: bool)
Tamper Force System Reset Raw bit values: false (0) = NoReset: Do not force chip reset; true (1) = Reset: Force chip reset
Sourcepub const fn um(&self) -> bool
pub const fn um(&self) -> bool
Permits clearing locked SR tamper flags only while DTF=0 and only for sources enabled for interrupt (IER=1) with corresponding tamper enable clear (TER=0). Raw bit values: false (0) = NoEffect: No effect; true (1) = ClearInts: Allows the clearing of interrupts
Sourcepub const fn set_um(&mut self, val: bool)
pub const fn set_um(&mut self, val: bool)
Permits clearing locked SR tamper flags only while DTF=0 and only for sources enabled for interrupt (IER=1) with corresponding tamper enable clear (TER=0). Raw bit values: false (0) = NoEffect: No effect; true (1) = ClearInts: Allows the clearing of interrupts
Sourcepub const fn distam(&self) -> bool
pub const fn distam(&self) -> bool
Disable Prescaler On Tamper Raw bit values: false (0) = NoEffect: No effect; true (1) = AutoDis: Automatically disables the prescaler after tamper detection
Sourcepub const fn set_distam(&mut self, val: bool)
pub const fn set_distam(&mut self, val: bool)
Disable Prescaler On Tamper Raw bit values: false (0) = NoEffect: No effect; true (1) = AutoDis: Automatically disables the prescaler after tamper detection