USART3

Type Alias USART3 

Source
pub type USART3 = Periph<RegisterBlock, 1073760256>;
Expand description

Universal synchronous asynchronous receiver transmitter

See peripheral structure

Aliased Type§

pub struct USART3 { /* private fields */ }

Trait Implementations§

Source§

impl Enable for USART3

Source§

fn enable(rcc: &mut RCC)

Enables peripheral
Source§

fn disable(rcc: &mut RCC)

Disables peripheral
Source§

fn is_enabled() -> bool

Check if peripheral enabled
Source§

fn is_disabled() -> bool

Check if peripheral disabled
Source§

unsafe fn enable_unchecked()

Safety Read more
Source§

unsafe fn disable_unchecked()

Safety Read more
Source§

impl RccBus for USART3

Source§

type Bus = APB1

Bus type;
Source§

impl Remap for USART3

Source§

type Mapr = MAPR

Source§

fn remap<const R: u8>(self, mapr: &mut Self::Mapr) -> Rmp<Self, R>

Source§

impl Reset for USART3

Source§

fn reset(rcc: &mut RCC)

Resets peripheral
Source§

unsafe fn reset_unchecked()

Safety Read more
Source§

impl SerialAsync for USART3

Source§

type Rx<PULL> = Rx<PULL>

Receive Read more
Source§

type Tx<Otype> = Tx<Otype>

Transmit Read more
Source§

impl SerialFlowControl for USART3

Source§

type Cts<PULL> = Cts<PULL>

“Clear To Send” blocks the data transmission at the end of the current transfer when high Read more
Source§

type Rts = Rts

“Request to send” indicates that the USART is ready to receive a data (when low) Read more
Source§

impl SerialSync for USART3

Source§

type Ck = Ck

Source§

impl UartInit<Periph<RegisterBlock, 1073760256>> for USART3

Source§

fn constrain(self, mcu: &mut Mcu) -> Uart<USART3>

Source§

impl UartPeriph for USART3

Source§

fn clear_err_flag(&self)

In order to clear that error flag, you have to do a read from the sr register followed by a read from the dr register.

Source§

fn is_tx_empty(&self) -> bool

Source§

fn is_tx_complete(&self) -> bool

Source§

fn write(&mut self, word: u16) -> Result<(), Error>

Source§

fn read(&mut self) -> Result<u16, Error>

Source§

fn get_tx_data_reg_addr(&self) -> usize

Source§

fn get_rx_data_reg_addr(&self) -> usize

Source§

fn enable_dma_tx(&mut self, enable: bool)

Source§

fn enable_dma_rx(&mut self, enable: bool)

Source§

fn set_interrupt(&mut self, event: UartEvent, enable: bool)

Source§

fn is_interrupt_enable(&mut self, event: UartEvent) -> bool

Source§

fn is_interrupted(&mut self, event: UartEvent) -> bool

Source§

fn is_rx_not_empty(&self) -> bool

Source§

impl UartPeriphExt for USART3

Source§

fn config(&mut self, config: Config, mcu: &mut Mcu)

Source§

fn enable_comm(&mut self, tx: bool, rx: bool)

Source§

fn set_stop_bits(&mut self, bits: StopBits)