pub struct OtgInstance<'d, M = CriticalSectionRawMutex>{
pub regs: Otg,
pub state: State<'d, M>,
pub fifo_depth_words: u16,
pub phy_type: PhyType,
pub extra_rx_fifo_words: u16,
pub calculate_trdt_fn: fn(speed: Dspd) -> u8,
}Expand description
Hardware-dependent USB IP configuration.
Fields§
§regs: OtgThe USB peripheral.
state: State<'d, M>Shared driver/interrupt state from [State::as_state].
fifo_depth_words: u16FIFO depth in words.
phy_type: PhyTypeThe PHY type.
extra_rx_fifo_words: u16Extra RX FIFO words needed by some implementations.
calculate_trdt_fn: fn(speed: Dspd) -> u8Function to calculate TRDT value based on some internal clock speed.
Trait Implementations§
Source§impl<'d, M> Clone for OtgInstance<'d, M>
impl<'d, M> Clone for OtgInstance<'d, M>
Source§fn clone(&self) -> OtgInstance<'d, M>
fn clone(&self) -> OtgInstance<'d, M>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'d, M> Copy for OtgInstance<'d, M>
Auto Trait Implementations§
impl<'d, M = CriticalSectionRawMutex> !RefUnwindSafe for OtgInstance<'d, M>
impl<'d, M = CriticalSectionRawMutex> !UnwindSafe for OtgInstance<'d, M>
impl<'d, M> Freeze for OtgInstance<'d, M>where
M: Freeze,
impl<'d, M> Send for OtgInstance<'d, M>where
M: Send,
impl<'d, M> Sync for OtgInstance<'d, M>where
M: Sync,
impl<'d, M> Unpin for OtgInstance<'d, M>where
M: Unpin,
impl<'d, M> UnsafeUnpin for OtgInstance<'d, M>where
M: UnsafeUnpin,
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