Struct f3::serial::Serial [] [src]

pub struct Serial<'a>(pub &'a Usart1);

Serial interface

Interrupts

  • Usart1Exti25 - RXNE (RX buffer not empty)

Methods

impl<'a> Serial<'a>
[src]

Initializes the serial interface with a baud rate of baut_rate bits per second

Reads a byte from the RX buffer

Returns None if the buffer is empty

Writes byte into the TX buffer

Returns Err if the buffer is already full

Trait Implementations

impl<'a> Clone for Serial<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Serial<'a>
[src]