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.

Required Associated Types

The argument of the switch method

Required Methods

Switch a pin to this direction

This method is for internal use only. Any changes to it won’t be considered breaking changes.

Implementors