[][src]Struct ADuCM302x::uart0::RegisterBlock

#[repr(C)]pub struct RegisterBlock {
    pub ien: IEN,
    pub iir: IIR,
    pub lcr: LCR,
    pub mcr: MCR,
    pub lsr: LSR,
    pub msr: MSR,
    pub scr: SCR,
    pub fcr: FCR,
    pub fbr: FBR,
    pub div: DIV,
    pub lcr2: LCR2,
    pub ctl: CTL,
    pub rfc: RFC,
    pub tfc: TFC,
    pub rsc: RSC,
    pub acr: ACR,
    pub asrl: ASRL,
    pub asrh: ASRH,
    // some fields omitted
}

Register block

Fields

ien: IEN

0x04 - Interrupt Enable

iir: IIR

0x08 - Interrupt ID

lcr: LCR

0x0c - Line Control

mcr: MCR

0x10 - Modem Control

lsr: LSR

0x14 - Line Status

msr: MSR

0x18 - Modem Status

scr: SCR

0x1c - Scratch Buffer

fcr: FCR

0x20 - FIFO Control

fbr: FBR

0x24 - Fractional Baud Rate

div: DIV

0x28 - Baud Rate Divider

lcr2: LCR2

0x2c - Second Line Control

ctl: CTL

0x30 - UART Control Register

rfc: RFC

0x34 - RX FIFO Byte Count

tfc: TFC

0x38 - TX FIFO Byte Count

rsc: RSC

0x3c - RS485 Half-duplex Control

acr: ACR

0x40 - Auto Baud Control

asrl: ASRL

0x44 - Auto Baud Status (Low)

asrh: ASRH

0x48 - Auto Baud Status (High)

Implementations

impl RegisterBlock[src]

pub fn tx(&self) -> &TX[src]

0x00 - Transmit Holding Register

pub fn tx_mut(&self) -> &mut TX[src]

0x00 - Transmit Holding Register

pub fn rx(&self) -> &RX[src]

0x00 - Receive Buffer Register

pub fn rx_mut(&self) -> &mut RX[src]

0x00 - Receive Buffer Register

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.