pub enum ADCHR {
Show 30 variants
_00000,
_00001,
_00010,
_00011,
_00100,
_00101,
_00110,
_00111,
_01000,
_01001,
_01010,
_01011,
_01100,
_01101,
_01110,
_01111,
_10000,
_10001,
_10010,
_10011,
_10100,
_10101,
_10110,
_10111,
_11010,
_11011,
_11101,
_11110,
_11111,
_Reserved(u8),
}
Expand description
Possible values of the field ADCH
Variants§
_00000
When DIFF=0, DADP0 is selected as input; when DIFF=1, DAD0 is selected as input.
_00001
When DIFF=0, DADP1 is selected as input; when DIFF=1, DAD1 is selected as input.
_00010
When DIFF=0, DADP2 is selected as input; when DIFF=1, DAD2 is selected as input.
_00011
When DIFF=0, DADP3 is selected as input; when DIFF=1, DAD3 is selected as input.
_00100
When DIFF=0, AD4 is selected as input; when DIFF=1, it is reserved.
_00101
When DIFF=0, AD5 is selected as input; when DIFF=1, it is reserved.
_00110
When DIFF=0, AD6 is selected as input; when DIFF=1, it is reserved.
_00111
When DIFF=0, AD7 is selected as input; when DIFF=1, it is reserved.
_01000
When DIFF=0, AD8 is selected as input; when DIFF=1, it is reserved.
_01001
When DIFF=0, AD9 is selected as input; when DIFF=1, it is reserved.
_01010
When DIFF=0, AD10 is selected as input; when DIFF=1, it is reserved.
_01011
When DIFF=0, AD11 is selected as input; when DIFF=1, it is reserved.
_01100
When DIFF=0, AD12 is selected as input; when DIFF=1, it is reserved.
_01101
When DIFF=0, AD13 is selected as input; when DIFF=1, it is reserved.
_01110
When DIFF=0, AD14 is selected as input; when DIFF=1, it is reserved.
_01111
When DIFF=0, AD15 is selected as input; when DIFF=1, it is reserved.
_10000
When DIFF=0, AD16 is selected as input; when DIFF=1, it is reserved.
_10001
When DIFF=0, AD17 is selected as input; when DIFF=1, it is reserved.
_10010
When DIFF=0, AD18 is selected as input; when DIFF=1, it is reserved.
_10011
When DIFF=0, AD19 is selected as input; when DIFF=1, it is reserved.
_10100
When DIFF=0, AD20 is selected as input; when DIFF=1, it is reserved.
_10101
When DIFF=0, AD21 is selected as input; when DIFF=1, it is reserved.
_10110
When DIFF=0, AD22 is selected as input; when DIFF=1, it is reserved.
_10111
When DIFF=0, AD23 is selected as input; when DIFF=1, it is reserved.
_11010
When DIFF=0, Temp sensor (single-ended) is selected as input; when DIFF=1, Temp sensor (differential) is selected as input.
_11011
When DIFF=0, Bandgap (single-ended) is selected as input; when DIFF=1, Bandgap (differential) is selected as input.
_11101
When DIFF=0, VREFSH is selected as input; when DIFF=1, -VREFSH (differential) is selected as input. Voltage reference selected is determined by the REFSEL bits in the SC2 register.
_11110
When DIFF=0, VREFSL is selected as input; when DIFF=1, it is reserved. Voltage reference selected is determined by the REFSEL bits in the SC2 register.
_11111
Module disabled.
_Reserved(u8)
Reserved