[−][src]Trait lpc55_hal::prelude::_embedded_hal_serial_Read
Read half of a serial interface
Some serial interfaces support different data sizes (8 bits, 9 bits, etc.);
This can be encoded in this trait via the Word
type parameter.
Associated Types
type Error
Read error
Required methods
Loading content...Implementations on Foreign Types
impl<'_, B, RS, WS> Read<u8> for SerialPort<'_, B, RS, WS> where
B: UsbBus,
RS: BorrowMut<[u8]>,
WS: BorrowMut<[u8]>,
[src]
B: UsbBus,
RS: BorrowMut<[u8]>,
WS: BorrowMut<[u8]>,
type Error = UsbError
fn read(
&mut self
) -> Result<u8, Error<<SerialPort<'_, B, RS, WS> as Read<u8>>::Error>>
[src]
&mut self
) -> Result<u8, Error<<SerialPort<'_, B, RS, WS> as Read<u8>>::Error>>
Implementors
impl<TX, RX, USART, PINS> Read<u8> for Serial<TX, RX, USART, PINS> where
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
[src]
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,