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

pub struct Usb1Otg { /* fields omitted */ }

Reset, Enable and Clock functionality for Usb1Otg

Reset/Enable Example

let ccdr = ...; // From RCC

// Enable the clock to the peripheral and reset it
ccdr.peripheral.USB1OTG.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_usb_clk_mux method.

let mut ccdr = ...; // From RCC

// Set group kernel clock mux
ccdr.peripheral.kernel_usb_clk_mux(UsbClkSel::XX_clock_source_XX);

assert_eq!(ccdr.peripheral.USB1OTG.get_kernel_clk_mux(), UsbClkSel::XX_clock_source_XX);

Implementations

impl Usb1Otg[src]

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

Set Low Power Mode for peripheral

Trait Implementations

impl ResetEnable for Usb1Otg[src]

impl Send for Usb1Otg[src]

impl UsbClkSelGetter for Usb1Otg[src]

Auto Trait Implementations

impl !Sync for Usb1Otg

impl Unpin for Usb1Otg

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.