#[repr(transparent)]pub struct Chselr(pub u32);
Expand description
ADC channel selection register [alternate].
Tuple Fields§
§0: u32
Implementations§
Source§impl Chselr
impl Chselr
Sourcepub const fn chsel0(&self, n: usize) -> bool
pub const fn chsel0(&self, n: usize) -> bool
Channel x selection These bits are written by software and define which channels are part of the sequence of channels to be converted. 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).
Sourcepub fn set_chsel0(&mut self, n: usize, val: bool)
pub fn set_chsel0(&mut self, n: usize, val: bool)
Channel x selection These bits are written by software and define which channels are part of the sequence of channels to be converted. 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 Copy for Chselr
impl Eq for Chselr
impl StructuralPartialEq for Chselr
Auto Trait Implementations§
impl Freeze for Chselr
impl RefUnwindSafe for Chselr
impl Send for Chselr
impl Sync for Chselr
impl Unpin for Chselr
impl UnwindSafe for Chselr
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
Mutably borrows from an owned value. Read more