Struct stm32_metapac::adc::regs::Smpr
#[repr(transparent)]pub struct Smpr(pub u32);
Expand description
ADC sampling time register.
Tuple Fields§
§0: u32
Implementations§
§impl Smpr
impl Smpr
pub const fn smp(&self, n: usize) -> SampleTime
pub const fn smp(&self, n: usize) -> SampleTime
Sampling time selection 1 These bits are written by software to select the sampling time that applies to all channels. 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_smp(&mut self, n: usize, val: SampleTime)
pub fn set_smp(&mut self, n: usize, val: SampleTime)
Sampling time selection 1 These bits are written by software to select the sampling time that applies to all channels. 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 const fn smpsel(&self, n: usize) -> Smpsel
pub const fn smpsel(&self, n: usize) -> Smpsel
Channel-x sampling time selection These bits are written by software to define which sampling time is used. 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_smpsel(&mut self, n: usize, val: Smpsel)
pub fn set_smpsel(&mut self, n: usize, val: Smpsel)
Channel-x sampling time selection These bits are written by software to define which sampling time is used. 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 Smpr
impl Eq for Smpr
impl StructuralPartialEq for Smpr
Auto Trait Implementations§
impl Freeze for Smpr
impl RefUnwindSafe for Smpr
impl Send for Smpr
impl Sync for Smpr
impl Unpin for Smpr
impl UnwindSafe for Smpr
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
)