[][src]Struct imxrt_iomuxc_build::GpioRange

pub struct GpioRange {
    pub module: u32,
    pub offset: u32,
    pub alt: u32,
}

Defines a GPIO range

GpioRange defines the starting values for a GPIO pin sequence. See ImplGpioPin for usages.

Fields

module: u32

The GPIO module

GPIO2 would be described by 2.

offset: u32

The GPIO offset

GPIO3_IO24 would be described by 24

alt: u32

The GPIO alternave

The alt value should apply for every GPIO described by the range

Implementations

impl GpioRange[src]

pub fn no_offset(module: u32, alt: u32) -> Self[src]

Convenience for creating a GpioRange with no offset

Trait Implementations

impl Clone for GpioRange[src]

impl Copy for GpioRange[src]

impl Debug for GpioRange[src]

impl Eq for GpioRange[src]

impl PartialEq<GpioRange> for GpioRange[src]

impl StructuralEq for GpioRange[src]

impl StructuralPartialEq for GpioRange[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.