Enum wasefire_board_api::gpio::InputConfig
source · #[repr(u8)]pub enum InputConfig {
Disabled = 0,
Floating = 1,
PullDown = 2,
PullUp = 3,
}
Available on crate feature
api-gpio
only.Expand description
Input GPIO configuration.
Variants§
Disabled = 0
Input is disabled.
Floating = 1
Input is floating.
PullDown = 2
Input has a pull-down resistor.
PullUp = 3
Input has a pull-up resistor.
Trait Implementations§
source§impl CheckedBitPattern for InputConfig
impl CheckedBitPattern for InputConfig
§type Bits = u8
type Bits = u8
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.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
impl Copy 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
)