#[repr(transparent)]pub struct TrngDebug(pub u32);
Expand description
Debug register for the TRNG. This register is used to bypass TRNG tests in hardware.
Tuple Fields§
§0: u32
Implementations§
Source§impl TrngDebug
impl TrngDebug
Sourcepub const fn vnc_bypass(&self) -> bool
pub const fn vnc_bypass(&self) -> bool
Bypass the von Neumann corrector post-processing test, including the 32 consecutive bits test.
Sourcepub fn set_vnc_bypass(&mut self, val: bool)
pub fn set_vnc_bypass(&mut self, val: bool)
Bypass the von Neumann corrector post-processing test, including the 32 consecutive bits test.
Sourcepub const fn crngt_bypass(&self) -> bool
pub const fn crngt_bypass(&self) -> bool
Bypass the Continuous Random Number Generator Test (CRNGT).
Sourcepub fn set_crngt_bypass(&mut self, val: bool)
pub fn set_crngt_bypass(&mut self, val: bool)
Bypass the Continuous Random Number Generator Test (CRNGT).
Sourcepub const fn autocorr_bypass(&self) -> bool
pub const fn autocorr_bypass(&self) -> bool
Bypass the autocorrelation test.
Sourcepub fn set_autocorr_bypass(&mut self, val: bool)
pub fn set_autocorr_bypass(&mut self, val: bool)
Bypass the autocorrelation test.
Trait Implementations§
impl Copy for TrngDebug
impl Eq for TrngDebug
impl StructuralPartialEq for TrngDebug
Auto Trait Implementations§
impl Freeze for TrngDebug
impl RefUnwindSafe for TrngDebug
impl Send for TrngDebug
impl Sync for TrngDebug
impl Unpin for TrngDebug
impl UnwindSafe for TrngDebug
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)