Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn mcr(&self) -> &Reg<MCR_SPEC>

0x00 - RW, UART0 modem control

Source

pub const fn ier(&self) -> &Reg<IER_SPEC>

0x01 - RW, UART0 interrupt enable

Source

pub const fn fcr(&self) -> &Reg<FCR_SPEC>

0x02 - RW, UART0 FIFO control

Source

pub const fn lcr(&self) -> &Reg<LCR_SPEC>

0x03 - RW, UART0 line control

Source

pub const fn iir(&self) -> &Reg<IIR_SPEC>

0x04 - RO, UART0 interrupt identification

Source

pub const fn lsr(&self) -> &Reg<LSR_SPEC>

0x05 - RO, UART0 line status

Source

pub const fn msr(&self) -> &Reg<MSR_SPEC>

0x06 - RO, UART0 modem status

Source

pub const fn thr(&self) -> &Reg<THR_SPEC>

0x08 - WO, UART0 transmitter holding, transmittal byte

Source

pub const fn rbr(&self) -> &Reg<RBR_SPEC>

0x08 - RO, UART0 receiver buffer, receiving byte

Source

pub const fn rfc(&self) -> &Reg<RFC_SPEC>

0x0a - RO, UART0 receiver FIFO count

Source

pub const fn tfc(&self) -> &Reg<TFC_SPEC>

0x0b - RO, UART0 transmitter FIFO count

Source

pub const fn dl(&self) -> &Reg<DL_SPEC>

0x0c - RW, UART0 divisor latch

Source

pub const fn div(&self) -> &Reg<DIV_SPEC>

0x0e - RW, UART0 pre-divisor latch byte, only low 7 bit, from 1 to 0/128

Source

pub const fn adr(&self) -> &Reg<ADR_SPEC>

0x0f - RW, UART0 slave address: 0xFF=disable, other=enable

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