Struct stm32_hal2::usb_otg::Usb1
source · pub struct Usb1 {
pub usb_global: OTG1_HS_GLOBAL,
pub usb_device: OTG1_HS_DEVICE,
pub usb_pwrclk: OTG1_HS_PWRCLK,
pub hclk: u32,
}Fields§
§usb_global: OTG1_HS_GLOBAL§usb_device: OTG1_HS_DEVICE§usb_pwrclk: OTG1_HS_PWRCLK§hclk: u32Implementations§
source§impl Usb1
impl Usb1
pub fn new( usb_global: OTG1_HS_GLOBAL, usb_device: OTG1_HS_DEVICE, usb_pwrclk: OTG1_HS_PWRCLK, hclk: u32 ) -> Self
Trait Implementations§
source§impl UsbPeripheral for Usb1
impl UsbPeripheral for Usb1
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