Enum wasefire_applet_api::gpio::InputConfig
source · #[repr(u32)]pub enum InputConfig {
Disabled = 0,
Floating = 1,
PullDown = 2,
PullUp = 3,
}Expand description
Input configuration.
Variants§
Disabled = 0
Input is disabled.
Floating = 1
Floating input (most common configuration).
Reading while the voltage is not driven may return 0 or 1.
PullDown = 2
Pull-down input.
Reading while the voltage is not driven returns 0.
PullUp = 3
Pull-up input.
Reading while the voltage is not driven returns 1.
Trait Implementations§
source§impl Clone for InputConfig
impl Clone for InputConfig
source§fn clone(&self) -> InputConfig
fn clone(&self) -> InputConfig
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 InputConfig
impl Debug for InputConfig
source§impl From<usize> for InputConfig
impl From<usize> for InputConfig
source§impl Ord for InputConfig
impl Ord for InputConfig
source§fn cmp(&self, other: &InputConfig) -> Ordering
fn cmp(&self, other: &InputConfig) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InputConfig
impl PartialEq for InputConfig
source§fn eq(&self, other: &InputConfig) -> bool
fn eq(&self, other: &InputConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for InputConfig
impl PartialOrd for InputConfig
source§fn partial_cmp(&self, other: &InputConfig) -> Option<Ordering>
fn partial_cmp(&self, other: &InputConfig) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<u32> for InputConfig
impl TryFrom<u32> for InputConfig
impl Copy for InputConfig
impl Eq for InputConfig
impl StructuralPartialEq for InputConfig
Auto Trait Implementations§
impl Freeze for InputConfig
impl RefUnwindSafe for InputConfig
impl Send for InputConfig
impl Sync for InputConfig
impl Unpin for InputConfig
impl UnwindSafe for InputConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)