#[repr(u8)]pub enum MODE14_A {
Show 16 variants
DISABLED = 0,
INPUT = 1,
INPUTPULL = 2,
INPUTPULLFILTER = 3,
PUSHPULL = 4,
PUSHPULLALT = 5,
WIREDOR = 6,
WIREDORPULLDOWN = 7,
WIREDAND = 8,
WIREDANDFILTER = 9,
WIREDANDPULLUP = 10,
WIREDANDPULLUPFILTER = 11,
WIREDANDALT = 12,
WIREDANDALTFILTER = 13,
WIREDANDALTPULLUP = 14,
WIREDANDALTPULLUPFILTER = 15,
}
Expand description
Pin 14 Mode
Value on reset: 0
Variants§
DISABLED = 0
0: Input disabled. Pullup if DOUT is set.
INPUT = 1
1: Input enabled. Filter if DOUT is set
INPUTPULL = 2
2: Input enabled. DOUT determines pull direction
INPUTPULLFILTER = 3
3: Input enabled with filter. DOUT determines pull direction
PUSHPULL = 4
4: Push-pull output
PUSHPULLALT = 5
5: Push-pull using alternate control
WIREDOR = 6
6: Wired-or output
WIREDORPULLDOWN = 7
7: Wired-or output with pull-down
WIREDAND = 8
8: Open-drain output
WIREDANDFILTER = 9
9: Open-drain output with filter
WIREDANDPULLUP = 10
10: Open-drain output with pullup
WIREDANDPULLUPFILTER = 11
11: Open-drain output with filter and pullup
WIREDANDALT = 12
12: Open-drain output using alternate control
WIREDANDALTFILTER = 13
13: Open-drain output using alternate control with filter
WIREDANDALTPULLUP = 14
14: Open-drain output using alternate control with pullup
WIREDANDALTPULLUPFILTER = 15
15: Open-drain output using alternate control with filter and pullup
Trait Implementations§
impl Copy for MODE14_A
impl StructuralPartialEq for MODE14_A
Auto Trait Implementations§
impl Freeze for MODE14_A
impl RefUnwindSafe for MODE14_A
impl Send for MODE14_A
impl Sync for MODE14_A
impl Unpin for MODE14_A
impl UnwindSafe for MODE14_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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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
)