pub enum Drive {
PushPull,
OpenDrain,
}Expand description
How an output pin drives its two states.
Variants§
PushPull
Push-pull: the pin actively drives both high and low.
OpenDrain
Open-drain: the pin actively drives low and floats when high, so an external pull-up sets the high level. This is what shared, multi-device lines like I2C use.
Trait Implementations§
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 UnsafeUnpin 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