xmc1000::port2::iocr4

Enum PC5R

Source
pub enum PC5R {
Show 25 variants VALUE1, VALUE2, VALUE3, VALUE4, VALUE5, VALUE6, VALUE7, VALUE8, VALUE9, VALUE10, VALUE11, VALUE12, VALUE13, VALUE14, VALUE15, VALUE16, VALUE17, VALUE18, VALUE19, VALUE20, VALUE21, VALUE22, VALUE23, VALUE24, _Reserved(u8),
}
Expand description

Possible values of the field PC5

Variants§

§

VALUE1

Input - No internal pull device active

§

VALUE2

Input - Internal pull-down device active

§

VALUE3

Input - Internal pull-up device active

§

VALUE4

Input - No internal pull device, Pn_OUTx = input value

§

VALUE5

Input inverted - No internal pull device active

§

VALUE6

Input inverted - Internal pull-down device active

§

VALUE7

Input inverted - Internal pull-up device active

§

VALUE8

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

§

VALUE9

Output Push-Pull - General-purpose output

§

VALUE10

Output Push-Pull - Alternate output function 1

§

VALUE11

Output Push-Pull - Alternate output function 2

§

VALUE12

Output Push-Pull - Alternate output function 3

§

VALUE13

Output Push-Pull - Alternate output function 4

§

VALUE14

Output Push-Pull - Alternate output function 5

§

VALUE15

Output Push-Pull - Alternate output function 6

§

VALUE16

Output Push-Pull - Alternate output function 7

§

VALUE17

Output Open Drain - General-purpose output

§

VALUE18

Output Open Drain - Alternate output function 1

§

VALUE19

Output Open Drain - Alternate output function 2

§

VALUE20

Output Open Drain - Alternate output function 3

§

VALUE21

Output Open Drain - Alternate output function 4

§

VALUE22

Output Open Drain - Alternate output function 5

§

VALUE23

Output Open Drain - Alternate output function 6

§

VALUE24

Output Open Drain - Alternate output function 7

§

_Reserved(u8)

Reserved

Implementations§

Source§

impl PC5R

Source

pub fn bits(&self) -> u8

Value of the field as raw bits

Source

pub fn is_value1(&self) -> bool

Checks if the value of the field is VALUE1

Source

pub fn is_value2(&self) -> bool

Checks if the value of the field is VALUE2

Source

pub fn is_value3(&self) -> bool

Checks if the value of the field is VALUE3

Source

pub fn is_value4(&self) -> bool

Checks if the value of the field is VALUE4

Source

pub fn is_value5(&self) -> bool

Checks if the value of the field is VALUE5

Source

pub fn is_value6(&self) -> bool

Checks if the value of the field is VALUE6

Source

pub fn is_value7(&self) -> bool

Checks if the value of the field is VALUE7

Source

pub fn is_value8(&self) -> bool

Checks if the value of the field is VALUE8

Source

pub fn is_value9(&self) -> bool

Checks if the value of the field is VALUE9

Source

pub fn is_value10(&self) -> bool

Checks if the value of the field is VALUE10

Source

pub fn is_value11(&self) -> bool

Checks if the value of the field is VALUE11

Source

pub fn is_value12(&self) -> bool

Checks if the value of the field is VALUE12

Source

pub fn is_value13(&self) -> bool

Checks if the value of the field is VALUE13

Source

pub fn is_value14(&self) -> bool

Checks if the value of the field is VALUE14

Source

pub fn is_value15(&self) -> bool

Checks if the value of the field is VALUE15

Source

pub fn is_value16(&self) -> bool

Checks if the value of the field is VALUE16

Source

pub fn is_value17(&self) -> bool

Checks if the value of the field is VALUE17

Source

pub fn is_value18(&self) -> bool

Checks if the value of the field is VALUE18

Source

pub fn is_value19(&self) -> bool

Checks if the value of the field is VALUE19

Source

pub fn is_value20(&self) -> bool

Checks if the value of the field is VALUE20

Source

pub fn is_value21(&self) -> bool

Checks if the value of the field is VALUE21

Source

pub fn is_value22(&self) -> bool

Checks if the value of the field is VALUE22

Source

pub fn is_value23(&self) -> bool

Checks if the value of the field is VALUE23

Source

pub fn is_value24(&self) -> bool

Checks if the value of the field is VALUE24

Trait Implementations§

Source§

impl Clone for PC5R

Source§

fn clone(&self) -> PC5R

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 PC5R

Source§

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

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

impl PartialEq for PC5R

Source§

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

Source§

impl StructuralPartialEq for PC5R

Auto Trait Implementations§

§

impl Freeze for PC5R

§

impl RefUnwindSafe for PC5R

§

impl Send for PC5R

§

impl Sync for PC5R

§

impl Unpin for PC5R

§

impl UnwindSafe for PC5R

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> Same for T

Source§

type Output = T

Should always be Self
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.