Struct Seq2
#[repr(transparent)]pub struct Seq2(pub u32);Expand description
SEQ_2 register.
Tuple Fields§
§0: u32Implementations§
§impl Seq2
impl Seq2
pub const fn seq8(&self) -> u8
pub const fn seq8(&self) -> u8
SEQ8[3:0]: channel number code for 9th conversion of the sequence 0000: VINM[0] to ADC single negative input 0001: VINM[1] to ADC single negative input 0010: VINM[2] to ADC single negative input 0011: VINM[3] to ADC single negative input 0100: VINP[0] to ADC single positive input 0101: VINP[1] to ADC single positive input 0110: VINP[2] to ADC single positive input 0111: VINP[3] to ADC single positive input 1000: VINP[0]-VINM[0] to ADC differential input 1001: VINP[1]-VINM[1] to ADC differential input 1010: VINP[2]-VINM[2] to ADC differential input 1011: VINP[3]-VINM[3] to ADC differential input 1100: VBAT - Battery level detector 1101: Temperature sensor 111x: reserved.
pub fn set_seq8(&mut self, val: u8)
pub fn set_seq8(&mut self, val: u8)
SEQ8[3:0]: channel number code for 9th conversion of the sequence 0000: VINM[0] to ADC single negative input 0001: VINM[1] to ADC single negative input 0010: VINM[2] to ADC single negative input 0011: VINM[3] to ADC single negative input 0100: VINP[0] to ADC single positive input 0101: VINP[1] to ADC single positive input 0110: VINP[2] to ADC single positive input 0111: VINP[3] to ADC single positive input 1000: VINP[0]-VINM[0] to ADC differential input 1001: VINP[1]-VINM[1] to ADC differential input 1010: VINP[2]-VINM[2] to ADC differential input 1011: VINP[3]-VINM[3] to ADC differential input 1100: VBAT - Battery level detector 1101: Temperature sensor 111x: reserved.
pub const fn seq9(&self) -> u8
pub const fn seq9(&self) -> u8
SEQ9[3:0]: channel number code for 10th conversion of the sequence. See SEQ0 for code detail.
pub fn set_seq9(&mut self, val: u8)
pub fn set_seq9(&mut self, val: u8)
SEQ9[3:0]: channel number code for 10th conversion of the sequence. See SEQ0 for code detail.
pub const fn seq10(&self) -> u8
pub const fn seq10(&self) -> u8
SEQ10[3:0]: channel number code for 11th conversion of the sequence. See SEQ0 for code detail.
pub fn set_seq10(&mut self, val: u8)
pub fn set_seq10(&mut self, val: u8)
SEQ10[3:0]: channel number code for 11th conversion of the sequence. See SEQ0 for code detail.
pub const fn seq11(&self) -> u8
pub const fn seq11(&self) -> u8
SEQ11[3:0]: channel number code for 12th conversion of the sequence. See SEQ0 for code detail.
pub fn set_seq11(&mut self, val: u8)
pub fn set_seq11(&mut self, val: u8)
SEQ11[3:0]: channel number code for 12th conversion of the sequence. See SEQ0 for code detail.
pub const fn seq12(&self) -> u8
pub const fn seq12(&self) -> u8
SEQ12[3:0]: channel number code for 13th conversion of the sequence. See SEQ0 for code detail.
pub fn set_seq12(&mut self, val: u8)
pub fn set_seq12(&mut self, val: u8)
SEQ12[3:0]: channel number code for 13th conversion of the sequence. See SEQ0 for code detail.
pub const fn seq13(&self) -> u8
pub const fn seq13(&self) -> u8
SEQ13[3:0]: channel number code for 14th conversion of the sequence. See SEQ0 for code detail.
pub fn set_seq13(&mut self, val: u8)
pub fn set_seq13(&mut self, val: u8)
SEQ13[3:0]: channel number code for 14th conversion of the sequence. See SEQ0 for code detail.
pub const fn seq14(&self) -> u8
pub const fn seq14(&self) -> u8
SEQ14[3:0]: channel number code for 15th conversion of the sequence. See SEQ0 for code detail.
pub fn set_seq14(&mut self, val: u8)
pub fn set_seq14(&mut self, val: u8)
SEQ14[3:0]: channel number code for 15th conversion of the sequence. See SEQ0 for code detail.