Struct stm32_metapac::adc::regs::Smpr1
#[repr(transparent)]pub struct Smpr1(pub u32);
Expand description
sample time register 1
Tuple Fields§
§0: u32
Implementations§
§impl Smpr1
impl Smpr1
pub const fn smp(&self, n: usize) -> SampleTime
pub const fn smp(&self, n: usize) -> SampleTime
Channel 0-9 sampling time selection These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.
pub fn set_smp(&mut self, n: usize, val: SampleTime)
pub fn set_smp(&mut self, n: usize, val: SampleTime)
Channel 0-9 sampling time selection These bits are written by software to select the sampling time individually for each channel. During sample cycles, the channel selection bits must remain unchanged. Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing). Some channels are not connected physically. Keep the corresponding SMPx[2:0] setting to the reset value.
pub const fn smpplus(&self) -> Smpplus
pub const fn smpplus(&self) -> Smpplus
Addition of one clock cycle to the sampling time. To make sure no conversion is ongoing, the software is allowed to write this bit only when ADSTART = 0 and JADSTART = 0
pub fn set_smpplus(&mut self, val: Smpplus)
pub fn set_smpplus(&mut self, val: Smpplus)
Addition of one clock cycle to the sampling time. To make sure no conversion is ongoing, the software is allowed to write this bit only when ADSTART = 0 and JADSTART = 0
Trait Implementations§
impl Copy for Smpr1
impl Eq for Smpr1
impl StructuralPartialEq for Smpr1
Auto Trait Implementations§
impl Freeze for Smpr1
impl RefUnwindSafe for Smpr1
impl Send for Smpr1
impl Sync for Smpr1
impl Unpin for Smpr1
impl UnwindSafe for Smpr1
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
)