#[repr(u8)]pub enum OutputConfig {
Disabled = 0,
OpenDrain = 1,
OpenSource = 2,
PushPull = 3,
}
Available on crate feature
api-gpio
only.Expand description
Output GPIO configuration.
Variants§
Disabled = 0
Output is disabled.
OpenDrain = 1
Output can only drive low.
OpenSource = 2
Output can only drive high.
PushPull = 3
Output can drive both low and high.
Trait Implementations§
Source§impl CheckedBitPattern for OutputConfig
impl CheckedBitPattern for OutputConfig
Source§type Bits = u8
type Bits = u8
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OutputConfig
impl Debug for OutputConfig
impl Copy for OutputConfig
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnwindSafe for OutputConfig
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