#[repr(u32)]pub enum GpioMode {
Input = 0,
OutputPP = 1,
OutputOD = 2,
}Expand description
GPIO pin direction/pull mode.
Variants§
Input = 0
Pin configured as a digital input.
OutputPP = 1
Pin configured as a push-pull output.
OutputOD = 2
Pin configured as an open-drain output.
Trait Implementations§
impl Copy for GpioMode
impl Eq for GpioMode
impl StructuralPartialEq for GpioMode
Auto Trait Implementations§
impl Freeze for GpioMode
impl RefUnwindSafe for GpioMode
impl Send for GpioMode
impl Sync for GpioMode
impl Unpin for GpioMode
impl UnwindSafe for GpioMode
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