pub struct Endpoint<'d, D, M = CriticalSectionRawMutex, DMA: DmaMode = Pio>where
M: SharedRawMutex,{ /* private fields */ }Expand description
USB endpoint.
Trait Implementations§
Source§impl<'d, M, DMA> Endpoint for Endpoint<'d, In, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
impl<'d, M, DMA> Endpoint for Endpoint<'d, In, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
Source§fn info(&self) -> EndpointInfo
fn info(&self) -> EndpointInfo
Get the endpoint address and attributes.
Source§async fn wait_enabled(&mut self)
async fn wait_enabled(&mut self)
Wait for the endpoint to be enabled. Read more
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Get whether the endpoint is enabled.
Source§async fn set_stalled(&mut self, stalled: bool)
async fn set_stalled(&mut self, stalled: bool)
Set or clear the STALL handshake on this endpoint. Read more
Source§fn is_stalled(&self) -> bool
fn is_stalled(&self) -> bool
Get whether the STALL handshake is set on this endpoint. Read more
Source§impl<'d, M, DMA> Endpoint for Endpoint<'d, Out, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
impl<'d, M, DMA> Endpoint for Endpoint<'d, Out, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
Source§fn info(&self) -> EndpointInfo
fn info(&self) -> EndpointInfo
Get the endpoint address and attributes.
Source§async fn wait_enabled(&mut self)
async fn wait_enabled(&mut self)
Wait for the endpoint to be enabled. Read more
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Get whether the endpoint is enabled.
Source§async fn set_stalled(&mut self, stalled: bool)
async fn set_stalled(&mut self, stalled: bool)
Set or clear the STALL handshake on this endpoint. Read more
Source§fn is_stalled(&self) -> bool
fn is_stalled(&self) -> bool
Get whether the STALL handshake is set on this endpoint. Read more
Source§impl<'d, M, DMA> EndpointIn for Endpoint<'d, In, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
impl<'d, M, DMA> EndpointIn for Endpoint<'d, In, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
Source§async fn write_transfer(
&mut self,
buf: &[u8],
needs_zlp: bool,
) -> Result<(), EndpointError>
async fn write_transfer( &mut self, buf: &[u8], needs_zlp: bool, ) -> Result<(), EndpointError>
Write all the data from
buf to the endpoint as a transfer. Read moreSource§impl<'d, M, DMA> EndpointOut for Endpoint<'d, Out, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
impl<'d, M, DMA> EndpointOut for Endpoint<'d, Out, M, DMA>where
M: SharedRawMutex,
DMA: DmaMode,
Source§async fn read_transfer(
&mut self,
buf: &mut [u8],
) -> Result<usize, EndpointError>
async fn read_transfer( &mut self, buf: &mut [u8], ) -> Result<usize, EndpointError>
Read a transfer from the host into
buf, returning the number of bytes received. Read moreAuto Trait Implementations§
impl<'d, D, M = CriticalSectionRawMutex, DMA = Pio> !RefUnwindSafe for Endpoint<'d, D, M, DMA>
impl<'d, D, M = CriticalSectionRawMutex, DMA = Pio> !UnwindSafe for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> Forget for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> Freeze for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> Move for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> Send for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> Sync for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> Unpin for Endpoint<'d, D, M, DMA>
impl<'d, D, M, DMA> UnsafeUnpin for Endpoint<'d, D, M, DMA>
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