[][src]Struct lpc55s6x_hal::peripherals::rng::Rng

pub struct Rng<State = Unknown> {
    pub _state: State,
    // some fields omitted
}

Fields

_state: State

Methods

impl Rng[src]

pub unsafe fn steal() -> Self[src]

impl<State> Rng<State>[src]

pub fn release(self) -> RNG[src]

impl<State> Rng<State>[src]

pub fn enabled(self, syscon: &mut Syscon) -> Rng<Enabled>[src]

pub fn disabled(self, syscon: &mut Syscon) -> Rng<Disabled>[src]

impl Rng<Enabled>[src]

pub fn get_random_u32(&self) -> u32[src]

pub fn module_id(&self) -> ModuleId[src]

random method to get some information about the RNG

Trait Implementations

impl From<RNG> for Rng[src]

impl Read for Rng<Enabled>[src]

type Error = Error

Error type

Auto Trait Implementations

impl<State> Unpin for Rng<State> where
    State: Unpin

impl<State> Send for Rng<State> where
    State: Send

impl<State = Unknown> !Sync for Rng<State>

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self