[−][src]Trait nucleo_f042k6::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
Implementors
impl<USART> Write<u8> for Tx<USART> where
USART: Deref<Target = RegisterBlock>,
[src]
impl<USART> Write<u8> for Tx<USART> where
USART: Deref<Target = RegisterBlock>,
type Error = Void
fn flush(&mut self) -> Result<(), Error<<Tx<USART> as Write<u8>>::Error>> | [src] |
Ensures that none of the previously written words are still buffered
fn write( | [src] |
Tries to write a byte to the uart Fails if the transmit buffer is full
impl<USART, TXPIN, RXPIN> Write<u8> for Serial<USART, TXPIN, RXPIN> where
TXPIN: TxPin<USART>,
USART: Deref<Target = RegisterBlock>,
[src]
impl<USART, TXPIN, RXPIN> Write<u8> for Serial<USART, TXPIN, RXPIN> where
TXPIN: TxPin<USART>,
USART: Deref<Target = RegisterBlock>,
type Error = Void
fn flush( | [src] |
Ensures that none of the previously written words are still buffered
fn write( | [src] |
Tries to write a byte to the uart Fails if the transmit buffer is full