pub struct OtgInstance<'d, const MAX_EP_COUNT: usize> {
pub regs: Otg,
pub state: &'d State<MAX_EP_COUNT>,
pub fifo_depth_words: u16,
pub endpoint_count: usize,
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: Otg
The USB peripheral.
state: &'d State<MAX_EP_COUNT>
The USB state.
fifo_depth_words: u16
FIFO depth in words.
endpoint_count: usize
Number of used endpoints.
phy_type: PhyType
The PHY type.
extra_rx_fifo_words: u16
Extra RX FIFO words needed by some implementations.
calculate_trdt_fn: fn(speed: Dspd) -> u8
Function to calculate TRDT value based on some internal clock speed.
Auto Trait Implementations§
impl<'d, const MAX_EP_COUNT: usize> Freeze for OtgInstance<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> !RefUnwindSafe for OtgInstance<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Send for OtgInstance<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Sync for OtgInstance<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> Unpin for OtgInstance<'d, MAX_EP_COUNT>
impl<'d, const MAX_EP_COUNT: usize> !UnwindSafe for OtgInstance<'d, MAX_EP_COUNT>
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