[−][src]Trait nucleo_f042k6::_embedded_hal_serial_Read
Read half of a serial interface
Some serial interfaces support different data sizes (8 bits, 9 bits, etc.);
This can be encoded in this trait via the Word
type parameter.
Associated Types
type Error
Read error
Required methods
Loading content...Implementors
impl<USART> Read<u8> for Rx<USART> where
USART: Deref<Target = RegisterBlock>,
[src]
USART: Deref<Target = RegisterBlock>,
type Error = Error
fn read(&mut self) -> Result<u8, Error<Error>>
[src]
Tries to read a byte from the uart
impl<USART, TXPIN, RXPIN> Read<u8> for Serial<USART, TXPIN, RXPIN> where
RXPIN: RxPin<USART>,
USART: Deref<Target = RegisterBlock>,
[src]
RXPIN: RxPin<USART>,
USART: Deref<Target = RegisterBlock>,