[−][src]Trait lpc8xx_hal::swm::FunctionTrait
Implemented for all fixed and movable functions
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 Function::assign
and Function::unassign
for the public
API that uses this trait.
Associated Types
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.
Required methods
fn assign(&mut self, pin: &mut P, swm: &mut Handle)
Internal method to assign a function to a pin
fn unassign(&mut self, pin: &mut P, swm: &mut Handle)
Internal method to unassign a function from a pin