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. The selected clock is CK_ATPRE = RTCCLK / 2^ATCKSEL. In devices with limited active tamper prescaler, values 0x8 to 0xA and 0xC to 0xF are not supported, and 0xB selects RTCCLK/2048 only when (PREDIV_A+1) = 128 and (PREDIV_S+1) is a multiple of 16. 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. The selected clock is CK_ATPRE = RTCCLK / 2^ATCKSEL. In devices with limited active tamper prescaler, values 0x8 to 0xA and 0xC to 0xF are not supported, and 0xB selects RTCCLK/2048 only when (PREDIV_A+1) = 128 and (PREDIV_S+1) is a multiple of 16. 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.