pub struct ControlPipe<'d, T: Instance, const SIZE: usize> { /* private fields */ }Trait Implementations§
Source§impl<'d, T: Instance, const SIZE: usize> ControlPipe for ControlPipe<'d, T, SIZE>
impl<'d, T: Instance, const SIZE: usize> ControlPipe for ControlPipe<'d, T, SIZE>
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
§async fn data_out_transfer(
&mut self,
buf: &mut [u8],
) -> Result<usize, EndpointError>
async fn data_out_transfer( &mut self, buf: &mut [u8], ) -> Result<usize, EndpointError>
Read a DATA OUT packet into
buf in response to a control write request. Read more§async fn data_in_transfer(
&mut self,
data: &[u8],
needs_zlp: bool,
) -> Result<(), EndpointError>
async fn data_in_transfer( &mut self, data: &[u8], needs_zlp: bool, ) -> Result<(), EndpointError>
Send a number of DATA IN packets with
data in response to a control read request.