Struct stm32h7xx_hal::rcc::rec::Usb1Otg [−][src]
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]
fn get_kernel_clk_mux(&self) -> UsbClkSel
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,