#[repr(C)]
pub struct RegisterBlock {
Show 17 fields pub dr: DR, pub fr: FR, pub ilpr: ILPR, pub ibrd: IBRD, pub fbrd: FBRD, pub lcrh: LCRH, pub ctl: CTL, pub ifls: IFLS, pub im: IM, pub ris: RIS, pub mis: MIS, pub icr: ICR, pub dmactl: DMACTL, pub _9bitaddr: _9BITADDR, pub _9bitamask: _9BITAMASK, pub pp: PP, pub cc: CC, /* private fields */
}
Expand description

Register block

Fields§

§dr: DR

0x00 - UART Data

§fr: FR

0x18 - UART Flag

§ilpr: ILPR

0x20 - UART IrDA Low-Power Register

§ibrd: IBRD

0x24 - UART Integer Baud-Rate Divisor

§fbrd: FBRD

0x28 - UART Fractional Baud-Rate Divisor

§lcrh: LCRH

0x2c - UART Line Control

§ctl: CTL

0x30 - UART Control

§ifls: IFLS

0x34 - UART Interrupt FIFO Level Select

§im: IM

0x38 - UART Interrupt Mask

§ris: RIS

0x3c - UART Raw Interrupt Status

§mis: MIS

0x40 - UART Masked Interrupt Status

§icr: ICR

0x44 - UART Interrupt Clear

§dmactl: DMACTL

0x48 - UART DMA Control

§_9bitaddr: _9BITADDR

0xa4 - UART 9-Bit Self Address

§_9bitamask: _9BITAMASK

0xa8 - UART 9-Bit Self Address Mask

§pp: PP

0xfc0 - UART Peripheral Properties

§cc: CC

0xfc8 - UART Clock Configuration

Implementations§

source§

impl RegisterBlock

source

pub fn ecr(&self) -> &ECR

0x04 - UART Receive Status/Error Clear

source

pub fn ecr_mut(&self) -> &mut ECR

0x04 - UART Receive Status/Error Clear

source

pub fn rsr(&self) -> &RSR

0x04 - UART Receive Status/Error Clear

source

pub fn rsr_mut(&self) -> &mut RSR

0x04 - UART Receive Status/Error Clear

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.