pub trait Direction {
type SwitchArg;
fn switch<P: Trait>(_: &Registers<'_>, _: Self::SwitchArg, _: &P) -> Self;
}
Expand description
Implemented by types that indicate GPIO pin direction
The GpioPin
type uses this trait as a bound for its type parameter.
This is done for documentation purposes, to clearly show which types can
be used for this parameter. Other than that, this trait should not be
relevant to users of this crate.