Enum endbasic_std::gpio::PinMode
source · pub enum PinMode {
In,
InPullDown,
InPullUp,
Out,
}
Expand description
Pin configuration, which includes mode and bias.
Variants§
In
Pin that can be read from with no bias.
InPullDown
Pin that can be read from with its built-in pull-down resistor (if present) enabled.
InPullUp
Pin that can be read from with its built-in pull-up resistor (if present) enabled.
Out
Pin that can be written to.
Trait Implementations§
source§impl PartialEq for PinMode
impl PartialEq for PinMode
impl Copy for PinMode
impl Eq for PinMode
impl StructuralPartialEq for PinMode
Auto Trait Implementations§
impl Freeze for PinMode
impl RefUnwindSafe for PinMode
impl Send for PinMode
impl Sync for PinMode
impl Unpin for PinMode
impl UnwindSafe for PinMode
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: 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
)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
)