Enum esp_idf_hal::gpio::DriveStrength
source · pub enum DriveStrength {
I5mA = 0,
I10mA = 1,
I20mA = 2,
I40mA = 3,
}
Expand description
Drive strength (values are approximates)
Variants§
Trait Implementations§
source§impl Clone for DriveStrength
impl Clone for DriveStrength
source§fn clone(&self) -> DriveStrength
fn clone(&self) -> DriveStrength
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DriveStrength
impl Debug for DriveStrength
source§impl From<DriveStrength> for gpio_drive_cap_t
impl From<DriveStrength> for gpio_drive_cap_t
source§fn from(strength: DriveStrength) -> gpio_drive_cap_t
fn from(strength: DriveStrength) -> gpio_drive_cap_t
Converts to this type from the input type.
source§impl From<u32> for DriveStrength
impl From<u32> for DriveStrength
source§fn from(cap: gpio_drive_cap_t) -> DriveStrength
fn from(cap: gpio_drive_cap_t) -> DriveStrength
Converts to this type from the input type.
source§impl PartialEq for DriveStrength
impl PartialEq for DriveStrength
source§fn eq(&self, other: &DriveStrength) -> bool
fn eq(&self, other: &DriveStrength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DriveStrength
impl Eq for DriveStrength
impl StructuralPartialEq for DriveStrength
Auto Trait Implementations§
impl Freeze for DriveStrength
impl RefUnwindSafe for DriveStrength
impl Send for DriveStrength
impl Sync for DriveStrength
impl Unpin for DriveStrength
impl UnwindSafe for DriveStrength
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,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)