pub trait FunctionTrait<P: Trait> {
type Kind: FunctionKind;
// Required methods
fn assign(&mut self, pin: &mut P, swm: &mut Handle);
fn unassign(&mut self, pin: &mut P, swm: &mut Handle);
}Expand description
Implemented for all fixed and movable functions
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 Function::assign and Function::unassign for the public
API that uses this trait.
Required Associated Types§
Sourcetype Kind: FunctionKind
type Kind: FunctionKind
Whether this is an input or output function
There are also bidirectional functions, but for our purposes, they are treated as output functions.