embassy-stm32

Crates

git

Versions

stm32l4p5re

Flavors

Skip to main content

DfsdmCommon

Struct DfsdmCommon 

Source
pub struct DfsdmCommon<'d, T: Instance, P: PowerState> { /* private fields */ }
Expand description

Holds references to the peripheral and the optional clock-output. Disables the RCC of the peripheral when dropped.

Implementations§

Source§

impl<'d, T> DfsdmCommon<'d, T, Disabled>
where T: Instance,

Source

pub fn enable(self) -> DfsdmCommon<'d, T, Enabled>

Enables the peripheral.

Source§

impl<'d, T> DfsdmCommon<'d, T, Enabled>
where T: Instance,

Source

pub fn disable(self) -> DfsdmCommon<'d, T, Disabled>

Disables the peripheral.

Setting DFEN=0 stops any conversion in progress and resets the status registers (ISR) and the analog-watchdog status register (AWSR). The data registers (RDATAR/JDATAR) are not documented to be cleared.

Trait Implementations§

Source§

impl<'d, T, P> Drop for DfsdmCommon<'d, T, P>
where T: Instance, P: PowerState,

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<'d, T, P> !Freeze for DfsdmCommon<'d, T, P>

§

impl<'d, T, P> !RefUnwindSafe for DfsdmCommon<'d, T, P>

§

impl<'d, T, P> !UnwindSafe for DfsdmCommon<'d, T, P>

§

impl<'d, T, P> Send for DfsdmCommon<'d, T, P>
where Peri<'d, T>: Send, PhantomData<P>: Send,

§

impl<'d, T, P> Sync for DfsdmCommon<'d, T, P>
where Peri<'d, T>: Sync, PhantomData<P>: Sync,

§

impl<'d, T, P> Unpin for DfsdmCommon<'d, T, P>
where Peri<'d, T>: Unpin, PhantomData<P>: Unpin,

§

impl<'d, T, P> UnsafeUnpin for DfsdmCommon<'d, T, P>

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> 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 = !

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.