stm32-metapac

Crates

git

Versions

stm32wb09ke

Flavors

Seq2

Struct Seq2 

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

SEQ_2 register.

Tuple Fields§

§0: u32

Implementations§

§

impl Seq2

pub const fn seq8(&self) -> u8

SEQ8[3:0]: channel number code for 9th conversion of the sequence 0000: VINM[0] to ADC single negative input 0001: VINM[1] to ADC single negative input 0010: VINM[2] to ADC single negative input 0011: VINM[3] to ADC single negative input 0100: VINP[0] to ADC single positive input 0101: VINP[1] to ADC single positive input 0110: VINP[2] to ADC single positive input 0111: VINP[3] to ADC single positive input 1000: VINP[0]-VINM[0] to ADC differential input 1001: VINP[1]-VINM[1] to ADC differential input 1010: VINP[2]-VINM[2] to ADC differential input 1011: VINP[3]-VINM[3] to ADC differential input 1100: VBAT - Battery level detector 1101: Temperature sensor 111x: reserved.

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

SEQ8[3:0]: channel number code for 9th conversion of the sequence 0000: VINM[0] to ADC single negative input 0001: VINM[1] to ADC single negative input 0010: VINM[2] to ADC single negative input 0011: VINM[3] to ADC single negative input 0100: VINP[0] to ADC single positive input 0101: VINP[1] to ADC single positive input 0110: VINP[2] to ADC single positive input 0111: VINP[3] to ADC single positive input 1000: VINP[0]-VINM[0] to ADC differential input 1001: VINP[1]-VINM[1] to ADC differential input 1010: VINP[2]-VINM[2] to ADC differential input 1011: VINP[3]-VINM[3] to ADC differential input 1100: VBAT - Battery level detector 1101: Temperature sensor 111x: reserved.

pub const fn seq9(&self) -> u8

SEQ9[3:0]: channel number code for 10th conversion of the sequence. See SEQ0 for code detail.

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

SEQ9[3:0]: channel number code for 10th conversion of the sequence. See SEQ0 for code detail.

pub const fn seq10(&self) -> u8

SEQ10[3:0]: channel number code for 11th conversion of the sequence. See SEQ0 for code detail.

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

SEQ10[3:0]: channel number code for 11th conversion of the sequence. See SEQ0 for code detail.

pub const fn seq11(&self) -> u8

SEQ11[3:0]: channel number code for 12th conversion of the sequence. See SEQ0 for code detail.

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

SEQ11[3:0]: channel number code for 12th conversion of the sequence. See SEQ0 for code detail.

pub const fn seq12(&self) -> u8

SEQ12[3:0]: channel number code for 13th conversion of the sequence. See SEQ0 for code detail.

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

SEQ12[3:0]: channel number code for 13th conversion of the sequence. See SEQ0 for code detail.

pub const fn seq13(&self) -> u8

SEQ13[3:0]: channel number code for 14th conversion of the sequence. See SEQ0 for code detail.

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

SEQ13[3:0]: channel number code for 14th conversion of the sequence. See SEQ0 for code detail.

pub const fn seq14(&self) -> u8

SEQ14[3:0]: channel number code for 15th conversion of the sequence. See SEQ0 for code detail.

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

SEQ14[3:0]: channel number code for 15th conversion of the sequence. See SEQ0 for code detail.

pub const fn seq15(&self) -> u8

SEQ15[3:0]: channel number code for 16th conversion of the sequence. See SEQ0 for code detail.

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

SEQ15[3:0]: channel number code for 16th conversion of the sequence. See SEQ0 for code detail.

Trait Implementations§

§

impl Clone for Seq2

§

fn clone(&self) -> Seq2

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for Seq2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for Seq2

§

fn default() -> Seq2

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

impl PartialEq for Seq2

§

fn eq(&self, other: &Seq2) -> 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 Seq2

§

impl Eq for Seq2

§

impl StructuralPartialEq for Seq2

Auto Trait Implementations§

§

impl Freeze for Seq2

§

impl RefUnwindSafe for Seq2

§

impl Send for Seq2

§

impl Sync for Seq2

§

impl Unpin for Seq2

§

impl UnwindSafe for Seq2

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.