Struct uart_pl011::Pl011_Regs

source ·
#[repr(C)]
pub struct Pl011_Regs {
Show 22 fields pub uartdr: Volatile<u32>, pub uartrsr: Volatile<u32>, pub uartfr: ReadOnly<u32>, pub uartilpr: Volatile<u32>, pub uartibrd: Volatile<u32>, pub uartfbrd: Volatile<u32>, pub uartlcr_h: Volatile<u32>, pub uartcr: Volatile<u32>, pub uartifls: Volatile<u32>, pub uartimsc: Volatile<u32>, pub uartris: ReadOnly<u32>, pub uartmis: ReadOnly<u32>, pub uarticr: WriteOnly<u32>, pub uartdmacr: Volatile<u32>, pub uartperiphid0: ReadOnly<u32>, pub uartperiphid1: ReadOnly<u32>, pub uartperiphid2: ReadOnly<u32>, pub uartperiphid3: ReadOnly<u32>, pub uartpcellid0: ReadOnly<u32>, pub uartpcellid1: ReadOnly<u32>, pub uartpcellid2: ReadOnly<u32>, pub uartpcellid3: ReadOnly<u32>, /* private fields */
}
Expand description

Struct representing Pl011 registers. Not intended to be directly used

Fields§

§uartdr: Volatile<u32>

Data Register

§uartrsr: Volatile<u32>

receive status / error clear

§uartfr: ReadOnly<u32>

flag register

§uartilpr: Volatile<u32>

IrDA Low power counter register

§uartibrd: Volatile<u32>

integer baud rate

§uartfbrd: Volatile<u32>

fractional baud rate

§uartlcr_h: Volatile<u32>

line control

§uartcr: Volatile<u32>

control

§uartifls: Volatile<u32>

interrupt fifo level select

§uartimsc: Volatile<u32>

interrupt mask set/clear

§uartris: ReadOnly<u32>

raw interrupt status

§uartmis: ReadOnly<u32>

masked interrupt status

§uarticr: WriteOnly<u32>

interrupt clear

§uartdmacr: Volatile<u32>

dma control

§uartperiphid0: ReadOnly<u32>

UART Periph ID0

§uartperiphid1: ReadOnly<u32>

UART Periph ID1

§uartperiphid2: ReadOnly<u32>

UART Periph ID2

§uartperiphid3: ReadOnly<u32>

UART Periph ID3

§uartpcellid0: ReadOnly<u32>

UART PCell ID0

§uartpcellid1: ReadOnly<u32>

UART PCell ID1

§uartpcellid2: ReadOnly<u32>

UART PCell ID2

§uartpcellid3: ReadOnly<u32>

UART PCell ID3

Trait Implementations§

source§

impl Debug for Pl011_Regs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromBytes for Pl011_Regs

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.