Struct imxrt_iomuxc::Pad[][src]

pub struct Pad<Base, Offset> { /* fields omitted */ }

An i.MXT RT pad

The Base is the pad tag, like AD_B0. The Offset is the constant (type) that describes the pad number.

Pads have no size.

Implementations

impl<Base, Offset> Pad<Base, Offset>[src]

pub const unsafe fn new() -> Self[src]

Creates a handle to the pad

Safety

new() may be called anywhere, by anyone. This could lead to multiple objects that mutate the same memory. Consider calling new() once, near startup, then passing objects and references throughout your program.

impl<Base, Offset> Pad<Base, Offset> where
    Base: Base,
    Offset: Unsigned
[src]

pub fn erase(self) -> ErasedPad[src]

Erase the pad’s type, returning an ErasedPad

Trait Implementations

impl<Base: Debug, Offset: Debug> Debug for Pad<Base, Offset>[src]

impl<Base, Offset> IOMUX for Pad<Base, Offset> where
    Base: Base,
    Offset: Unsigned
[src]

unsafe fn mux(&mut self) -> *mut u32[src]

Safety

Returns a pointer to an address that may be mutably aliased elsewhere.

unsafe fn pad(&mut self) -> *mut u32[src]

Safety

Returns a pointer to an address that may be mutably aliased elsewhere.

impl<Base, Offset> Send for Pad<Base, Offset> where
    Base: Send,
    Offset: Send
[src]

impl<Base, Offset> TryFrom<ErasedPad> for Pad<Base, Offset> where
    Base: Base,
    Offset: Unsigned
[src]

type Error = WrongPadError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<Base, Offset> !Sync for Pad<Base, Offset>

impl<Base, Offset> Unpin for Pad<Base, Offset> where
    Base: Unpin,
    Offset: Unpin

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[src]

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.