Enum rp2040_hal::gpio::InputOverride
source · pub enum InputOverride {
Normal = 0,
Invert = 1,
AlwaysLow = 2,
AlwaysHigh = 3,
}
Expand description
Input override state.
Variants§
Normal = 0
Don’t invert the peripheral input.
Invert = 1
Invert the peripheral input.
AlwaysLow = 2
Drive peripheral input low.
AlwaysHigh = 3
Drive peripheral input high.
Trait Implementations§
source§impl Clone for InputOverride
impl Clone for InputOverride
source§fn clone(&self) -> InputOverride
fn clone(&self) -> InputOverride
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 InputOverride
impl Debug for InputOverride
source§impl PartialEq for InputOverride
impl PartialEq for InputOverride
source§fn eq(&self, other: &InputOverride) -> bool
fn eq(&self, other: &InputOverride) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InputOverride
impl Eq for InputOverride
impl StructuralPartialEq for InputOverride
Auto Trait Implementations§
impl RefUnwindSafe for InputOverride
impl Send for InputOverride
impl Sync for InputOverride
impl Unpin for InputOverride
impl UnwindSafe for InputOverride
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