Struct stm32h7xx_hal::rcc::rec::Dfsdm1
source · pub struct Dfsdm1 { /* private fields */ }
Expand description
Reset, Enable and Clock functionality for Dfsdm1
§Reset/Enable Example
let ccdr = ...; // From RCC
// Enable the clock to the peripheral and reset it
ccdr.peripheral.DFSDM1.enable().reset();
§Individual Kernel Clock
This peripheral has its own dedicated kernel clock. See Dfsdm1ClkSel for possible clock sources.
let ccdr = ...; // From RCC
// Set individual kernel clock
let dfsdm1_prec = ccdr.peripheral.DFSDM1.kernel_clk_mux(Dfsdm1ClkSel::XX_clock_soruce_XX);
assert_eq!(dfsdm1_prec.get_kernel_clk_mux(), Dfsdm1ClkSel::XX_clock_source_XX);
Implementations§
source§impl Dfsdm1
impl Dfsdm1
sourcepub fn low_power(self, lpm: LowPowerMode) -> Self
pub fn low_power(self, lpm: LowPowerMode) -> Self
Set Low Power Mode for peripheral
source§impl Dfsdm1
impl Dfsdm1
sourcepub fn kernel_clk_mux(self, sel: Dfsdm1ClkSel) -> Self
pub fn kernel_clk_mux(self, sel: Dfsdm1ClkSel) -> Self
Modify the kernel clock for DFSDM1. See RM0433 Rev 7 Section 8.5.8.
It is possible to switch this clock dynamically without generating spurs or timing violations. However, the user must ensure that both clocks are running. See RM0433 Rev 7 Section 8.5.10.
sourcepub fn get_kernel_clk_mux(&self) -> Dfsdm1ClkSel
pub fn get_kernel_clk_mux(&self) -> Dfsdm1ClkSel
Return the current kernel clock selection
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dfsdm1
impl RefUnwindSafe for Dfsdm1
impl !Sync for Dfsdm1
impl Unpin for Dfsdm1
impl UnwindSafe for Dfsdm1
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