Uart

Struct Uart 

Source
pub struct Uart { /* private fields */ }
Expand description

UART register block, DW_apb_uart

Implementations§

Source§

impl Uart

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn dll(self) -> Reg<Dll, RW>

Divisor latch low. when LCR[7] bit = 1

Source

pub const fn rbr(self) -> Reg<Rbr, R>

Receiver buffer register. when LCR[7] bit = 0

Source

pub const fn thr(self) -> Reg<Thr, W>

Transmitter holding register. when LCR[7] bit = 0

Source

pub const fn dlh(self) -> Reg<Dlh, RW>

Divisor latch high. when LCR[7] bit = 1

Source

pub const fn ier(self) -> Reg<Ier, RW>

Interrupt enable register. when LCR[7] bit = 0

Source

pub const fn fcr(self) -> Reg<Fcr, RW>

FIFO control register.

Source

pub const fn iir(self) -> Reg<Iir, R>

Interrupt identification register.

Source

pub const fn lcr(self) -> Reg<Lcr, RW>

Line control register.

Source

pub const fn mcr(self) -> Reg<Mcr, RW>

Modem control register.

Source

pub const fn lsr(self) -> Reg<Lsr, RW>

Line status register.

Source

pub const fn msr(self) -> Reg<Msr, RW>

Modem status register.

Source

pub const fn scr(self) -> Reg<Scr, RW>

Scratch register.

Source

pub const fn lpdll(self) -> Reg<Dll, RW>

Low power divisor latch low.

Source

pub const fn lpdlh(self) -> Reg<Dlh, RW>

Low power divisor latch high.

Source

pub const fn srbr(self, n: usize) -> Reg<Rbr, R>

Shadow receiver buffer register.

Source

pub const fn sthr(self, n: usize) -> Reg<Thr, W>

Shadow transmitter holding register.

Source

pub const fn far(self) -> Reg<Far, RW>

FIFO access register.

Source

pub const fn tfr(self) -> Reg<Tfr, RW>

Transmit FIFO read.

Source

pub const fn rfw(self) -> Reg<Rfw, RW>

Receive FIFO write.

Source

pub const fn usr(self) -> Reg<Usr, RW>

UART status register.

Source

pub const fn tfl(self) -> Reg<u32, RW>

Transmit FIFO level.

Source

pub const fn rfl(self) -> Reg<u32, RW>

Receive FIFO level.

Source

pub const fn srr(self) -> Reg<Srr, RW>

Software reset register.

Source

pub const fn srts(self) -> Reg<Srts, RW>

Shadow request to send.

Source

pub const fn sbcr(self) -> Reg<Sbcr, RW>

Shadow break control register.

Source

pub const fn sdmam(self) -> Reg<Sdmam, RW>

Shadow DMA mode.

Source

pub const fn sfe(self) -> Reg<Sfe, RW>

Shadow FIFO enable.

Source

pub const fn srt(self) -> Reg<Srt, RW>

Shadow RCVR trigger.

Source

pub const fn stet(self) -> Reg<Stet, RW>

Shadow TX empty trigger.

Source

pub const fn htx(self) -> Reg<Htx, RW>

Halt TX.

Source

pub const fn dmasa(self) -> Reg<Dmasa, RW>

DMA software acknowledge.

Source

pub const fn cpr(self) -> Reg<Cpr, R>

Component parameter register.

Source

pub const fn ucv(self) -> Reg<Ucv, RW>

UART component version.

Source

pub const fn ctr(self) -> Reg<Ctr, RW>

Component type register.

Trait Implementations§

Source§

impl Clone for Uart

Source§

fn clone(&self) -> Uart

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Uart

Source§

fn eq(&self, other: &Uart) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Uart

Source§

impl Eq for Uart

Source§

impl Send for Uart

Source§

impl StructuralPartialEq for Uart

Source§

impl Sync for Uart

Auto Trait Implementations§

§

impl Freeze for Uart

§

impl RefUnwindSafe 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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

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.