stm32-metapac

Crates

git

Versions

stm32wb06cc

Flavors

Adc

Struct Adc 

pub struct Adc { /* private fields */ }
Expand description

ADC address block description.

Implementations§

§

impl Adc

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

pub const fn as_ptr(&self) -> *mut ()

pub const fn version_id(self) -> Reg<VersionId, R>

VERSION_ID register.

pub const fn conf(self) -> Reg<Conf, RW>

CONF register.

pub const fn ctrl(self) -> Reg<Ctrl, RW>

CTRL register.

pub const fn ocm_ctrl(self) -> Reg<OcmCtrl, RW>

Occasionnal mode control register.

pub const fn pga_conf(self) -> Reg<PgaConf, RW>

PGA configuration register.

pub const fn switch(self) -> Reg<Switch, RW>

SWITCH register.

pub const fn df_conf(self) -> Reg<DfConf, RW>

Decimation filter configuration register.

pub const fn ds_conf(self) -> Reg<DsConf, RW>

DS_CONF register.

pub const fn seq_1(self) -> Reg<Seq1, RW>

SEQ_1 register.

pub const fn seq_2(self) -> Reg<Seq2, RW>

SEQ_2 register.

pub const fn comp_1(self) -> Reg<Comp1, RW>

COMP_1 register.

pub const fn comp_2(self) -> Reg<Comp2, RW>

COMP_2 register.

pub const fn comp_3(self) -> Reg<Comp3, RW>

COMP_3 register.

pub const fn comp_4(self) -> Reg<Comp4, RW>

COMP_4 register.

pub const fn comp_sel(self) -> Reg<CompSel, RW>

COMP_SEL register.

pub const fn wd_th(self) -> Reg<WdTh, RW>

WD_TH register.

pub const fn wd_conf(self) -> Reg<WdConf, RW>

WD_CONF register.

pub const fn ds_dataout(self) -> Reg<DsDataout, R>

DS_DATAOUT register.

pub const fn df_dataout(self) -> Reg<DfDataout, R>

Decimation filter Data output register.

pub const fn irq_status(self) -> Reg<IrqStatus, RW>

IRQ_STATUS register.

pub const fn irq_enable(self) -> Reg<IrqEnable, RW>

IRQ_ENABLE register.

pub const fn timer_conf(self) -> Reg<TimerConf, RW>

Time to add after an LDO Enable or ADC Enable to let the HW to be stable before using it.

Trait Implementations§

§

impl Clone for Adc

§

fn clone(&self) -> Adc

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 PartialEq for Adc

§

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

§

impl Eq for Adc

§

impl Send for Adc

§

impl StructuralPartialEq for Adc

§

impl Sync for Adc

Auto Trait Implementations§

§

impl Freeze for Adc

§

impl RefUnwindSafe for Adc

§

impl Unpin for Adc

§

impl UnwindSafe for Adc

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.