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 x sample time selection
pub fn set_smp(&mut self, n: usize, val: SampleTime)
pub fn set_smp(&mut self, n: usize, val: SampleTime)
Channel x sample time selection
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
Mutably borrows from an owned value. Read more