Enum avr_device::atmega2560::adc::admux::MUX_A

source ·
#[repr(u8)]
pub enum MUX_A {
Show 32 variants ADC0 = 0, ADC1 = 1, ADC2 = 2, ADC3 = 3, ADC4 = 4, ADC5 = 5, ADC6 = 6, ADC7 = 7, ADC0_ADC0_10X = 8, ADC1_ADC0_10X = 9, ADC0_ADC0_200X = 10, ADC1_ADC0_200X = 11, ADC2_ADC2_10X = 12, ADC3_ADC2_10X = 13, ADC2_ADC2_200X = 14, ADC3_ADC2_200X = 15, ADC0_ADC1_1X = 16, ADC1_ADC1_1X = 17, ADC2_ADC1_1X = 18, ADC3_ADC1_1X = 19, ADC4_ADC1_1X = 20, ADC5_ADC1_1X = 21, ADC6_ADC1_1X = 22, ADC7_ADC1_1X = 23, ADC0_ADC2_1X = 24, ADC1_ADC2_1X = 25, ADC2_ADC2_1X = 26, ADC3_ADC2_1X = 27, ADC4_ADC2_1X = 28, ADC5_ADC2_1X = 29, ADC_VBG = 30, ADC_GND = 31,
}
Expand description

Analog Channel and Gain Selection Bits

Value on reset: 0

Variants§

§

ADC0 = 0

0: ADC Single Ended Input pin 0

§

ADC1 = 1

1: ADC Single Ended Input pin 1

§

ADC2 = 2

2: ADC Single Ended Input pin 2

§

ADC3 = 3

3: ADC Single Ended Input pin 3

§

ADC4 = 4

4: ADC Single Ended Input pin 4

§

ADC5 = 5

5: ADC Single Ended Input pin 5

§

ADC6 = 6

6: ADC Single Ended Input pin 6

§

ADC7 = 7

7: ADC Single Ended Input pin 7

§

ADC0_ADC0_10X = 8

8: ADC Differential Inputs Postive pin 0 Negative pin 0 10x Gain

§

ADC1_ADC0_10X = 9

9: ADC Differential Inputs Postive pin 1 Negative pin 0 10x Gain

§

ADC0_ADC0_200X = 10

10: ADC Differential Inputs Postive pin 0 Negative pin 0 200x Gain

§

ADC1_ADC0_200X = 11

11: ADC Differential Inputs Postive pin 1 Negative pin 0 200x Gain

§

ADC2_ADC2_10X = 12

12: ADC Differential Inputs Postive pin 2 Negative pin 2 10x Gain

§

ADC3_ADC2_10X = 13

13: ADC Differential Inputs Postive pin 3 Negative pin 2 10x Gain

§

ADC2_ADC2_200X = 14

14: ADC Differential Inputs Postive pin 2 Negative pin 2 200x Gain

§

ADC3_ADC2_200X = 15

15: ADC Differential Inputs Postive pin 3 Negative pin 2 200x Gain

§

ADC0_ADC1_1X = 16

16: ADC Differential Inputs Postive pin 0 Negative pin 1 1x Gain

§

ADC1_ADC1_1X = 17

17: ADC Differential Inputs Postive pin 1 Negative pin 1 1x Gain

§

ADC2_ADC1_1X = 18

18: ADC Differential Inputs Postive pin 2 Negative pin 1 1x Gain

§

ADC3_ADC1_1X = 19

19: ADC Differential Inputs Postive pin 3 Negative pin 1 1x Gain

§

ADC4_ADC1_1X = 20

20: ADC Differential Inputs Postive pin 4 Negative pin 1 1x Gain

§

ADC5_ADC1_1X = 21

21: ADC Differential Inputs Postive pin 5 Negative pin 1 1x Gain

§

ADC6_ADC1_1X = 22

22: ADC Differential Inputs Postive pin 6 Negative pin 1 1x Gain

§

ADC7_ADC1_1X = 23

23: ADC Differential Inputs Postive pin 7 Negative pin 1 1x Gain

§

ADC0_ADC2_1X = 24

24: ADC Differential Inputs Postive pin 0 Negative pin 2 1x Gain

§

ADC1_ADC2_1X = 25

25: ADC Differential Inputs Postive pin 1 Negative pin 2 1x Gain

§

ADC2_ADC2_1X = 26

26: ADC Differential Inputs Postive pin 2 Negative pin 2 1x Gain

§

ADC3_ADC2_1X = 27

27: ADC Differential Inputs Postive pin 3 Negative pin 2 1x Gain

§

ADC4_ADC2_1X = 28

28: ADC Differential Inputs Postive pin 4 Negative pin 2 1x Gain

§

ADC5_ADC2_1X = 29

29: ADC Differential Inputs Postive pin 5 Negative pin 2 1x Gain

§

ADC_VBG = 30

30: Internal Reference (VBG)

§

ADC_GND = 31

31: 0V (GND)

Trait Implementations§

source§

impl Clone for MUX_A

source§

fn clone(&self) -> MUX_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 MUX_A

source§

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

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

impl From<MUX_A> for u8

source§

fn from(variant: MUX_A) -> Self

Converts to this type from the input type.
source§

impl PartialEq for MUX_A

source§

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

source§

impl Eq for MUX_A

source§

impl StructuralPartialEq for MUX_A

Auto Trait Implementations§

§

impl Freeze for MUX_A

§

impl RefUnwindSafe for MUX_A

§

impl Send for MUX_A

§

impl Sync for MUX_A

§

impl Unpin for MUX_A

§

impl UnwindSafe for MUX_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> 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, 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.