pub enum PinMode {
Output,
InputPullup,
InputFloating,
Input,
}
Expand description
Input/output mode for a pin
Variants§
Output
Pin is configured as output
InputPullup
Pin is configured as an input with internal pullup enabled
InputFloating
Pin is configured as an input with internal pullup disabled
Input
Pin is configured as an input without changing the pullup
Trait Implementations§
source§impl PartialEq for PinMode
impl PartialEq for PinMode
source§impl Persist for PinMode
impl Persist for PinMode
source§fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
fn load_from<R: Read>(reader: &mut R) -> PersistenceResult<Self>where
Self: Sized,
Load an instance of this Enum from the given reader
source§fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
fn save_to<W: Write>(&self, writer: &mut W) -> PersistenceResult<()>
Save an instance of this Enum to the given writer.
source§fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
fn load_with<R: Read>(reader: R) -> PersistenceResult<Self>
Take the given reader and use it to load an instance of this type.
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