Struct ChselrAlternate
#[repr(transparent)]pub struct ChselrAlternate(pub u32);
Expand description
ADC channel selection register [alternate].
Tuple Fields§
§0: u32
Implementations§
§impl ChselrAlternate
impl ChselrAlternate
pub const fn sq(&self, n: usize) -> u8
pub const fn sq(&self, n: usize) -> u8
1st conversion of the sequence These bits are programmed by software with the channel number assigned to the 1st conversion of the sequence. 0b1111 indicates end of the sequence. When 0b1111 (end of sequence) is programmed to the lower sequence channels, these bits are ignored. Refer to SQ8[3:0] for a definition of channel selection. Note: The software is allowed to write this bit only when ADSTART is cleared to 0 by writing ADSTP to 1 (which ensures that no conversion is ongoing).
pub fn set_sq(&mut self, n: usize, val: u8)
pub fn set_sq(&mut self, n: usize, val: u8)
1st conversion of the sequence These bits are programmed by software with the channel number assigned to the 1st conversion of the sequence. 0b1111 indicates end of the sequence. When 0b1111 (end of sequence) is programmed to the lower sequence channels, these bits are ignored. Refer to SQ8[3:0] for a definition of channel selection. Note: The software is allowed to write this bit only when ADSTART is cleared to 0 by writing ADSTP to 1 (which ensures that no conversion is ongoing).
Trait Implementations§
§impl Clone for ChselrAlternate
impl Clone for ChselrAlternate
§fn clone(&self) -> ChselrAlternate
fn clone(&self) -> ChselrAlternate
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more