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§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Configuration
impl Debug for Configuration
impl Copy for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more