Skip to main content

RegisterBlock

Struct RegisterBlock 

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn intr_id(&self) -> &IntrId

0x00 - Interrupt ID register

Source

pub const fn data(&self) -> &Data

0x04 - Data register

Source

pub const fn uart_ctl(&self) -> &UartCtl

0x08 - UART control register

Source

pub const fn div_h(&self) -> &DivH

0x0c - Baud rate divider high byte (write only when UART_CTL[div_en]=1 or UART not busy)

Source

pub const fn div_l(&self) -> &DivL

0x10 - Baud rate divider low byte (write only when UART_CTL[div_en]=1 or UART not busy)

Source

pub const fn div_fra(&self) -> &DivFra

0x14 - Baud rate divider fractional part

Source

pub const fn intr_en(&self) -> &IntrEn

0x18 - Interrupt enable register

Source

pub const fn intr_status(&self) -> &IntrStatus

0x1c - Interrupt status register

Source

pub const fn fifo_ctl(&self) -> &FifoCtl

0x24 - FIFO control register

Source

pub const fn far(&self) -> &Far

0x28 - FIFO access mode enable register

Source

pub const fn modem_ctl(&self) -> &ModemCtl

0x2c - Modem control register

Source

pub const fn modem_status(&self) -> &ModemStatus

0x30 - Modem status register

Source

pub const fn line_status(&self) -> &LineStatus

0x34 - Line status register

Source

pub const fn uart_gp_reg(&self) -> &UartGpReg

0x38 - UART general purpose register

Source

pub const fn tx_fifo_read(&self) -> &TxFifoRead

0x3c - TX FIFO read register

Source

pub const fn rx_fifo_write(&self) -> &RxFifoWrite

0x40 - RX FIFO write register

Source

pub const fn fifo_status(&self) -> &FifoStatus

0x44 - FIFO status register

Source

pub const fn tx_fifo_cnt(&self) -> &TxFifoCnt

0x48 - TX FIFO data counter

Source

pub const fn rx_fifo_cnt(&self) -> &RxFifoCnt

0x4c - RX FIFO data counter

Source

pub const fn halt_tx(&self) -> &HaltTx

0x50 - TX halt register

Source

pub const fn dma_sw_ack(&self) -> &DmaSwAck

0x54 - DMA software acknowledge register

Source

pub const fn baud_ctl(&self) -> &BaudCtl

0x58 - Baud rate control register

Source

pub const fn stp_ctl(&self) -> &StpCtl

0x5c - Stop bit control register

Source

pub const fn uart_parameter(&self) -> &UartParameter

0x60 - UART parameter 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.