pub enum DriveMode {
PushPull,
OpenDrain,
}
Expand description
The drive mode of the output pin.
Variants§
PushPull
Push-pull output.
The driver actively sets the output voltage level for both high and low
logical Level
s.
OpenDrain
Open drain output.
The driver actively pulls the output voltage level low for the low
logical Level
, but leaves the high level floating, which is then
determined by external hardware, or internal pull-up/pull-down
resistors.
Trait Implementations§
impl Copy for DriveMode
impl Eq for DriveMode
impl StructuralPartialEq for DriveMode
Auto Trait Implementations§
impl Freeze for DriveMode
impl RefUnwindSafe for DriveMode
impl Send for DriveMode
impl Sync for DriveMode
impl Unpin for DriveMode
impl UnwindSafe for DriveMode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)