Adch

Enum Adch 

#[repr(u8)]
pub enum Adch {
Show 27 variants _00000 = 0, _00001 = 1, _00010 = 2, _00011 = 3, _00100 = 4, _00101 = 5, _00110 = 6, _00111 = 7, _01000 = 8, _01001 = 9, _01010 = 10, _01011 = 11, _01100 = 12, _01101 = 13, _01110 = 14, _01111 = 15, _10010 = 18, _10011 = 19, _10101 = 21, _10110 = 22, _10111 = 23, _11010 = 26, _11011 = 27, _11100 = 28, _11101 = 29, _11110 = 30, _11111 = 31,
}
Expand description

Input channel select

Value on reset: 31

Variants§

§

_00000 = 0

0: External channel 0 is selected as input.

§

_00001 = 1

1: External channel 1 is selected as input.

§

_00010 = 2

2: External channel 2 is selected as input.

§

_00011 = 3

3: External channel 3 is selected as input.

§

_00100 = 4

4: External channel 4 is selected as input.

§

_00101 = 5

5: External channel 5 is selected as input.

§

_00110 = 6

6: External channel 6 is selected as input.

§

_00111 = 7

7: External channel 7 is selected as input.

§

_01000 = 8

8: External channel 8 is selected as input.

§

_01001 = 9

9: External channel 9 is selected as input.

§

_01010 = 10

10: External channel 10 is selected as input.

§

_01011 = 11

11: External channel 11 is selected as input.

§

_01100 = 12

12: External channel 12 is selected as input.

§

_01101 = 13

13: External channel 13 is selected as input.

§

_01110 = 14

14: External channel 14 is selected as input.

§

_01111 = 15

15: External channel 15 is selected as input.

§

_10010 = 18

18: External channel 18 is selected as input.

§

_10011 = 19

19: External channel 19 is selected as input.

§

_10101 = 21

21: Internal channel 0 is selected as input.

§

_10110 = 22

22: Internal channel 1 is selected as input.

§

_10111 = 23

23: Internal channel 2 is selected as input.

§

_11010 = 26

26: Temp Sensor

§

_11011 = 27

27: Band Gap

§

_11100 = 28

28: Internal channel 3 is selected as input.

§

_11101 = 29

29: VREFSH is selected as input. Voltage reference selected is determined by SC2[REFSEL].

§

_11110 = 30

30: VREFSL is selected as input. Voltage reference selected is determined by SC2[REFSEL].

§

_11111 = 31

31: Module is disabled

Trait Implementations§

§

impl Clone for Adch

§

fn clone(&self) -> Adch

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

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

Performs copy-assignment from source. Read more
§

impl Debug for Adch

§

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

Formats the value using the given formatter. Read more
§

impl FieldSpec for Adch

§

type Ux = u8

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

impl Format for Adch

§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
§

impl From<Adch> for u8

§

fn from(variant: Adch) -> Self

Converts to this type from the input type.
§

impl PartialEq for Adch

§

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

impl Copy for Adch

§

impl Eq for Adch

§

impl IsEnum for Adch

§

impl StructuralPartialEq for Adch

Auto Trait Implementations§

§

impl Freeze for Adch

§

impl RefUnwindSafe for Adch

§

impl Send for Adch

§

impl Sync for Adch

§

impl Unpin for Adch

§

impl UnwindSafe for Adch

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.