Struct esp32s3_hal::otg_fs::USB
source · pub struct USB<'d, S, P, M>where
S: UsbSel + Send + Sync,
P: UsbDp + Send + Sync,
M: UsbDm + Send + Sync,{ /* private fields */ }
Implementations§
source§impl<'d, S, P, M> USB<'d, S, P, M>where
S: UsbSel + Send + Sync,
P: UsbDp + Send + Sync,
M: UsbDm + Send + Sync,
impl<'d, S, P, M> USB<'d, S, P, M>where S: UsbSel + Send + Sync, P: UsbDp + Send + Sync, M: UsbDm + Send + Sync,
pub fn new( usb0: impl Peripheral<P = USB0> + 'd, usb_sel: impl Peripheral<P = S> + 'd, usb_dp: impl Peripheral<P = P> + 'd, usb_dm: impl Peripheral<P = M> + 'd, peripheral_clock_control: &mut PeripheralClockControl ) -> USB<'d, S, P, M>
Trait Implementations§
source§impl<'d, S, P, M> UsbPeripheral for USB<'d, S, P, M>where
S: UsbSel + Send + Sync,
P: UsbDp + Send + Sync,
M: UsbDm + Send + Sync,
impl<'d, S, P, M> UsbPeripheral for USB<'d, S, P, M>where S: UsbSel + Send + Sync, P: UsbDp + Send + Sync, M: UsbDm + Send + Sync,
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
§fn setup_internal_hs_phy(&self)
fn setup_internal_hs_phy(&self)
Performs initial setup of the internal high-speed PHY Read more
impl<'d, S, P, M> Sync for USB<'d, S, P, M>where S: UsbSel + Send + Sync, P: UsbDp + Send + Sync, M: UsbDm + Send + Sync,
Auto Trait Implementations§
impl<'d, S, P, M> RefUnwindSafe for USB<'d, S, P, M>where M: RefUnwindSafe, P: RefUnwindSafe, S: RefUnwindSafe,
impl<'d, S, P, M> Send for USB<'d, S, P, M>
impl<'d, S, P, M> Unpin for USB<'d, S, P, M>where M: Unpin, P: Unpin, S: Unpin,
impl<'d, S, P, M> !UnwindSafe for USB<'d, S, P, M>
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