Struct RegisterBlock

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn fifo(&self) -> &FIFO

0x00 - FIFO data register

Source

pub const fn int_raw(&self) -> &INT_RAW

0x04 - Raw interrupt status

Source

pub const fn int_st(&self) -> &INT_ST

0x08 - Masked interrupt status

Source

pub const fn int_ena(&self) -> &INT_ENA

0x0c - Interrupt enable bits

Source

pub const fn int_clr(&self) -> &INT_CLR

0x10 - Interrupt clear bits

Source

pub const fn clkdiv_sync(&self) -> &CLKDIV_SYNC

0x14 - Clock divider configuration

Source

pub const fn rx_filt(&self) -> &RX_FILT

0x18 - Rx Filter configuration

Source

pub const fn status(&self) -> &STATUS

0x1c - UART status register

Source

pub const fn conf0_sync(&self) -> &CONF0_SYNC

0x20 - Configuration register 0

Source

pub const fn conf1(&self) -> &CONF1

0x24 - Configuration register 1

Source

pub const fn hwfc_conf_sync(&self) -> &HWFC_CONF_SYNC

0x2c - Hardware flow-control configuration

Source

pub const fn sleep_conf0(&self) -> &SLEEP_CONF0

0x30 - UART sleep configure register 0

Source

pub const fn sleep_conf1(&self) -> &SLEEP_CONF1

0x34 - UART sleep configure register 1

Source

pub const fn sleep_conf2(&self) -> &SLEEP_CONF2

0x38 - UART sleep configure register 2

Source

pub const fn swfc_conf0_sync(&self) -> &SWFC_CONF0_SYNC

0x3c - Software flow-control character configuration

Source

pub const fn swfc_conf1(&self) -> &SWFC_CONF1

0x40 - Software flow-control character configuration

Source

pub const fn txbrk_conf_sync(&self) -> &TXBRK_CONF_SYNC

0x44 - Tx Break character configuration

Source

pub const fn idle_conf_sync(&self) -> &IDLE_CONF_SYNC

0x48 - Frame-end idle configuration

Source

pub const fn rs485_conf_sync(&self) -> &RS485_CONF_SYNC

0x4c - RS485 mode configuration

Source

pub const fn at_cmd_precnt_sync(&self) -> &AT_CMD_PRECNT_SYNC

0x50 - Pre-sequence timing configuration

Source

pub const fn at_cmd_postcnt_sync(&self) -> &AT_CMD_POSTCNT_SYNC

0x54 - Post-sequence timing configuration

Source

pub const fn at_cmd_gaptout_sync(&self) -> &AT_CMD_GAPTOUT_SYNC

0x58 - Timeout configuration

Source

pub const fn at_cmd_char_sync(&self) -> &AT_CMD_CHAR_SYNC

0x5c - AT escape sequence detection configuration

Source

pub const fn mem_conf(&self) -> &MEM_CONF

0x60 - UART memory power configuration

Source

pub const fn tout_conf_sync(&self) -> &TOUT_CONF_SYNC

0x64 - UART threshold and allocation configuration

Source

pub const fn mem_tx_status(&self) -> &MEM_TX_STATUS

0x68 - Tx-SRAM write and read offset address.

Source

pub const fn mem_rx_status(&self) -> &MEM_RX_STATUS

0x6c - Rx-SRAM write and read offset address.

Source

pub const fn fsm_status(&self) -> &FSM_STATUS

0x70 - UART transmit and receive status.

Source

pub const fn clk_conf(&self) -> &CLK_CONF

0x88 - UART core clock configuration

Source

pub const fn date(&self) -> &DATE

0x8c - UART Version register

Source

pub const fn afifo_status(&self) -> &AFIFO_STATUS

0x90 - UART AFIFO Status

Source

pub const fn reg_update(&self) -> &REG_UPDATE

0x98 - UART Registers Configuration Update register

Source

pub const fn id(&self) -> &ID

0x9c - UART ID register

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.