[][src]Trait trellis_m4::gpio::v1::PinMode

pub trait PinMode: Sealed {
    pub const DYN: DynPinMode;
    pub const DIR: bool;
    pub const INEN: bool;
    pub const PULLEN: bool;
    pub const OUT: bool;
    pub const PMUXEN: bool;
    pub const PMUX: u8;
    pub fn into_mode<I, M>(_pin: Pin<I, M>) -> Pin<I, Self>
    where
        M: PinMode,
        I: PinId
, { ... } }

Type-level enum representing pin modes

Associated Constants

pub const DYN: DynPinMode[src]

Corresponding DynPinMode

pub const DIR: bool[src]

Value of the DIR field in this mode

pub const INEN: bool[src]

Value of the INEN field in this mode

pub const PULLEN: bool[src]

Value of the PULLEN field in this mode

pub const OUT: bool[src]

Value of the OUT field in this mode

pub const PMUXEN: bool[src]

Value of the PMUXEN field in this mode

pub const PMUX: u8[src]

Value of the PMUXE/PMUXO field in this mode

Loading content...

Provided methods

pub fn into_mode<I, M>(_pin: Pin<I, M>) -> Pin<I, Self> where
    M: PinMode,
    I: PinId
[src]

Convert a Pin into this PinMode

Loading content...

Implementors

impl<C> PinMode for Alternate<C> where
    C: AlternateConfig
[src]

impl<C> PinMode for Disabled<C> where
    C: DisabledConfig
[src]

impl<C> PinMode for Input<C> where
    C: InputConfig
[src]

impl<C> PinMode for Output<C> where
    C: OutputConfig
[src]

Loading content...