Struct stm32_metapac::adc::regs::Smpr0
#[repr(transparent)]pub struct Smpr0(pub u32);
Expand description
sample time register 0
Tuple Fields§
§0: u32
Implementations§
§impl Smpr0
impl Smpr0
pub const fn smp(&self, n: usize) -> SampleTime
pub const fn smp(&self, n: usize) -> SampleTime
channel 30-31 sampling time selection
pub fn set_smp(&mut self, n: usize, val: SampleTime)
pub fn set_smp(&mut self, n: usize, val: SampleTime)
channel 30-31 sampling time selection
Trait Implementations§
impl Copy for Smpr0
impl Eq for Smpr0
impl StructuralEq for Smpr0
impl StructuralPartialEq for Smpr0
Auto Trait Implementations§
impl RefUnwindSafe for Smpr0
impl Send for Smpr0
impl Sync for Smpr0
impl Unpin for Smpr0
impl UnwindSafe for Smpr0
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