pub enum Configuration {
LowPower,
Input,
Output,
InputOutput,
Function,
Other,
}
Expand description
Enum for which state the pin is in. Some MCUs can support Input/Output pins,
so this is a valid option. Function
means the pin has been configured to
a special function. Determining which function it outside the scope of the HIL,
and should instead use a chip-specific API.
Variants
LowPower
Cannot be read or written or used; effectively inactive.
Input
Calls to the Input
trait are valid.
Output
Calls to the Output
trait are valid.
InputOutput
Calls to both the Input
and Output
traits are valid.
Function
Chip-specific, requires chip-specific API for more detail,
Other
In a state not covered by other values.
Trait Implementations
sourceimpl Clone for Configuration
impl Clone for Configuration
sourcefn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Configuration
impl Debug for Configuration
impl Copy for Configuration
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more