[][src]Trait gemma_m0::gpio::IntoFunction

pub trait IntoFunction<T> {
    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

fn into_function(self, port: &mut Port) -> T

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

Loading content...

Implementors

impl<MODE> IntoFunction<Pa0<PfA>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfB>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfC>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfD>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfE>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfF>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfG>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa0<PfH>> for Pa0<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfA>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfB>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfC>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfD>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfE>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfF>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfG>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa1<PfH>> for Pa1<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfA>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfB>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfC>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfD>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfE>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfF>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfG>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa10<PfH>> for Pa10<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfA>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfB>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfC>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfD>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfE>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfF>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfG>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa11<PfH>> for Pa11<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfA>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfB>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfC>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfD>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfE>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfF>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfG>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa12<PfH>> for Pa12<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfA>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfB>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfC>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfD>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfE>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfF>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfG>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa13<PfH>> for Pa13<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfA>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfB>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfC>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfD>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfE>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfF>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfG>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa14<PfH>> for Pa14<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfA>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfB>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfC>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfD>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfE>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfF>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfG>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa15<PfH>> for Pa15<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfA>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfB>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfC>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfD>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfE>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfF>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfG>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa16<PfH>> for Pa16<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfA>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfB>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfC>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfD>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfE>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfF>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfG>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa17<PfH>> for Pa17<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfA>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfB>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfC>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfD>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfE>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfF>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfG>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa18<PfH>> for Pa18<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfA>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfB>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfC>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfD>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfE>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfF>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfG>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa19<PfH>> for Pa19<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfA>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfB>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfC>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfD>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfE>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfF>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfG>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa2<PfH>> for Pa2<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfA>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfB>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfC>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfD>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfE>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfF>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfG>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa20<PfH>> for Pa20<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfA>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfB>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfC>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfD>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfE>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfF>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfG>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa21<PfH>> for Pa21<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfA>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfB>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfC>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfD>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfE>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfF>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfG>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa22<PfH>> for Pa22<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfA>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfB>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfC>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfD>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfE>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfF>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfG>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa23<PfH>> for Pa23<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfA>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfB>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfC>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfD>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfE>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfF>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfG>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa24<PfH>> for Pa24<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfA>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfB>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfC>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfD>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfE>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfF>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfG>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa25<PfH>> for Pa25<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfA>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfB>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfC>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfD>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfE>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfF>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfG>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa26<PfH>> for Pa26<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfA>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfB>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfC>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfD>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfE>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfF>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfG>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa27<PfH>> for Pa27<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfA>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfB>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfC>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfD>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfE>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfF>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfG>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa28<PfH>> for Pa28<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfA>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfB>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfC>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfD>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfE>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfF>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfG>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa29<PfH>> for Pa29<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfA>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfB>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfC>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfD>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfE>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfF>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfG>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa3<PfH>> for Pa3<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfA>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfB>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfC>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfD>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfE>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfF>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfG>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa30<PfH>> for Pa30<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfA>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfB>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfC>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfD>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfE>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfF>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfG>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa31<PfH>> for Pa31<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfA>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfB>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfC>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfD>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfE>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfF>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfG>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa4<PfH>> for Pa4<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfA>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfB>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfC>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfD>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfE>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfF>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfG>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa5<PfH>> for Pa5<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfA>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfB>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfC>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfD>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfE>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfF>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfG>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa6<PfH>> for Pa6<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfA>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfB>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfC>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfD>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfE>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfF>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfG>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa7<PfH>> for Pa7<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfA>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfB>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfC>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfD>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfE>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfF>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfG>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa8<PfH>> for Pa8<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfA>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfB>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfC>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfD>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfE>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfF>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfG>> for Pa9<MODE>[src]

impl<MODE> IntoFunction<Pa9<PfH>> for Pa9<MODE>[src]

Loading content...