pub struct Serial<TX, RX, USART, PINS> where
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>, { /* fields omitted */ }
Expand description
USART peripheral operating as serial
impl<TX, RX, USART, PINS> Serial<TX, RX, USART, PINS> where
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
[src]
impl<TX, RX, USART, PINS> Read<u8> for Serial<TX, RX, USART, PINS> where
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
[src]
Reads a single word from the serial interface
impl<TX, RX, USART, PINS> Write<u8> for Serial<TX, RX, USART, PINS> where
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
[src]
Ensures that none of the previously written words are still buffered
Writes a single word to the serial interface
impl<TX, RX, USART, PINS> Send for Serial<TX, RX, USART, PINS> where
PINS: Send,
RX: Send,
TX: Send,
USART: Send,
impl<TX, RX, USART, PINS> Sync for Serial<TX, RX, USART, PINS> where
PINS: Sync,
RX: Sync,
TX: Sync,
USART: Sync,
impl<TX, RX, USART, PINS> Unpin for Serial<TX, RX, USART, PINS> where
PINS: Unpin,
RX: Unpin,
TX: Unpin,
USART: Unpin,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.