#[repr(C)]
pub struct RegisterBlock {
Show 23 fields pub us_rhr: US_RHR, pub us_thr: US_THR, pub us_brgr: US_BRGR, pub us_rtor: US_RTOR, pub us_ner: US_NER, pub us_if: US_IF, pub us_man: US_MAN, pub us_linmr: US_LINMR, pub us_linir: US_LINIR, pub us_linbrr: US_LINBRR, pub us_lonmr: US_LONMR, pub us_lonpr: US_LONPR, pub us_londl: US_LONDL, pub us_lonl2hdr: US_LONL2HDR, pub us_lonbl: US_LONBL, pub us_lonb1tx: US_LONB1TX, pub us_lonb1rx: US_LONB1RX, pub us_lonprio: US_LONPRIO, pub us_idttx: US_IDTTX, pub us_idtrx: US_IDTRX, pub us_icdiff: US_ICDIFF, pub us_wpmr: US_WPMR, pub us_wpsr: US_WPSR, /* private fields */
}
Expand description

Register block

Fields§

§us_rhr: US_RHR

0x18 - Receive Holding Register

§us_thr: US_THR

0x1c - Transmit Holding Register

§us_brgr: US_BRGR

0x20 - Baud Rate Generator Register

§us_rtor: US_RTOR

0x24 - Receiver Timeout Register

§us_ner: US_NER

0x44 - Number of Errors Register

§us_if: US_IF

0x4c - IrDA Filter Register

§us_man: US_MAN

0x50 - Manchester Configuration Register

§us_linmr: US_LINMR

0x54 - LIN Mode Register

§us_linir: US_LINIR

0x58 - LIN Identifier Register

§us_linbrr: US_LINBRR

0x5c - LIN Baud Rate Register

§us_lonmr: US_LONMR

0x60 - LON Mode Register

§us_lonpr: US_LONPR

0x64 - LON Preamble Register

§us_londl: US_LONDL

0x68 - LON Data Length Register

§us_lonl2hdr: US_LONL2HDR

0x6c - LON L2HDR Register

§us_lonbl: US_LONBL

0x70 - LON Backlog Register

§us_lonb1tx: US_LONB1TX

0x74 - LON Beta1 Tx Register

§us_lonb1rx: US_LONB1RX

0x78 - LON Beta1 Rx Register

§us_lonprio: US_LONPRIO

0x7c - LON Priority Register

§us_idttx: US_IDTTX

0x80 - LON IDT Tx Register

§us_idtrx: US_IDTRX

0x84 - LON IDT Rx Register

§us_icdiff: US_ICDIFF

0x88 - IC DIFF Register

§us_wpmr: US_WPMR

0xe4 - Write Protection Mode Register

§us_wpsr: US_WPSR

0xe8 - Write Protection Status Register

Implementations§

source§

impl RegisterBlock

source

pub const fn us_cr_lin_mode(&self) -> &US_CR_LIN_MODE

0x00 - Control Register

source

pub const fn us_cr_spi_mode(&self) -> &US_CR_SPI_MODE

0x00 - Control Register

source

pub const fn us_cr_usart_mode(&self) -> &US_CR_USART_MODE

0x00 - Control Register

source

pub const fn us_mr_spi_mode(&self) -> &US_MR_SPI_MODE

0x04 - Mode Register

source

pub const fn us_mr_usart_mode(&self) -> &US_MR_USART_MODE

0x04 - Mode Register

source

pub const fn us_ier_lon_mode(&self) -> &US_IER_LON_MODE

0x08 - Interrupt Enable Register

source

pub const fn us_ier_lin_mode(&self) -> &US_IER_LIN_MODE

0x08 - Interrupt Enable Register

source

pub const fn us_ier_spi_mode(&self) -> &US_IER_SPI_MODE

0x08 - Interrupt Enable Register

source

pub const fn us_ier_usart_mode(&self) -> &US_IER_USART_MODE

0x08 - Interrupt Enable Register

source

pub const fn us_idr_lon_mode(&self) -> &US_IDR_LON_MODE

0x0c - Interrupt Disable Register

source

pub const fn us_idr_lin_mode(&self) -> &US_IDR_LIN_MODE

0x0c - Interrupt Disable Register

source

pub const fn us_idr_spi_mode(&self) -> &US_IDR_SPI_MODE

0x0c - Interrupt Disable Register

source

pub const fn us_idr_usart_mode(&self) -> &US_IDR_USART_MODE

0x0c - Interrupt Disable Register

source

pub const fn us_imr_lon_mode(&self) -> &US_IMR_LON_MODE

0x10 - Interrupt Mask Register

source

pub const fn us_imr_lin_mode(&self) -> &US_IMR_LIN_MODE

0x10 - Interrupt Mask Register

source

pub const fn us_imr_spi_mode(&self) -> &US_IMR_SPI_MODE

0x10 - Interrupt Mask Register

source

pub const fn us_imr_usart_mode(&self) -> &US_IMR_USART_MODE

0x10 - Interrupt Mask Register

source

pub const fn us_csr_lon_mode(&self) -> &US_CSR_LON_MODE

0x14 - Channel Status Register

source

pub const fn us_csr_lin_mode(&self) -> &US_CSR_LIN_MODE

0x14 - Channel Status Register

source

pub const fn us_csr_spi_mode(&self) -> &US_CSR_SPI_MODE

0x14 - Channel Status Register

source

pub const fn us_csr_usart_mode(&self) -> &US_CSR_USART_MODE

0x14 - Channel Status Register

source

pub const fn us_ttgr_lon_mode(&self) -> &US_TTGR_LON_MODE

0x28 - Transmitter Timeguard Register

source

pub const fn us_ttgr_usart_mode(&self) -> &US_TTGR_USART_MODE

0x28 - Transmitter Timeguard Register

source

pub const fn us_fidi_lon_mode(&self) -> &US_FIDI_LON_MODE

0x40 - FI DI Ratio Register

source

pub const fn us_fidi_usart_mode(&self) -> &US_FIDI_USART_MODE

0x40 - FI DI Ratio 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>,

§

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.