Struct rk3399_pac::Uart

source ·
pub struct Uart { /* private fields */ }
Expand description

Universal Asynchronous Receiver/Transmitter (UART) Registers

Implementations§

source§

impl Uart

source

pub const PTR: *const RegisterBlock = {0xff180000 as *const uart::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn dll(&self) -> &Dll

0x00 - Divisor Latch (Low)

source

pub fn thr(&self) -> &Thr

0x00 - Transmit Holding Register

source

pub fn rbr(&self) -> &Rbr

0x00 - Receive Buffer Register

source

pub fn ier(&self) -> &Ier

0x04 - Interrupt Enable Register

source

pub fn dlh(&self) -> &Dlh

0x04 - Divisor Latch (High)

source

pub fn fcr(&self) -> &Fcr

0x08 - FIFO Control Register

source

pub fn iir(&self) -> &Iir

0x08 - Interrupt Identification Register

source

pub fn lcr(&self) -> &Lcr

0x0c - Line Control Register

source

pub fn mcr(&self) -> &Mcr

0x10 - Modem Control Register

source

pub fn lsr(&self) -> &Lsr

0x14 - Line Status Register

source

pub fn msr(&self) -> &Msr

0x18 - Modem Status Register

source

pub fn scr(&self) -> &Scr

0x1c - Scratchpad Register

source

pub fn srbr(&self) -> &Srbr

0x30 - Shadow Receive Buffer Register

source

pub fn sthr(&self) -> &Sthr

0x6c - Shadow Transmit Holding Register

source

pub fn far(&self) -> &Far

0x70 - FIFO Access Register

source

pub fn tfr(&self) -> &Tfr

0x74 - Transmit FIFO Read

source

pub fn rfw(&self) -> &Rfw

0x78 - Receive FIFO Write

source

pub fn usr(&self) -> &Usr

0x7c - UART Status Register

source

pub fn tfl(&self) -> &Tfl

0x80 - Transmit FIFO Level

source

pub fn rfl(&self) -> &Rfl

0x84 - Receive FIFO Level

source

pub fn srr(&self) -> &Srr

0x88 - Software Reset Register

source

pub fn srts(&self) -> &Srts

0x8c - Shadow Request to Send

source

pub fn sbcr(&self) -> &Sbcr

0x90 - Shadow Break Control Register

source

pub fn sdmam(&self) -> &Sdmam

0x94 - Shadow DMA Mode

source

pub fn sfe(&self) -> &Sfe

0x98 - Shadow FIFO Enable

source

pub fn srt(&self) -> &Srt

0x9c - Shadow RCVR Trigger

source

pub fn stet(&self) -> &Stet

0xa0 - Shadow TX Empty Trigger

source

pub fn htx(&self) -> &Htx

0xa4 - Halt TX

source

pub fn dmasa(&self) -> &Dmasa

0xa8 - DMA Software Acknowledge

source

pub fn cpr(&self) -> &Cpr

0xf4 - Component Parameter Register

source

pub fn ucv(&self) -> &Ucv

0xf8 - UART Component Version

source

pub fn ctr(&self) -> &Ctr

0xfc - Component Type Register

Trait Implementations§

source§

impl Debug for Uart

source§

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

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

impl Deref for Uart

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Uart

Auto Trait Implementations§

§

impl Freeze for Uart

§

impl RefUnwindSafe for Uart

§

impl !Sync for Uart

§

impl Unpin for Uart

§

impl UnwindSafe for Uart

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>,

§

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>,

§

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.