Struct stm32_metapac::adc::regs::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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ChselrAlternate
impl Debug for ChselrAlternate
§impl Default for ChselrAlternate
impl Default for ChselrAlternate
§fn default() -> ChselrAlternate
fn default() -> ChselrAlternate
§impl PartialEq for ChselrAlternate
impl PartialEq for ChselrAlternate
impl Copy for ChselrAlternate
impl Eq for ChselrAlternate
impl StructuralPartialEq for ChselrAlternate
Auto Trait Implementations§
impl Freeze for ChselrAlternate
impl RefUnwindSafe for ChselrAlternate
impl Send for ChselrAlternate
impl Sync for ChselrAlternate
impl Unpin for ChselrAlternate
impl UnwindSafe for ChselrAlternate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)