pub struct StateStorage<const EP_COUNT: usize, M = CriticalSectionRawMutex, D: DmaMode = Pio>where
M: SharedRawMutex,{ /* private fields */ }Expand description
Storage object for USB OTG driver state.
Implementations§
Source§impl<const EP_COUNT: usize, M, D> StateStorage<EP_COUNT, M, D>where
M: SharedRawMutex,
D: DmaMode,
impl<const EP_COUNT: usize, M, D> StateStorage<EP_COUNT, M, D>where
M: SharedRawMutex,
D: DmaMode,
Sourcepub fn as_state(&self) -> State<'_, M, D>
pub fn as_state(&self) -> State<'_, M, D>
Borrow this StateStorage as a State for OtgInstance and the Synopsys Driver.
Auto Trait Implementations§
impl<const EP_COUNT: usize, M = CriticalSectionRawMutex, D = Pio> !Freeze for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M = CriticalSectionRawMutex, D = Pio> !RefUnwindSafe for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> Forget for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> Move for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> Send for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> Sync for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> Unpin for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> UnsafeUnpin for StateStorage<EP_COUNT, M, D>
impl<const EP_COUNT: usize, M, D> UnwindSafe for StateStorage<EP_COUNT, M, 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