#[repr(u8)]pub enum PIN_MODE_A {
OUTPUT_VALUE = 0,
SET_CLEAR = 1,
DMA_OUTPUT_VALUE = 2,
DMA_SET_CLEAR = 3,
}
Expand description
Pin input/output mode switch
Value on reset: 0
Variants§
OUTPUT_VALUE = 0
0: Output by output_value
field
SET_CLEAR = 1
1: Output set by output_set
and output_clear
fields
DMA_OUTPUT_VALUE = 2
2: Source from GPIO DMA, output by output_value
DMA_SET_CLEAR = 3
3: Source from GPIO DMA, set by output_set
and output_clear
Trait Implementations§
Source§impl Clone for PIN_MODE_A
impl Clone for PIN_MODE_A
Source§fn clone(&self) -> PIN_MODE_A
fn clone(&self) -> PIN_MODE_A
Returns a copy 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 PIN_MODE_A
impl Debug for PIN_MODE_A
Source§impl From<PIN_MODE_A> for u8
impl From<PIN_MODE_A> for u8
Source§fn from(variant: PIN_MODE_A) -> Self
fn from(variant: PIN_MODE_A) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PIN_MODE_A
impl PartialEq for PIN_MODE_A
impl Copy for PIN_MODE_A
impl Eq for PIN_MODE_A
impl StructuralPartialEq for PIN_MODE_A
Auto Trait Implementations§
impl Freeze for PIN_MODE_A
impl RefUnwindSafe for PIN_MODE_A
impl Send for PIN_MODE_A
impl Sync for PIN_MODE_A
impl Unpin for PIN_MODE_A
impl UnwindSafe for PIN_MODE_A
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