#[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