Struct stm32h7xx_hal::rcc::rec::Usart6
source · pub struct Usart6 { /* private fields */ }
Expand description
Reset, Enable and Clock functionality for Usart6
§Reset/Enable Example
let ccdr = ...; // From RCC
// Enable the clock to the peripheral and reset it
ccdr.peripheral.USART6.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_usart16_clk_mux method.
let mut ccdr = ...; // From RCC
// Set group kernel clock mux
ccdr.peripheral.kernel_usart16_clk_mux(Usart16ClkSel::XX_clock_source_XX);
assert_eq!(ccdr.peripheral.USART6.get_kernel_clk_mux(), Usart16ClkSel::XX_clock_source_XX);
Implementations§
Trait Implementations§
source§impl ResetEnable for Usart6
impl ResetEnable for Usart6
source§impl Usart16ClkSelGetter for Usart6
impl Usart16ClkSelGetter for Usart6
source§fn get_kernel_clk_mux(&self) -> Option<Usart16ClkSel>
fn get_kernel_clk_mux(&self) -> Option<Usart16ClkSel>
Return the
USART1/6
kernel clock selection
impl Send for Usart6
Auto Trait Implementations§
impl Freeze for Usart6
impl RefUnwindSafe for Usart6
impl !Sync for Usart6
impl Unpin for Usart6
impl UnwindSafe for Usart6
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