Struct stm32_metapac::tamp::regs::Atcr1
#[repr(transparent)]pub struct Atcr1(pub u32);
Expand description
TAMP active tamper control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Atcr1
impl Atcr1
pub fn set_tampam(&mut self, n: usize, val: bool)
pub fn set_tampam(&mut self, n: usize, val: bool)
Tamper X active mode
pub const fn atosel(&self, n: usize) -> u8
pub const fn atosel(&self, n: usize) -> u8
Active tamper shared output X selection. The selected output must be available in the package pinout
pub fn set_atosel(&mut self, n: usize, val: u8)
pub fn set_atosel(&mut self, n: usize, val: u8)
Active tamper shared output X selection. 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 selects the RTC asynchronous prescaler stage output.The selected clock is CK_ATPRE.. fCK_ATPRE = fRTCCLK / 2ATCKSEL when (PREDIV_A+1) = 128.. …. These bits can be written only when all active tampers are disabled. The write protection remains for up to 1.5 ck_atpre cycles after all the active tampers are disable.
pub fn set_atcksel(&mut self, val: Atcksel)
pub fn set_atcksel(&mut self, val: Atcksel)
Active tamper RTC asynchronous prescaler clock selection. These bits selects the RTC asynchronous prescaler stage output.The selected clock is CK_ATPRE.. fCK_ATPRE = fRTCCLK / 2ATCKSEL when (PREDIV_A+1) = 128.. …. These bits can be written only when all active tampers are disabled. The write protection remains for up to 1.5 ck_atpre cycles after all the active tampers are disable.
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 = (2ATPER x CK_ATPRE) cycles. Refer to .
pub fn set_atper(&mut self, val: u8)
pub fn set_atper(&mut self, val: u8)
Active tamper output change period. The tamper output is changed every CK_ATPER = (2ATPER x CK_ATPRE) cycles. Refer to .
Active tamper output sharing. IN1 is compared with TAMPOUTSEL1. IN2 is compared with TAMPOUTSEL2. IN3 is compared with TAMPOUTSEL3. IN4 is compared with TAMPOUTSEL4. IN5 is compared with TAMPOUTSEL5. IN6 is compared with TAMPOUTSEL6. IN7 is compared with TAMPOUTSEL7. IN8 is compared with TAMPOUTSEL8
Active tamper output sharing. IN1 is compared with TAMPOUTSEL1. IN2 is compared with TAMPOUTSEL2. IN3 is compared with TAMPOUTSEL3. IN4 is compared with TAMPOUTSEL4. IN5 is compared with TAMPOUTSEL5. IN6 is compared with TAMPOUTSEL6. IN7 is compared with TAMPOUTSEL7. IN8 is compared with TAMPOUTSEL8
Trait Implementations§
impl Copy for Atcr1
impl Eq for Atcr1
impl StructuralPartialEq for Atcr1
Auto Trait Implementations§
impl Freeze for Atcr1
impl RefUnwindSafe for Atcr1
impl Send for Atcr1
impl Sync for Atcr1
impl Unpin for Atcr1
impl UnwindSafe for Atcr1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)