Struct stm32f042_hal::serial::Serial
[−]
[src]
pub struct Serial<USART, PINS> { /* fields omitted */ }
Serial abstraction
Methods
impl<PINS> Serial<USART1, PINS>
[src]
USART1
pub fn usart1(usart: USART1, pins: PINS, baud_rate: Bps, clocks: Clocks) -> Self where
PINS: Pins<USART1>,
[src]
PINS: Pins<USART1>,
pub fn split(self) -> (Tx<USART1>, Rx<USART1>)
[src]
pub fn release(self) -> (USART1, PINS)
[src]
impl<PINS> Serial<USART2, PINS>
[src]
USART2
pub fn usart2(usart: USART2, pins: PINS, baud_rate: Bps, clocks: Clocks) -> Self where
PINS: Pins<USART2>,
[src]
PINS: Pins<USART2>,