AssignFunction

Trait AssignFunction 

Source
pub trait AssignFunction<Function, Kind> {
    type Assigned;

    // Required method
    fn assign(self) -> Self::Assigned;
}
Expand description

Internal trait used to assign functions to pins

This trait is an internal implementation detail and should neither be implemented nor used outside of LPC8xx HAL. Any changes to this trait won’t be considered breaking changes.

Please refer to Function::assign for the public API that uses this trait.

Required Associated Types§

Source

type Assigned

The type of the pin after the function has been assigned

Required Methods§

Source

fn assign(self) -> Self::Assigned

Internal method for assigning a function to a pin

Implementors§

Source§

impl<T, F> AssignFunction<F, Analog> for Pin<T, Swm<(), ()>>
where T: Trait, F: FunctionTrait<T, Kind = Analog>,

Source§

impl<T, F, Is> AssignFunction<F, Output> for Pin<T, Swm<(), Is>>
where T: Trait, F: FunctionTrait<T, Kind = Output>,

Source§

type Assigned = Pin<T, Swm<((),), Is>>

Source§

impl<T, F, O, Is> AssignFunction<F, Input> for Pin<T, Swm<O, Is>>
where T: Trait, F: FunctionTrait<T, Kind = Input>,

Source§

type Assigned = Pin<T, Swm<O, (Is,)>>