Skip to main content

EndpointIn

Type Alias EndpointIn 

Source
pub type EndpointIn<'a, B> = Endpoint<'a, B, In>;
Expand description

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

Aliased Type§

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

Implementations§

Source§

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

Source

pub fn write(&self, data: &[u8]) -> UsbResult<usize>

Write a single packet to this endpoint.

Returns the number of bytes actually written. If the USB peripheral’s transmit buffer is still occupied, returns UsbError::WouldBlock.