Struct stm32h7xx_hal::usb_hs::USB1_ULPI
source · pub struct USB1_ULPI {
pub usb_global: OTG1_HS_GLOBAL,
pub usb_device: OTG1_HS_DEVICE,
pub usb_pwrclk: OTG1_HS_PWRCLK,
pub prec: Usb1Otg,
pub hclk: Hertz,
}
Available on crate feature
usb_hs
only.Fields§
§usb_global: OTG1_HS_GLOBAL
§usb_device: OTG1_HS_DEVICE
§usb_pwrclk: OTG1_HS_PWRCLK
§prec: Usb1Otg
§hclk: Hertz
Implementations§
source§impl USB1_ULPI
impl USB1_ULPI
sourcepub fn new(
usb_global: OTG1_HS_GLOBAL,
usb_device: OTG1_HS_DEVICE,
usb_pwrclk: OTG1_HS_PWRCLK,
ulpi_clk: PA5<Alternate<10>>,
ulpi_dir: impl Into<Usb1UlpiDirPin>,
ulpi_nxt: impl Into<Usb1UlpiNxtPin>,
ulpi_stp: PC0<Alternate<10>>,
ulpi_d0: PA3<Alternate<10>>,
ulpi_d1: PB0<Alternate<10>>,
ulpi_d2: PB1<Alternate<10>>,
ulpi_d3: PB10<Alternate<10>>,
ulpi_d4: PB11<Alternate<10>>,
ulpi_d5: PB12<Alternate<10>>,
ulpi_d6: PB13<Alternate<10>>,
ulpi_d7: PB5<Alternate<10>>,
prec: Usb1Otg,
clocks: &CoreClocks
) -> Self
pub fn new( usb_global: OTG1_HS_GLOBAL, usb_device: OTG1_HS_DEVICE, usb_pwrclk: OTG1_HS_PWRCLK, ulpi_clk: PA5<Alternate<10>>, ulpi_dir: impl Into<Usb1UlpiDirPin>, ulpi_nxt: impl Into<Usb1UlpiNxtPin>, ulpi_stp: PC0<Alternate<10>>, ulpi_d0: PA3<Alternate<10>>, ulpi_d1: PB0<Alternate<10>>, ulpi_d2: PB1<Alternate<10>>, ulpi_d3: PB10<Alternate<10>>, ulpi_d4: PB11<Alternate<10>>, ulpi_d5: PB12<Alternate<10>>, ulpi_d6: PB13<Alternate<10>>, ulpi_d7: PB5<Alternate<10>>, prec: Usb1Otg, clocks: &CoreClocks ) -> Self
Automatically sets all upli pins to gpio speed VeryHigh. If you wish to use another configuration, please see new_unchecked.
pub fn new_unchecked( usb_global: OTG1_HS_GLOBAL, usb_device: OTG1_HS_DEVICE, usb_pwrclk: OTG1_HS_PWRCLK, prec: Usb1Otg, clocks: &CoreClocks ) -> Self
Trait Implementations§
source§impl UsbPeripheral for USB1_ULPI
impl UsbPeripheral for USB1_ULPI
source§const HIGH_SPEED: bool = true
const HIGH_SPEED: bool = true
true for High Speed variants of the peripheral, false for Full Speed
source§const FIFO_DEPTH_WORDS: usize = 1_024usize
const FIFO_DEPTH_WORDS: usize = 1_024usize
FIFO size in 32-bit words
source§const ENDPOINT_COUNT: usize = 9usize
const ENDPOINT_COUNT: usize = 9usize
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 USB1_ULPI
Auto Trait Implementations§
impl Freeze for USB1_ULPI
impl RefUnwindSafe for USB1_ULPI
impl Send for USB1_ULPI
impl Unpin for USB1_ULPI
impl UnwindSafe for USB1_ULPI
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