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