[−][src]Trait lpc55_hal::prelude::_embedded_hal_serial_Write
Write half of a serial interface
Associated Types
type Error
Write error
Required methods
fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>
Writes a single word to the serial interface
fn flush(&mut self) -> Result<(), Error<Self::Error>>
Ensures that none of the previously written words are still buffered
Trait Implementations
Implementations on Foreign Types
impl<'_, B, RS, WS> Write<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 write(
&mut self,
word: u8
) -> Result<(), Error<<SerialPort<'_, B, RS, WS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<SerialPort<'_, B, RS, WS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<SerialPort<'_, B, RS, WS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<SerialPort<'_, B, RS, WS> as Write<u8>>::Error>>
Implementors
impl<TX, RX, USART, PINS> Write<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>,