stm32-metapac

Crates

git

Versions

stm32u535je

Flavors

Struct stm32_metapac::adc::regs::Smpr

#[repr(transparent)]
pub struct Smpr(pub u32);
Expand description

ADC sample time register.

Tuple Fields§

§0: u32

Implementations§

§

impl Smpr

pub const fn smp1(&self) -> u8

SMP1.

pub fn set_smp1(&mut self, val: u8)

SMP1.

pub const fn smp2(&self) -> u8

SMP2.

pub fn set_smp2(&mut self, val: u8)

SMP2.

pub const fn smpsel0(&self) -> bool

SMPSEL0.

pub fn set_smpsel0(&mut self, val: bool)

SMPSEL0.

pub const fn smpsel1(&self) -> bool

SMPSEL1.

pub fn set_smpsel1(&mut self, val: bool)

SMPSEL1.

pub const fn smpsel2(&self) -> bool

SMPSEL2.

pub fn set_smpsel2(&mut self, val: bool)

SMPSEL2.

pub const fn smpsel3(&self) -> bool

SMPSEL3.

pub fn set_smpsel3(&mut self, val: bool)

SMPSEL3.

pub const fn smpsel4(&self) -> bool

SMPSEL4.

pub fn set_smpsel4(&mut self, val: bool)

SMPSEL4.

pub const fn smpsel5(&self) -> bool

SMPSEL5.

pub fn set_smpsel5(&mut self, val: bool)

SMPSEL5.

pub const fn smpsel6(&self) -> bool

SMPSEL6.

pub fn set_smpsel6(&mut self, val: bool)

SMPSEL6.

pub const fn smpsel7(&self) -> bool

SMPSEL7.

pub fn set_smpsel7(&mut self, val: bool)

SMPSEL7.

pub const fn smpsel8(&self) -> bool

SMPSEL8.

pub fn set_smpsel8(&mut self, val: bool)

SMPSEL8.

pub const fn smpsel9(&self) -> bool

SMPSEL9.

pub fn set_smpsel9(&mut self, val: bool)

SMPSEL9.

pub const fn smpsel10(&self) -> bool

SMPSEL10.

pub fn set_smpsel10(&mut self, val: bool)

SMPSEL10.

pub const fn smpsel11(&self) -> bool

SMPSEL11.

pub fn set_smpsel11(&mut self, val: bool)

SMPSEL11.

pub const fn smpsel12(&self) -> bool

SMPSEL12.

pub fn set_smpsel12(&mut self, val: bool)

SMPSEL12.

pub const fn smpsel13(&self) -> bool

SMPSEL13.

pub fn set_smpsel13(&mut self, val: bool)

SMPSEL13.

pub const fn smpsel14(&self) -> bool

SMPSEL14.

pub fn set_smpsel14(&mut self, val: bool)

SMPSEL14.

pub const fn smpsel15(&self) -> bool

SMPSEL15.

pub fn set_smpsel15(&mut self, val: bool)

SMPSEL15.

pub const fn smpsel16(&self) -> bool

SMPSEL16.

pub fn set_smpsel16(&mut self, val: bool)

SMPSEL16.

pub const fn smpsel17(&self) -> bool

SMPSEL17.

pub fn set_smpsel17(&mut self, val: bool)

SMPSEL17.

pub const fn smpsel18(&self) -> bool

SMPSEL18.

pub fn set_smpsel18(&mut self, val: bool)

SMPSEL18.

pub const fn smpsel19(&self) -> bool

SMPSEL19.

pub fn set_smpsel19(&mut self, val: bool)

SMPSEL19.

pub const fn smpsel20(&self) -> bool

SMPSEL20.

pub fn set_smpsel20(&mut self, val: bool)

SMPSEL20.

pub const fn smpsel21(&self) -> bool

SMPSEL21.

pub fn set_smpsel21(&mut self, val: bool)

SMPSEL21.

pub const fn smpsel22(&self) -> bool

SMPSEL22.

pub fn set_smpsel22(&mut self, val: bool)

SMPSEL22.

pub const fn smpsel23(&self) -> bool

SMPSEL23.

pub fn set_smpsel23(&mut self, val: bool)

SMPSEL23.

Trait Implementations§

§

impl Clone for Smpr

§

fn clone(&self) -> Smpr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for Smpr

§

fn default() -> Smpr

Returns the “default value” for a type. Read more
§

impl PartialEq for Smpr

§

fn eq(&self, other: &Smpr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.