lpc8xx_hal/swm/function_kind.rs
1/// Implemented for types that designate whether a function is input or output
2///
3/// This trait is an internal implementation detail and should neither be
4/// implemented nor used outside of LPC8xx HAL. Any changes to this trait won't
5/// be considered breaking changes.
6pub trait FunctionKind {}
7
8/// Designates an SWM function as an input function
9pub struct Input;
10impl FunctionKind for Input {}
11
12/// Designates an SWM function as an output function
13pub struct Output;
14impl FunctionKind for Output {}
15
16/// Designates an SWM function as an analog function
17pub struct Analog;
18impl FunctionKind for Analog {}