pub struct OtgInstance<'d> {
pub regs: Otg,
pub state: State<'d>,
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>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> Clone for OtgInstance<'d>
impl<'d> Clone for OtgInstance<'d>
Source§fn clone(&self) -> OtgInstance<'d>
fn clone(&self) -> OtgInstance<'d>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'d> Copy for OtgInstance<'d>
Auto Trait Implementations§
impl<'d> Freeze for OtgInstance<'d>
impl<'d> !RefUnwindSafe for OtgInstance<'d>
impl<'d> Send for OtgInstance<'d>
impl<'d> Sync for OtgInstance<'d>
impl<'d> Unpin for OtgInstance<'d>
impl<'d> !UnwindSafe for OtgInstance<'d>
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