UART4

Struct UART4 

Source
pub struct UART4 { /* private fields */ }
Expand description

Universal Asynchronous Receiver Transmitter

Implementations§

Source§

impl UART4

Source

pub const PTR: *const RegisterBlock = {0x2501000 as *const uart::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn dll(&self) -> &DLL

0x00 - UART Divisor Latch Low Register

Source

pub fn thr(&self) -> &THR

0x00 - UART Transmit Holding Register

Source

pub fn rbr(&self) -> &RBR

0x00 - UART Receive Buffer Register

Source

pub fn ier(&self) -> &IER

0x04 - UART Interrupt Enable Register

Source

pub fn dlh(&self) -> &DLH

0x04 - UART Divisor Latch High Register

Source

pub fn fcr(&self) -> &FCR

0x08 - UART FIFO Control Register

Source

pub fn iir(&self) -> &IIR

0x08 - UART Interrupt Identity Register

Source

pub fn lcr(&self) -> &LCR

0x0c - UART Line Control Register

Source

pub fn mcr(&self) -> &MCR

0x10 - UART Modem Control Register

Source

pub fn lsr(&self) -> &LSR

0x14 - UART Line Status Register

Source

pub fn msr(&self) -> &MSR

0x18 - UART Modem Status Register

Source

pub fn sch(&self) -> &SCH

0x1c - UART Scratch Register

Source

pub fn usr(&self) -> &USR

0x7c - UART Status Register

Source

pub fn tfl(&self) -> &TFL

0x80 - UART Transmit FIFO Level Register

Source

pub fn rfl(&self) -> &RFL

0x84 - UART Receive FIFO Level Register

Source

pub fn hsk(&self) -> &HSK

0x88 - UART DMA Handshake Configuration Register

Source

pub fn dma_req_en(&self) -> &DMA_REQ_EN

0x8c - UART DMA Request Enable Register

Source

pub fn halt(&self) -> &HALT

0xa4 - UART Halt TX Register

Source

pub fn dbg_dll(&self) -> &DBG_DLL

0xb0 - UART Debug DLL Register

Source

pub fn dbg_dlh(&self) -> &DBG_DLH

0xb4 - UART Debug DLH Register

Source

pub fn fcc(&self) -> &FCC

0xf0 - UART FIFO Clock Control Register

Source

pub fn rxdma_ctrl(&self) -> &RXDMA_CTRL

0x100 - UART RXDMA Control Register

Source

pub fn rxdma_str(&self) -> &RXDMA_STR

0x104 - UART RXDMA Start Register

Source

pub fn rxdma_sta(&self) -> &RXDMA_STA

0x108 - UART RXDMA Status Register

Source

pub fn rxdma_lmt(&self) -> &RXDMA_LMT

0x10c - UART RXDMA Limit Register

Source

pub fn rxdma_saddrl(&self) -> &RXDMA_SADDRL

0x110 - UART RXDMA Buffer Start Address Low Register

Source

pub fn rxdma_saddrh(&self) -> &RXDMA_SADDRH

0x114 - UART RXDMA Buffer Start Address High Register

Source

pub fn rxdma_bl(&self) -> &RXDMA_BL

0x118 - UART RXDMA Buffer Length Register

Source

pub fn rxdma_ie(&self) -> &RXDMA_IE

0x120 - UART RXDMA Interrupt Enable Register

Source

pub fn rxdma_is(&self) -> &RXDMA_IS

0x124 - UART RXDMA Interrupt Status Register

Source

pub fn rxdma_waddrl(&self) -> &RXDMA_WADDRL

0x128 - UART RXDMA Write Address Low Register

Source

pub fn rxdma_waddrh(&self) -> &RXDMA_WADDRH

0x12c - UART RXDMA Write Address High Register

Source

pub fn rxdma_raddrl(&self) -> &RXDMA_RADDRL

0x130 - UART RXDMA Read Address Low Register

Source

pub fn rxdma_raddrh(&self) -> &RXDMA_RADDRH

0x134 - UART RXDMA Read Address High Register

Source

pub fn rxdma_dcnt(&self) -> &RXDMA_DCNT

0x138 - UART RXDMA Data Count Register

Trait Implementations§

Source§

impl Debug for UART4

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for UART4

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for UART4

Auto Trait Implementations§

§

impl Freeze for UART4

§

impl RefUnwindSafe for UART4

§

impl !Sync for UART4

§

impl Unpin for UART4

§

impl UnwindSafe for UART4

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.