Struct embassy_stm32::usb_otg::ControlPipe
source · pub struct ControlPipe<'d, T: Instance> { /* private fields */ }
Expand description
USB control pipe.
Trait Implementations§
source§impl<'d, T: Instance> ControlPipe for ControlPipe<'d, T>
impl<'d, T: Instance> ControlPipe for ControlPipe<'d, T>
source§fn max_packet_size(&self) -> usize
fn max_packet_size(&self) -> usize
Maximum packet size for the control pipe
source§async fn data_out(
&mut self,
buf: &mut [u8],
_first: bool,
_last: bool
) -> Result<usize, EndpointError>
async fn data_out( &mut self, buf: &mut [u8], _first: bool, _last: bool ) -> Result<usize, EndpointError>
Read a DATA OUT packet into
buf
in response to a control write request. Read moresource§async fn data_in(
&mut self,
data: &[u8],
_first: bool,
last: bool
) -> Result<(), EndpointError>
async fn data_in( &mut self, data: &[u8], _first: bool, last: bool ) -> Result<(), EndpointError>
Send a DATA IN packet with
data
in response to a control read request. Read moresource§async fn accept_set_address(&mut self, addr: u8)
async fn accept_set_address(&mut self, addr: u8)
Accept SET_ADDRESS control and change bus address. Read more
Auto Trait Implementations§
impl<'d, T> RefUnwindSafe for ControlPipe<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for ControlPipe<'d, T>where
T: Send,
impl<'d, T> Sync for ControlPipe<'d, T>where
T: Sync,
impl<'d, T> Unpin for ControlPipe<'d, T>
impl<'d, T> !UnwindSafe for ControlPipe<'d, T>
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