Struct stm32f4xx_hal::otg_fs::USB
source · pub struct USB {
pub usb_global: OTG_FS_GLOBAL,
pub usb_device: OTG_FS_DEVICE,
pub usb_pwrclk: OTG_FS_PWRCLK,
pub pin_dm: Dm,
pub pin_dp: Dp,
pub hclk: HertzU32,
}
Fields§
§usb_global: OTG_FS_GLOBAL
§usb_device: OTG_FS_DEVICE
§usb_pwrclk: OTG_FS_PWRCLK
§pin_dm: Dm
§pin_dp: Dp
§hclk: HertzU32
Implementations§
source§impl USB
impl USB
pub fn new( periphs: (OTG_FS_GLOBAL, OTG_FS_DEVICE, OTG_FS_PWRCLK), pins: (impl Into<Dm>, impl Into<Dp>), clocks: &Clocks ) -> Self
Trait Implementations§
source§impl UsbPeripheral for USB
impl UsbPeripheral for USB
source§const HIGH_SPEED: bool = false
const HIGH_SPEED: bool = false
true for High Speed variants of the peripheral, false for Full Speed
source§const FIFO_DEPTH_WORDS: usize = 320usize
const FIFO_DEPTH_WORDS: usize = 320usize
FIFO size in 32-bit words
source§const ENDPOINT_COUNT: usize = 4usize
const ENDPOINT_COUNT: usize = 4usize
Number of (bidirectional) endpoints
source§fn ahb_frequency_hz(&self) -> u32
fn ahb_frequency_hz(&self) -> u32
AHB frequency in hertz
source§fn setup_internal_hs_phy(&self)
fn setup_internal_hs_phy(&self)
Performs initial setup of the internal high-speed PHY Read more
impl Sync for USB
Auto Trait Implementations§
impl Freeze for USB
impl RefUnwindSafe for USB
impl Send for USB
impl Unpin for USB
impl UnwindSafe for USB
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