[][src]Trait itsybitsy_m0::gpio::IntoFunction

pub trait IntoFunction<T> {
    pub fn into_function(self, port: &mut Port) -> T;
}

A trait that makes it easier to generically manage converting a pin from its current state into some other functional mode. The configuration change requires exclusive access to the Port hardware, which is why this isn't simply the standard Into trait.

Required methods

pub fn into_function(self, port: &mut Port) -> T[src]

Consume the pin and configure it to operate in the mode T.

Loading content...

Implementors

impl<I, M, C> IntoFunction<Pin<I, Alternate<C>>> for Pin<I, M> where
    C: AlternateConfig,
    M: PinMode,
    I: PinId
[src]

Loading content...