Struct stm32h7xx_hal::rcc::rec::Usart2[][src]

pub struct Usart2 { /* fields omitted */ }

Reset, Enable and Clock functionality for Usart2

Reset/Enable Example

let ccdr = ...; // From RCC

// Enable the clock to the peripheral and reset it
ccdr.peripheral.USART2.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.USART2.get_kernel_clk_mux(), Usart234578ClkSel::XX_clock_source_XX);

Implementations

impl Usart2[src]

pub fn low_power(self, lpm: LowPowerMode) -> Self[src]

Set Low Power Mode for peripheral

Trait Implementations

impl ResetEnable for Usart2[src]

impl Send for Usart2[src]

impl Usart234578ClkSelGetter for Usart2[src]

Auto Trait Implementations

impl !Sync for Usart2

impl Unpin for Usart2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.