UART4

Type Alias UART4 

Source
pub type UART4 = Periph<RegisterBlock, 1073761280>;
Expand description

Universal asynchronous receiver transmitter

See peripheral structure

Aliased Type§

pub struct UART4 { /* private fields */ }

Trait Implementations§

Source§

impl Enable for UART4

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 UART4

Source§

type Bus = APB1

Bus type;
Source§

impl Reset for UART4

Source§

fn reset(rcc: &mut RCC)

Resets peripheral
Source§

unsafe fn reset_unchecked()

Safety Read more
Source§

impl SerialAsync for UART4

Source§

type Rx<PULL> = Rx<PULL>

Receive Read more
Source§

type Tx<Otype> = Tx<Otype>

Transmit Read more
Source§

impl UartInit<Periph<RegisterBlock, 1073761280>> for UART4

Source§

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

Source§

impl UartPeriph for UART4

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 UART4

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)