Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 21 fields pub uartdr: UARTDR, pub uartrsr_uartecr: UARTRSR_UARTECR, pub uartfr: UARTFR, pub uartilpr: UARTILPR, pub uartibrd: UARTIBRD, pub uartfbrd: UARTFBRD, pub uartlcrh: UARTLCRH, pub uartctl: UARTCTL, pub uartifls: UARTIFLS, pub uartim: UARTIM, pub uartris: UARTRIS, pub uartmis: UARTMIS, pub uarticr: UARTICR, pub uartdmactl: UARTDMACTL, pub uartlctl: UARTLCTL, pub uartlss: UARTLSS, pub uartltim: UARTLTIM, pub uart_9bitaddr: UART_9BITADDR, pub uart_9bitamask: UART_9BITAMASK, pub uartpp: UARTPP, pub uartcc: UARTCC, /* private fields */
}
Expand description

Register block

Fields§

§uartdr: UARTDR

0x00 - UART data register

§uartrsr_uartecr: UARTRSR_UARTECR

0x04 - UART receive status register/error clear register

§uartfr: UARTFR

0x18 - UART flag register

§uartilpr: UARTILPR

0x20 - UARTILPR

§uartibrd: UARTIBRD

0x24 - UART integer part of the baud-rate divisor value

§uartfbrd: UARTFBRD

0x28 - UART fractional part of the baud-rate divisor value

§uartlcrh: UARTLCRH

0x2c - UART line control register

§uartctl: UARTCTL

0x30 - UARTCTL

§uartifls: UARTIFLS

0x34 - UART interrupt FIFO level select

§uartim: UARTIM

0x38 - UART interrupt mask register

§uartris: UARTRIS

0x3c - UART raw interrupt status register

§uartmis: UARTMIS

0x40 - UART masked interrupt status register

§uarticr: UARTICR

0x44 - UART interrupt clear register

§uartdmactl: UARTDMACTL

0x48 - UART DMA control register

§uartlctl: UARTLCTL

0x90 - UARTLCTL

§uartlss: UARTLSS

0x94 - UARTLSS

§uartltim: UARTLTIM

0x98 - UARTLTIM

§uart_9bitaddr: UART_9BITADDR

0xa4 - UART_9BITADDR

§uart_9bitamask: UART_9BITAMASK

0xa8 - UART_9BITAMASK

§uartpp: UARTPP

0xfc0 - UARTPP

§uartcc: UARTCC

0xfc8 - UARTCC

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.