Adch

Enum Adch 

#[repr(u8)]
pub enum Adch {
Show 41 variants _000000 = 0, _000001 = 1, _000010 = 2, _000011 = 3, _000100 = 4, _000101 = 5, _000110 = 6, _000111 = 7, _001000 = 8, _01001 = 9, _001010 = 10, _001011 = 11, _001100 = 12, _001101 = 13, _001110 = 14, _001111 = 15, _010101 = 21, _010110 = 22, _010111 = 23, _011011 = 27, _011100 = 28, _011101 = 29, _011110 = 30, _011111 = 31, _100000 = 32, _100001 = 33, _100010 = 34, _100011 = 35, _100100 = 36, _100101 = 37, _100110 = 38, _100111 = 39, _101000 = 40, _101001 = 41, _101010 = 42, _101011 = 43, _101100 = 44, _101101 = 45, _101110 = 46, _101111 = 47, _11xxxx = 48,
}
Expand description

Input channel select

Value on reset: 63

Variants§

§

_000000 = 0

0: External input channel 0 is selected.

§

_000001 = 1

1: External channel 1 is selected as input.

§

_000010 = 2

2: External channel 2 is selected as input.

§

_000011 = 3

3: External channel 3 is selected as input.

§

_000100 = 4

4: External channel 4 is selected as input.

§

_000101 = 5

5: External channel 5 is selected as input.

§

_000110 = 6

6: External channel 6 is selected as input.

§

_000111 = 7

7: External channel 7 is selected as input.

§

_001000 = 8

8: External channel 8 is selected as input.

§

_01001 = 9

9: External channel 9 is selected as input.

§

_001010 = 10

10: External channel 10 is selected as input.

§

_001011 = 11

11: External channel 11 is selected as input.

§

_001100 = 12

12: External channel 12 is selected as input.

§

_001101 = 13

13: External channel 13 is selected as input.

§

_001110 = 14

14: External channel 14 is selected as input.

§

_001111 = 15

15: External channel 15 is selected as input.

§

_010101 = 21

21: Internal channel 0 is selected as input.

§

_010110 = 22

22: Internal channel 1 is selected as input.

§

_010111 = 23

23: Internal channel 2 is selected as input.

§

_011011 = 27

27: Band Gap

§

_011100 = 28

28: Internal channel 3 is selected as input.

§

_011101 = 29

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

§

_011110 = 30

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

§

_011111 = 31

31: Module is disabled

§

_100000 = 32

32: Internal channel 16 is selected as input.

§

_100001 = 33

33: External channel 17 is selected as input.

§

_100010 = 34

34: External channel 18 is selected as input.

§

_100011 = 35

35: External channel 19 is selected as input.

§

_100100 = 36

36: External channel 20 is selected as input.

§

_100101 = 37

37: External channel 21 is selected as input.

§

_100110 = 38

38: External channel 22 is selected as input.

§

_100111 = 39

39: External channel 23 is selected as input.

§

_101000 = 40

40: External channel 24 is selected as input.

§

_101001 = 41

41: External channel 25 is selected as input.

§

_101010 = 42

42: External channel 26 is selected as input.

§

_101011 = 43

43: External channel 27 is selected as input.

§

_101100 = 44

44: External channel 28 is selected as input.

§

_101101 = 45

45: External channel 29 is selected as input.

§

_101110 = 46

46: External channel 30 is selected as input.

§

_101111 = 47

47: External channel 31 is selected as input.

§

_11xxxx = 48

48: 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.