[][src]Trait stm32f0xx_hal::prelude::_embedded_hal_serial_Write

pub trait _embedded_hal_serial_Write<Word> {
    type Error;
    fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>;
fn flush(&mut self) -> Result<(), Error<Self::Error>>; }

Write half of a serial interface

Associated Types

type Error

Write error

Loading content...

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

Loading content...

Trait Implementations

impl<Word, Error> Write for dyn Write<Word, Error = Error> + 'static where
    Word: From<u8>, 
[src]

Implementors

impl<USART> Write<u8> for Tx<USART> where
    USART: Deref<Target = RegisterBlock>, 
[src]

type Error = Infallible

fn flush(&mut self) -> Result<(), Self::Error>[src]

Ensures that none of the previously written words are still buffered

fn write(&mut self, byte: u8) -> Result<(), Self::Error>[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
    USART: Deref<Target = RegisterBlock>,
    TXPIN: TxPin<USART>, 
[src]

type Error = Infallible

fn flush(&mut self) -> Result<(), Self::Error>[src]

Ensures that none of the previously written words are still buffered

fn write(&mut self, byte: u8) -> Result<(), Self::Error>[src]

Tries to write a byte to the uart Fails if the transmit buffer is full

Loading content...