#[repr(transparent)]pub struct RngIsr(pub u32);
Expand description
RNG status register. If corresponding RNG_IMR bit is unmasked, an interrupt will be generated.
Tuple Fields§
§0: u32
Implementations§
source§impl RngIsr
impl RngIsr
sourcepub const fn ehr_valid(&self) -> bool
pub const fn ehr_valid(&self) -> bool
1’b1 indicates that 192 bits have been collected in the RNG, and are ready to be read.
sourcepub fn set_ehr_valid(&mut self, val: bool)
pub fn set_ehr_valid(&mut self, val: bool)
1’b1 indicates that 192 bits have been collected in the RNG, and are ready to be read.
sourcepub const fn autocorr_err(&self) -> bool
pub const fn autocorr_err(&self) -> bool
1’b1 indicates Autocorrelation test failed four times in a row. When set, RNG cease from functioning until next reset.
sourcepub fn set_autocorr_err(&mut self, val: bool)
pub fn set_autocorr_err(&mut self, val: bool)
1’b1 indicates Autocorrelation test failed four times in a row. When set, RNG cease from functioning until next reset.
sourcepub const fn crngt_err(&self) -> bool
pub const fn crngt_err(&self) -> bool
1’b1 indicates CRNGT in the RNG test failed. Failure occurs when two consecutive blocks of 16 collected bits are equal.
sourcepub fn set_crngt_err(&mut self, val: bool)
pub fn set_crngt_err(&mut self, val: bool)
1’b1 indicates CRNGT in the RNG test failed. Failure occurs when two consecutive blocks of 16 collected bits are equal.
sourcepub const fn vn_err(&self) -> bool
pub const fn vn_err(&self) -> bool
1’b1 indicates Von Neuman error. Error in von Neuman occurs if 32 consecutive collected bits are identical, ZERO or ONE.
sourcepub fn set_vn_err(&mut self, val: bool)
pub fn set_vn_err(&mut self, val: bool)
1’b1 indicates Von Neuman error. Error in von Neuman occurs if 32 consecutive collected bits are identical, ZERO or ONE.
sourcepub fn set_reserved(&mut self, val: u32)
pub fn set_reserved(&mut self, val: u32)
RESERVED
Trait Implementations§
impl Copy for RngIsr
impl Eq for RngIsr
impl StructuralPartialEq for RngIsr
Auto Trait Implementations§
impl Freeze for RngIsr
impl RefUnwindSafe for RngIsr
impl Send for RngIsr
impl Sync for RngIsr
impl Unpin for RngIsr
impl UnwindSafe for RngIsr
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
)