[][src]Trait lpc82x_hal::swm::AssignFunction

pub trait AssignFunction<Function, Kind> {
    type Assigned;
    fn assign(self) -> Self::Assigned;
}

Internal trait used to assign functions to pins

This trait is an internal implementation detail and should neither be implemented nor used outside of LPC82x 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.

Associated Types

type Assigned

The type of the pin after the function has been assigned

Loading content...

Required methods

fn assign(self) -> Self::Assigned

Internal method for assigning a function to a pin

Loading content...

Implementors

impl<T, F> AssignFunction<F, Adc> for Pin<T, Swm<(), ()>> where
    T: PinTrait,
    F: FunctionTrait<T, Kind = Adc>, 
[src]

type Assigned = Pin<T, Adc>

impl<T, F, Is> AssignFunction<F, Output> for Pin<T, Swm<(), Is>> where
    T: PinTrait,
    F: FunctionTrait<T, Kind = Output>, 
[src]

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

impl<T, F, O, Is> AssignFunction<F, Input> for Pin<T, Swm<O, Is>> where
    T: PinTrait,
    F: FunctionTrait<T, Kind = Input>, 
[src]

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

Loading content...