Struct stm32h7xx_hal::rcc::rec::Adc3
source · pub struct Adc3 { /* private fields */ }
Expand description
Reset, Enable and Clock functionality for Adc3
§Reset/Enable Example
let ccdr = ...; // From RCC
// Enable the clock to the peripheral and reset it
ccdr.peripheral.ADC3.enable().reset();
§Group Kernel Clock
This peripheral has a kernel clock that is shared with other peripherals.
Since it is shared, it must be set using the kernel_adc_clk_mux method.
let mut ccdr = ...; // From RCC
// Set group kernel clock mux
ccdr.peripheral.kernel_adc_clk_mux(AdcClkSel::XX_clock_source_XX);
assert_eq!(ccdr.peripheral.ADC3.get_kernel_clk_mux(), AdcClkSel::XX_clock_source_XX);
Implementations§
Trait Implementations§
source§impl AdcClkSelGetter for Adc3
impl AdcClkSelGetter for Adc3
source§fn get_kernel_clk_mux(&self) -> Option<AdcClkSel>
fn get_kernel_clk_mux(&self) -> Option<AdcClkSel>
Return the
ADC
kernel clock selection
source§impl ResetEnable for Adc3
impl ResetEnable for Adc3
impl Send for Adc3
Auto Trait Implementations§
impl Freeze for Adc3
impl RefUnwindSafe for Adc3
impl !Sync for Adc3
impl Unpin for Adc3
impl UnwindSafe for Adc3
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