#[repr(u8)]pub enum Drive {
PushPull = 0,
OpenDrain = 1,
OpenSource = 2,
}
Expand description
Output drive mode of a GPIO line
Usually GPIO lines configured as push-pull but sometimes it required to drive via open drain or source.
Variants§
PushPull = 0
Drive push-pull (default)
OpenDrain = 1
Drive with open-drain
OpenSource = 2
Drive with open-source
Trait Implementations§
source§impl PartialEq for Drive
impl PartialEq for Drive
impl Copy for Drive
impl Eq for Drive
impl StructuralPartialEq for Drive
Auto Trait Implementations§
impl Freeze for Drive
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnwindSafe for Drive
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