efm32gg11b820::gpio::pf_modeh

Enum MODE14_A

Source
#[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§

Source§

impl Clone for MODE14_A

Source§

fn clone(&self) -> MODE14_A

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MODE14_A

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<MODE14_A> for u8

Source§

fn from(variant: MODE14_A) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for MODE14_A

Source§

fn eq(&self, other: &MODE14_A) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for MODE14_A

Source§

impl StructuralPartialEq for MODE14_A

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.