pub struct Trng { /* private fields */ }
Expand description
ARM TrustZone RNG register block
Implementations§
Source§impl Trng
impl Trng
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn rng_isr(self) -> Reg<RngIsr, RW>
pub const fn rng_isr(self) -> Reg<RngIsr, RW>
RNG status register. If corresponding RNG_IMR bit is unmasked, an interrupt will be generated.
Sourcepub const fn trng_config(self) -> Reg<TrngConfig, RW>
pub const fn trng_config(self) -> Reg<TrngConfig, RW>
Selecting the inverter-chain length.
Sourcepub const fn trng_valid(self) -> Reg<TrngValid, RW>
pub const fn trng_valid(self) -> Reg<TrngValid, RW>
192 bit collection indication.
Sourcepub const fn rnd_source_enable(self) -> Reg<RndSourceEnable, RW>
pub const fn rnd_source_enable(self) -> Reg<RndSourceEnable, RW>
Enable signal for the random source.
Sourcepub const fn sample_cnt1(self) -> Reg<u32, RW>
pub const fn sample_cnt1(self) -> Reg<u32, RW>
Counts clocks between sampling of random bit.
Sourcepub const fn autocorr_statistic(self) -> Reg<AutocorrStatistic, RW>
pub const fn autocorr_statistic(self) -> Reg<AutocorrStatistic, RW>
Statistic about Autocorrelation test activations.
Sourcepub const fn trng_debug_control(self) -> Reg<TrngDebugControl, RW>
pub const fn trng_debug_control(self) -> Reg<TrngDebugControl, RW>
Debug register.
Sourcepub const fn trng_sw_reset(self) -> Reg<TrngSwReset, RW>
pub const fn trng_sw_reset(self) -> Reg<TrngSwReset, RW>
Generate internal SW reset within the RNG block.
Sourcepub const fn rng_debug_en_input(self) -> Reg<RngDebugEnInput, RW>
pub const fn rng_debug_en_input(self) -> Reg<RngDebugEnInput, RW>
Enable the RNG debug mode
Sourcepub const fn rst_bits_counter(self) -> Reg<RstBitsCounter, RW>
pub const fn rst_bits_counter(self) -> Reg<RstBitsCounter, RW>
Reset the counter of collected bits in the RNG.
Sourcepub const fn rng_version(self) -> Reg<RngVersion, RW>
pub const fn rng_version(self) -> Reg<RngVersion, RW>
Displays the version settings of the TRNG.
Sourcepub const fn rng_bist_cntr_0(self) -> Reg<RngBistCntr0, RW>
pub const fn rng_bist_cntr_0(self) -> Reg<RngBistCntr0, RW>
Collected BIST results.
Sourcepub const fn rng_bist_cntr_1(self) -> Reg<RngBistCntr1, RW>
pub const fn rng_bist_cntr_1(self) -> Reg<RngBistCntr1, RW>
Collected BIST results.
Sourcepub const fn rng_bist_cntr_2(self) -> Reg<RngBistCntr2, RW>
pub const fn rng_bist_cntr_2(self) -> Reg<RngBistCntr2, RW>
Collected BIST results.
Trait Implementations§
impl Copy for Trng
impl Eq for Trng
impl Send for Trng
impl StructuralPartialEq for Trng
impl Sync for Trng
Auto Trait Implementations§
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