[][src]Trait trellis_m4::prelude::_embedded_hal_serial_Write

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

Write half of a serial interface

Associated Types

type Error[src]

Write error

Loading content...

Required methods

pub fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>[src]

Writes a single word to the serial interface

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

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<RX, TX, RTS, CTS> Write<u8> for UART0<RX, TX, RTS, CTS>[src]

type Error = ()

impl<RX, TX, RTS, CTS> Write<u8> for UART1<RX, TX, RTS, CTS>[src]

type Error = ()

impl<RX, TX, RTS, CTS> Write<u8> for UART2<RX, TX, RTS, CTS>[src]

type Error = ()

impl<RX, TX, RTS, CTS> Write<u8> for UART3<RX, TX, RTS, CTS>[src]

type Error = ()

impl<RX, TX, RTS, CTS> Write<u8> for UART4<RX, TX, RTS, CTS>[src]

type Error = ()

impl<RX, TX, RTS, CTS> Write<u8> for UART5<RX, TX, RTS, CTS>[src]

type Error = ()

Loading content...