Struct stm32_metapac::adc::regs::Smpr2
#[repr(transparent)]pub struct Smpr2(pub u32);
Expand description
sample time register 2
Tuple Fields§
§0: u32
Implementations§
§impl Smpr2
impl Smpr2
pub const fn smp0(&self) -> SampleTime
pub const fn smp0(&self) -> SampleTime
channel 0 sampling time selection
pub fn set_smp0(&mut self, val: SampleTime)
pub fn set_smp0(&mut self, val: SampleTime)
channel 0 sampling time selection
pub const fn smp1(&self) -> SampleTime
pub const fn smp1(&self) -> SampleTime
channel 1 sampling time selection
pub fn set_smp1(&mut self, val: SampleTime)
pub fn set_smp1(&mut self, val: SampleTime)
channel 1 sampling time selection
pub const fn smp2(&self) -> SampleTime
pub const fn smp2(&self) -> SampleTime
channel 2 sampling time selection
pub fn set_smp2(&mut self, val: SampleTime)
pub fn set_smp2(&mut self, val: SampleTime)
channel 2 sampling time selection
pub const fn smp3(&self) -> SampleTime
pub const fn smp3(&self) -> SampleTime
channel 3 sampling time selection
pub fn set_smp3(&mut self, val: SampleTime)
pub fn set_smp3(&mut self, val: SampleTime)
channel 3 sampling time selection
pub const fn smp4(&self) -> SampleTime
pub const fn smp4(&self) -> SampleTime
channel 4 sampling time selection
pub fn set_smp4(&mut self, val: SampleTime)
pub fn set_smp4(&mut self, val: SampleTime)
channel 4 sampling time selection
pub const fn smp5(&self) -> SampleTime
pub const fn smp5(&self) -> SampleTime
channel 5 sampling time selection
pub fn set_smp5(&mut self, val: SampleTime)
pub fn set_smp5(&mut self, val: SampleTime)
channel 5 sampling time selection
pub const fn smp6(&self) -> SampleTime
pub const fn smp6(&self) -> SampleTime
channel 6 sampling time selection
pub fn set_smp6(&mut self, val: SampleTime)
pub fn set_smp6(&mut self, val: SampleTime)
channel 6 sampling time selection
pub const fn smp7(&self) -> SampleTime
pub const fn smp7(&self) -> SampleTime
channel 7 sampling time selection
pub fn set_smp7(&mut self, val: SampleTime)
pub fn set_smp7(&mut self, val: SampleTime)
channel 7 sampling time selection
pub const fn smp8(&self) -> SampleTime
pub const fn smp8(&self) -> SampleTime
channel 8 sampling time selection
pub fn set_smp8(&mut self, val: SampleTime)
pub fn set_smp8(&mut self, val: SampleTime)
channel 8 sampling time selection
pub const fn smp9(&self) -> SampleTime
pub const fn smp9(&self) -> SampleTime
channel 9 sampling time selection
pub fn set_smp9(&mut self, val: SampleTime)
pub fn set_smp9(&mut self, val: SampleTime)
channel 9 sampling time selection
Trait Implementations§
impl Copy for Smpr2
impl Eq for Smpr2
impl StructuralPartialEq for Smpr2
Auto Trait Implementations§
impl Freeze for Smpr2
impl RefUnwindSafe for Smpr2
impl Send for Smpr2
impl Sync for Smpr2
impl Unpin for Smpr2
impl UnwindSafe for Smpr2
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
)