Struct stm32_metapac::tamp::regs::Ator
#[repr(transparent)]pub struct Ator(pub u32);
Expand description
TAMP active tamper output register
Tuple Fields§
§0: u32
Implementations§
§impl Ator
impl Ator
pub const fn prng(&self) -> u8
pub const fn prng(&self) -> u8
Pseudo-random generator value. This field provides the values of the PRNG output. Because of potential inconsistencies due to synchronization delays, PRNG must be read at least twice. The read value is correct if it is equal to previous read value. This field can only be read when the APB is in secure mode.
pub fn set_prng(&mut self, val: u8)
pub fn set_prng(&mut self, val: u8)
Pseudo-random generator value. This field provides the values of the PRNG output. Because of potential inconsistencies due to synchronization delays, PRNG must be read at least twice. The read value is correct if it is equal to previous read value. This field can only be read when the APB is in secure mode.
pub const fn seedf(&self) -> bool
pub const fn seedf(&self) -> bool
Seed running flag. This flag is set by hardware when a new seed is written in the ATSEEDR. It is cleared by hardware when the PRNG has absorbed this new seed, and by system reset. The TAMP APB cock must not be switched off as long as SEEDF is set.
pub fn set_seedf(&mut self, val: bool)
pub fn set_seedf(&mut self, val: bool)
Seed running flag. This flag is set by hardware when a new seed is written in the ATSEEDR. It is cleared by hardware when the PRNG has absorbed this new seed, and by system reset. The TAMP APB cock must not be switched off as long as SEEDF is set.
Trait Implementations§
impl Copy for Ator
impl Eq for Ator
impl StructuralPartialEq for Ator
Auto Trait Implementations§
impl Freeze for Ator
impl RefUnwindSafe for Ator
impl Send for Ator
impl Sync for Ator
impl Unpin for Ator
impl UnwindSafe for Ator
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
)