pub struct Usb<'d> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
USB peripheral.
Implementations§
Source§impl<'d> Usb<'d>
impl<'d> Usb<'d>
Sourcepub fn new(
usb0: impl Peripheral<P = USB0> + 'd,
_usb_dp: impl Peripheral<P = impl UsbDp> + 'd,
_usb_dm: impl Peripheral<P = impl UsbDm> + 'd,
) -> Self
pub fn new( usb0: impl Peripheral<P = USB0> + 'd, _usb_dp: impl Peripheral<P = impl UsbDp> + 'd, _usb_dm: impl Peripheral<P = impl UsbDm> + 'd, ) -> Self
Creates a new Usb
instance.
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 = 256usize
const FIFO_DEPTH_WORDS: usize = 256usize
FIFO size in 32-bit words
Source§const ENDPOINT_COUNT: usize = 5usize
const ENDPOINT_COUNT: usize = 5usize
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