Struct stm32_metapac::adc::regs::Chselr
#[repr(transparent)]pub struct Chselr(pub u32);
Expand description
ADC channel selection register [alternate].
Tuple Fields§
§0: u32
Implementations§
§impl Chselr
impl Chselr
pub 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).
pub 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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)