Skip to main content

EndpointOut

Type Alias EndpointOut 

Source
pub type EndpointOut<'a, B> = Endpoint<'a, B, Out>;
Expand description

A host-to-device (OUT) endpoint handle.

Aliased Type§

pub struct EndpointOut<'a, B> { /* private fields */ }

Implementations§

Source§

impl<B: UsbBus> EndpointOut<'_, B>

Source

pub fn read(&self, buf: &mut [u8]) -> UsbResult<usize>

Read a single packet from this endpoint into buf.

Returns the number of bytes read. Returns UsbError::WouldBlock when no packet is available.