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.
Pad
s 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]
Base: Base,
Offset: Unsigned,
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]
Base: Base,
Offset: Unsigned,
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]
Base: Send,
Offset: Send,
impl<Base, Offset> TryFrom<ErasedPad> for Pad<Base, Offset> where
Base: Base,
Offset: Unsigned,
[src]
Base: Base,
Offset: Unsigned,
Auto Trait Implementations
impl<Base, Offset> !Sync for Pad<Base, Offset>
impl<Base, Offset> Unpin for Pad<Base, Offset> where
Base: Unpin,
Offset: Unpin,
Base: Unpin,
Offset: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,