Enum xmc4500::port15::iocr0::PC0_A

source ·
#[repr(u8)]
pub enum PC0_A {
Show 18 variants VALUE1 = 0, VALUE2 = 1, VALUE3 = 2, VALUE4 = 3, VALUE5 = 4, VALUE6 = 5, VALUE7 = 6, VALUE8 = 7, VALUE9 = 16, VALUE10 = 17, VALUE11 = 18, VALUE12 = 19, VALUE13 = 20, VALUE14 = 24, VALUE15 = 25, VALUE16 = 26, VALUE17 = 27, VALUE18 = 28,
}
Expand description

Port Control for Port n Pin 0 to 3

Value on reset: 0

Variants§

§

VALUE1 = 0

0: Input - No internal pull device active

§

VALUE2 = 1

1: Input - Internal pull-down device active

§

VALUE3 = 2

2: Input - Internal pull-up device active

§

VALUE4 = 3

3: Input - No internal pull device, Pn_OUTx = input value

§

VALUE5 = 4

4: Input inverted - No internal pull device active

§

VALUE6 = 5

5: Input inverted - Internal pull-down device active

§

VALUE7 = 6

6: Input inverted - Internal pull-up device active

§

VALUE8 = 7

7: Input inverted - No internal pull device, Pn_OUTx = input value

§

VALUE9 = 16

16: Output Push-Pull - General-purpose output

§

VALUE10 = 17

17: Output Push-Pull - Alternate output function 1

§

VALUE11 = 18

18: Output Push-Pull - Alternate output function 2

§

VALUE12 = 19

19: Output Push-Pull - Alternate output function 3

§

VALUE13 = 20

20: Output Push-Pull - Alternate output function 4

§

VALUE14 = 24

24: Output Open Drain - General-purpose output

§

VALUE15 = 25

25: Output Open Drain - Alternate output function 1

§

VALUE16 = 26

26: Output Open Drain - Alternate output function 2

§

VALUE17 = 27

27: Output Open Drain - Alternate output function 3

§

VALUE18 = 28

28: Output Open Drain - Alternate output function 4

Trait Implementations§

source§

impl Clone for PC0_A

source§

fn clone(&self) -> PC0_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 PC0_A

source§

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

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

impl FieldSpec for PC0_A

§

type Ux = u8

Raw field type (u8, u16, u32, …).
source§

impl From<PC0_A> for u8

source§

fn from(variant: PC0_A) -> Self

Converts to this type from the input type.
source§

impl PartialEq for PC0_A

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for PC0_A

source§

impl Eq for PC0_A

source§

impl IsEnum for PC0_A

source§

impl StructuralPartialEq for PC0_A

Auto Trait Implementations§

§

impl Freeze for PC0_A

§

impl RefUnwindSafe for PC0_A

§

impl Send for PC0_A

§

impl Sync for PC0_A

§

impl Unpin for PC0_A

§

impl UnwindSafe for PC0_A

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> 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>,

§

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>,

§

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.