#[repr(u8)]pub enum CONFIG {
PushPull = 0,
OpenDrain = 1,
AltPushPull = 2,
AltOpenDrain = 3,
}
Expand description
Port n.%s configuration bits
Value on reset: 1
Variants§
PushPull = 0
0: Analog mode / Push-Pull mode
OpenDrain = 1
1: Floating input (reset state) / Open Drain-Mode
AltPushPull = 2
2: Input with pull-up/pull-down / Alternate Function Push-Pull Mode
AltOpenDrain = 3
3: Alternate Function Open-Drain Mode
Trait Implementations§
impl Copy for CONFIG
impl Eq for CONFIG
impl IsEnum for CONFIG
impl StructuralPartialEq for CONFIG
Auto Trait Implementations§
impl Freeze for CONFIG
impl RefUnwindSafe for CONFIG
impl Send for CONFIG
impl Sync for CONFIG
impl Unpin for CONFIG
impl UnwindSafe for CONFIG
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