RegisterBlock

Struct RegisterBlock 

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn dll(&self) -> &DLL

0x00 - UART Divisor Latch Low Register

Source

pub const fn thr(&self) -> &THR

0x00 - UART Transmit Holding Register

Source

pub const fn rbr(&self) -> &RBR

0x00 - UART Receive Buffer Register

Source

pub const fn ier(&self) -> &IER

0x04 - UART Interrupt Enable Register

Source

pub const fn dlh(&self) -> &DLH

0x04 - UART Divisor Latch High Register

Source

pub const fn fcr(&self) -> &FCR

0x08 - UART FIFO Control Register

Source

pub const fn iir(&self) -> &IIR

0x08 - UART Interrupt Identity Register

Source

pub const fn lcr(&self) -> &LCR

0x0c - UART Line Control Register

Source

pub const fn mcr(&self) -> &MCR

0x10 - UART Modem Control Register

Source

pub const fn lsr(&self) -> &LSR

0x14 - UART Line Status Register

Source

pub const fn msr(&self) -> &MSR

0x18 - UART Modem Status Register

Source

pub const fn sch(&self) -> &SCH

0x1c - UART Scratch Register

Source

pub const fn usr(&self) -> &USR

0x7c - UART Status Register

Source

pub const fn tfl(&self) -> &TFL

0x80 - UART Transmit FIFO Level Register

Source

pub const fn rfl(&self) -> &RFL

0x84 - UART Receive FIFO Level Register

Source

pub const fn hsk(&self) -> &HSK

0x88 - UART DMA Handshake Configuration Register

Source

pub const fn dma_req_en(&self) -> &DMA_REQ_EN

0x8c - UART DMA Request Enable Register

Source

pub const fn halt(&self) -> &HALT

0xa4 - UART Halt TX Register

Source

pub const fn dbg_dll(&self) -> &DBG_DLL

0xb0 - UART Debug DLL Register

Source

pub const fn dbg_dlh(&self) -> &DBG_DLH

0xb4 - UART Debug DLH Register

Source

pub const fn fcc(&self) -> &FCC

0xf0 - UART FIFO Clock Control Register

Source

pub const fn rxdma_ctrl(&self) -> &RXDMA_CTRL

0x100 - UART RXDMA Control Register

Source

pub const fn rxdma_str(&self) -> &RXDMA_STR

0x104 - UART RXDMA Start Register

Source

pub const fn rxdma_sta(&self) -> &RXDMA_STA

0x108 - UART RXDMA Status Register

Source

pub const fn rxdma_lmt(&self) -> &RXDMA_LMT

0x10c - UART RXDMA Limit Register

Source

pub const fn rxdma_saddrl(&self) -> &RXDMA_SADDRL

0x110 - UART RXDMA Buffer Start Address Low Register

Source

pub const fn rxdma_saddrh(&self) -> &RXDMA_SADDRH

0x114 - UART RXDMA Buffer Start Address High Register

Source

pub const fn rxdma_bl(&self) -> &RXDMA_BL

0x118 - UART RXDMA Buffer Length Register

Source

pub const fn rxdma_ie(&self) -> &RXDMA_IE

0x120 - UART RXDMA Interrupt Enable Register

Source

pub const fn rxdma_is(&self) -> &RXDMA_IS

0x124 - UART RXDMA Interrupt Status Register

Source

pub const fn rxdma_waddrl(&self) -> &RXDMA_WADDRL

0x128 - UART RXDMA Write Address Low Register

Source

pub const fn rxdma_waddrh(&self) -> &RXDMA_WADDRH

0x12c - UART RXDMA Write Address High Register

Source

pub const fn rxdma_raddrl(&self) -> &RXDMA_RADDRL

0x130 - UART RXDMA Read Address Low Register

Source

pub const fn rxdma_raddrh(&self) -> &RXDMA_RADDRH

0x134 - UART RXDMA Read Address High Register

Source

pub const fn rxdma_dcnt(&self) -> &RXDMA_DCNT

0x138 - UART RXDMA Data Count Register

Auto Trait Implementations§

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<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.