[][src]Trait arduino_mkrzero::gpio::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
        I: PinId,
        M: PinMode
, { ... } }

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
    I: PinId,
    M: PinMode
[src]

Convert a Pin into this PinMode

Loading content...

Implementors

impl PinMode for Disabled<Floating>[src]

impl PinMode for Disabled<PullDown>[src]

impl PinMode for Disabled<PullUp>[src]

impl PinMode for Input<Floating>[src]

impl PinMode for Input<PullDown>[src]

impl PinMode for Input<PullUp>[src]

impl PinMode for Output<PushPull>[src]

impl PinMode for Output<Readable>[src]

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

Loading content...