Trait serpente::sercom::v1::PadPin

source ·
pub trait PadPin<P>: Sealed {
    // Required method
    fn into_pad(self, port: &mut Port) -> P;
}
Expand description

The PadPin trait makes it more ergonomic to convert a pin into a Sercom pad. You should not implement this trait for yourself; only the implementations in the sercom module make sense.

Required Methods§

source

fn into_pad(self, port: &mut Port) -> P

Implementors§

source§

impl<S, N, I, M> PadPin<Pad<S, N, Pin<I, <I as GetPad<S>>::PinMode>>> for Pin<I, M>where S: Sercom, N: PadNum, I: GetPad<S>, M: PinMode, Pin<I, M>: IntoFunction<Pin<I, <I as GetPad<S>>::PinMode>>, Pin<I, <I as GetPad<S>>::PinMode>: IsPad<Sercom = S, PadNum = N>,