#[repr(C)]
pub struct RegisterBlock {
Show 15 fields pub rhr: RHR, pub thr: THR, pub brgr: BRGR, pub rtor: RTOR, pub ttgr: TTGR, pub fidi: FIDI, pub ner: NER, pub ifr: IFR, pub man: MAN, pub linmr: LINMR, pub linir: LINIR, pub linbrr: LINBRR, pub wpmr: WPMR, pub wpsr: WPSR, pub version: VERSION, /* private fields */
}
Expand description

Register block

Fields§

§rhr: RHR

0x18 - Receiver Holding Register

§thr: THR

0x1c - Transmitter Holding Register

§brgr: BRGR

0x20 - Baud Rate Generator Register

§rtor: RTOR

0x24 - Receiver Time-out Register

§ttgr: TTGR

0x28 - Transmitter Timeguard Register

§fidi: FIDI

0x40 - FI DI Ratio Register

§ner: NER

0x44 - Number of Errors Register

§ifr: IFR

0x4c - IrDA Filter Register

§man: MAN

0x50 - Manchester Configuration Register

§linmr: LINMR

0x54 - LIN Mode Register

§linir: LINIR

0x58 - LIN Identifier Register

§linbrr: LINBRR

0x5c - LIN Baud Rate Register

§wpmr: WPMR

0xe4 - Write Protect Mode Register

§wpsr: WPSR

0xe8 - Write Protect Status Register

§version: VERSION

0xfc - Version Register

Implementations§

source§

impl RegisterBlock

source

pub const fn usart_mode_cr_usart(&self) -> &USART_MODE_CR_USART

0x00 - Control Register

source

pub const fn spi_master_mode_cr_spi(&self) -> &SPI_MASTER_MODE_CR_SPI

0x00 - Control Register

source

pub const fn lin_mode_cr_lin(&self) -> &LIN_MODE_CR_LIN

0x00 - Control Register

source

pub const fn usart_mode_mr(&self) -> &USART_MODE_MR

0x04 - Mode Register

source

pub const fn spi_mode_mr_spi(&self) -> &SPI_MODE_MR_SPI

0x04 - Mode Register

source

pub const fn usart_mode_ier_usart(&self) -> &USART_MODE_IER_USART

0x08 - Interrupt Enable Register

source

pub const fn spi_slave_mode_ier_spi(&self) -> &SPI_SLAVE_MODE_IER_SPI

0x08 - Interrupt Enable Register

source

pub const fn lin_mode_ier_lin(&self) -> &LIN_MODE_IER_LIN

0x08 - Interrupt Enable Register

source

pub const fn usart_mode_idr_usart(&self) -> &USART_MODE_IDR_USART

0x0c - Interrupt Disable Register

source

pub const fn spi_slave_mode_idr_spi(&self) -> &SPI_SLAVE_MODE_IDR_SPI

0x0c - Interrupt Disable Register

source

pub const fn lin_mode_idr_lin(&self) -> &LIN_MODE_IDR_LIN

0x0c - Interrupt Disable Register

source

pub const fn usart_mode_imr_usart(&self) -> &USART_MODE_IMR_USART

0x10 - Interrupt Mask Register

source

pub const fn spi_slave_mode_mr_usart(&self) -> &SPI_SLAVE_MODE_MR_USART

0x10 - Interrupt Mask Register

source

pub const fn lin_mode_imr_lin(&self) -> &LIN_MODE_IMR_LIN

0x10 - Interrupt Mask Register

source

pub const fn usart_mode_csr_usart(&self) -> &USART_MODE_CSR_USART

0x14 - Channel Status Register

source

pub const fn spi_slave_mode_csr_spi(&self) -> &SPI_SLAVE_MODE_CSR_SPI

0x14 - Channel Status Register

source

pub const fn lin_mode_csr_lin(&self) -> &LIN_MODE_CSR_LIN

0x14 - Channel Status Register

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.