Struct stm32f407g_disc::RNG[]

pub struct RNG { /* fields omitted */ }

Random number generator

Implementations

impl RNG

pub const fn ptr() -> *const RegisterBlock

Returns a pointer to the register block

Trait Implementations

impl Deref for RNG

type Target = RegisterBlock

The resulting type after dereferencing.

impl RngExt for RNG[src]

pub fn constrain(self, clocks: Clocks) -> Rng[src]

Enable RNG_CLK and the RNG peripheral. Note that clocks must already be configured such that RNG_CLK is not less than 1/16 HCLK, otherwise all reads of the RNG would return a ClockError (CECS error). This function will panic if pll48clk < 1/16 hclk.

impl Send for RNG

Auto Trait Implementations

impl !Sync for RNG

impl Unpin for RNG

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.