Struct Atcr1
#[repr(transparent)]pub struct Atcr1(pub u32);Expand description
TAMP active tamper control register 1.
Tuple Fields§
§0: u32Implementations§
§impl Atcr1
impl Atcr1
pub const fn set_tampam(&mut self, n: usize, val: bool)
pub const fn set_tampam(&mut self, n: usize, val: bool)
Tamper X active mode. 0: passive, 1: active.
pub const fn atosel(&self, n: usize) -> u8
pub const fn atosel(&self, n: usize) -> u8
Active tamper shared output X selection (0: TAMP_OUT1 … 3: TAMP_OUT4). The selected output must be available in the package pinout.
pub const fn set_atosel(&mut self, n: usize, val: u8)
pub const fn set_atosel(&mut self, n: usize, val: u8)
Active tamper shared output X selection (0: TAMP_OUT1 … 3: TAMP_OUT4). The selected output must be available in the package pinout.
pub const fn atcksel(&self) -> Atcksel
pub const fn atcksel(&self) -> Atcksel
Active tamper RTC asynchronous prescaler clock selection. These bits select the RTC asynchronous prescaler stage output. The selected clock is CK_ATPRE. ATCKSEL[3] is reserved, read only and tied to 0 when the active tamper prescaler extension is not implemented. These bits can be written only when all active tampers are disabled.
pub const fn set_atcksel(&mut self, val: Atcksel)
pub const fn set_atcksel(&mut self, val: Atcksel)
Active tamper RTC asynchronous prescaler clock selection. These bits select the RTC asynchronous prescaler stage output. The selected clock is CK_ATPRE. ATCKSEL[3] is reserved, read only and tied to 0 when the active tamper prescaler extension is not implemented. These bits can be written only when all active tampers are disabled.
pub const fn atper(&self) -> u8
pub const fn atper(&self) -> u8
Active tamper output change period. The tamper output is changed every CK_ATPER = (2^ATPER x CK_ATPRE) cycles.
pub const fn set_atper(&mut self, val: u8)
pub const fn set_atper(&mut self, val: u8)
Active tamper output change period. The tamper output is changed every CK_ATPER = (2^ATPER x CK_ATPRE) cycles.
Active tamper output sharing. 0: each active tamper input TAMP_INx is compared with its dedicated output TAMP_OUTx. 1: each active tamper input TAMP_INx is compared with TAMPOUTSELx defined by the ATOSELx bits.
Active tamper output sharing. 0: each active tamper input TAMP_INx is compared with its dedicated output TAMP_OUTx. 1: each active tamper input TAMP_INx is compared with TAMPOUTSELx defined by the ATOSELx bits.