Enum xmc4800::port6::iocr0::Pc1

source ·
#[repr(u8)]
pub enum Pc1 {
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 Pc1

source§

fn clone(&self) -> Pc1

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 Pc1

source§

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

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

impl FieldSpec for Pc1

§

type Ux = u8

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

impl From<Pc1> for u8

source§

fn from(variant: Pc1) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Pc1

source§

fn eq(&self, other: &Pc1) -> 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 Pc1

source§

impl Eq for Pc1

source§

impl StructuralPartialEq for Pc1

Auto Trait Implementations§

§

impl RefUnwindSafe for Pc1

§

impl Send for Pc1

§

impl Sync for Pc1

§

impl Unpin for Pc1

§

impl UnwindSafe for Pc1

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.