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