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,
impl<'d, T> DfsdmCommon<'d, T, Disabled>where
T: Instance,
Sourcepub fn enable(self) -> DfsdmCommon<'d, T, Enabled>
pub fn enable(self) -> DfsdmCommon<'d, T, Enabled>
Enables the peripheral.
Source§impl<'d, T> DfsdmCommon<'d, T, Enabled>where
T: Instance,
impl<'d, T> DfsdmCommon<'d, T, Enabled>where
T: Instance,
Sourcepub fn disable(self) -> DfsdmCommon<'d, T, Disabled>
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,
impl<'d, T, P> Drop for DfsdmCommon<'d, T, P>where
T: Instance,
P: PowerState,
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>
impl<'d, T, P> Sync for DfsdmCommon<'d, T, P>
impl<'d, T, P> Unpin for DfsdmCommon<'d, T, P>
impl<'d, T, P> UnsafeUnpin for DfsdmCommon<'d, T, P>
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