#[repr(u8)]pub enum PinMode {
InputFloating = 0,
InputPullup = 1,
Output = 2,
}
Expand description
The possible configurations of a pin. PinMode::InputPullup uses a 100k internal pullup resistor.
Variants§
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