Struct atsam4lc2b_pac::usart0::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {Show 15 fields
pub rhr: Reg<RHR_SPEC>,
pub thr: Reg<THR_SPEC>,
pub brgr: Reg<BRGR_SPEC>,
pub rtor: Reg<RTOR_SPEC>,
pub ttgr: Reg<TTGR_SPEC>,
pub fidi: Reg<FIDI_SPEC>,
pub ner: Reg<NER_SPEC>,
pub ifr: Reg<IFR_SPEC>,
pub man: Reg<MAN_SPEC>,
pub linmr: Reg<LINMR_SPEC>,
pub linir: Reg<LINIR_SPEC>,
pub linbrr: Reg<LINBRR_SPEC>,
pub wpmr: Reg<WPMR_SPEC>,
pub wpsr: Reg<WPSR_SPEC>,
pub version: Reg<VERSION_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
rhr: Reg<RHR_SPEC>
0x18 - Receiver Holding Register
thr: Reg<THR_SPEC>
0x1c - Transmitter Holding Register
brgr: Reg<BRGR_SPEC>
0x20 - Baud Rate Generator Register
rtor: Reg<RTOR_SPEC>
0x24 - Receiver Time-out Register
ttgr: Reg<TTGR_SPEC>
0x28 - Transmitter Timeguard Register
fidi: Reg<FIDI_SPEC>
0x40 - FI DI Ratio Register
ner: Reg<NER_SPEC>
0x44 - Number of Errors Register
ifr: Reg<IFR_SPEC>
0x4c - IrDA Filter Register
man: Reg<MAN_SPEC>
0x50 - Manchester Configuration Register
linmr: Reg<LINMR_SPEC>
0x54 - LIN Mode Register
linir: Reg<LINIR_SPEC>
0x58 - LIN Identifier Register
linbrr: Reg<LINBRR_SPEC>
0x5c - LIN Baud Rate Register
wpmr: Reg<WPMR_SPEC>
0xe4 - Write Protect Mode Register
wpsr: Reg<WPSR_SPEC>
0xe8 - Write Protect Status Register
version: Reg<VERSION_SPEC>
0xfc - Version Register
Implementations
sourceimpl RegisterBlock
impl RegisterBlock
sourcepub fn usart_mode_cr_usart(&self) -> &Reg<USART_MODE_CR_USART_SPEC>
pub fn usart_mode_cr_usart(&self) -> &Reg<USART_MODE_CR_USART_SPEC>
0x00 - Control Register
sourcepub fn spi_master_mode_cr_spi(&self) -> &Reg<SPI_MASTER_MODE_CR_SPI_SPEC>
pub fn spi_master_mode_cr_spi(&self) -> &Reg<SPI_MASTER_MODE_CR_SPI_SPEC>
0x00 - Control Register
sourcepub fn lin_mode_cr_lin(&self) -> &Reg<LIN_MODE_CR_LIN_SPEC>
pub fn lin_mode_cr_lin(&self) -> &Reg<LIN_MODE_CR_LIN_SPEC>
0x00 - Control Register
sourcepub fn usart_mode_mr(&self) -> &Reg<USART_MODE_MR_SPEC>
pub fn usart_mode_mr(&self) -> &Reg<USART_MODE_MR_SPEC>
0x04 - Mode Register
sourcepub fn spi_mode_mr_spi(&self) -> &Reg<SPI_MODE_MR_SPI_SPEC>
pub fn spi_mode_mr_spi(&self) -> &Reg<SPI_MODE_MR_SPI_SPEC>
0x04 - Mode Register
sourcepub fn usart_mode_ier_usart(&self) -> &Reg<USART_MODE_IER_USART_SPEC>
pub fn usart_mode_ier_usart(&self) -> &Reg<USART_MODE_IER_USART_SPEC>
0x08 - Interrupt Enable Register
sourcepub fn spi_slave_mode_ier_spi(&self) -> &Reg<SPI_SLAVE_MODE_IER_SPI_SPEC>
pub fn spi_slave_mode_ier_spi(&self) -> &Reg<SPI_SLAVE_MODE_IER_SPI_SPEC>
0x08 - Interrupt Enable Register
sourcepub fn lin_mode_ier_lin(&self) -> &Reg<LIN_MODE_IER_LIN_SPEC>
pub fn lin_mode_ier_lin(&self) -> &Reg<LIN_MODE_IER_LIN_SPEC>
0x08 - Interrupt Enable Register
sourcepub fn usart_mode_idr_usart(&self) -> &Reg<USART_MODE_IDR_USART_SPEC>
pub fn usart_mode_idr_usart(&self) -> &Reg<USART_MODE_IDR_USART_SPEC>
0x0c - Interrupt Disable Register
sourcepub fn spi_slave_mode_idr_spi(&self) -> &Reg<SPI_SLAVE_MODE_IDR_SPI_SPEC>
pub fn spi_slave_mode_idr_spi(&self) -> &Reg<SPI_SLAVE_MODE_IDR_SPI_SPEC>
0x0c - Interrupt Disable Register
sourcepub fn lin_mode_idr_lin(&self) -> &Reg<LIN_MODE_IDR_LIN_SPEC>
pub fn lin_mode_idr_lin(&self) -> &Reg<LIN_MODE_IDR_LIN_SPEC>
0x0c - Interrupt Disable Register
sourcepub fn usart_mode_imr_usart(&self) -> &Reg<USART_MODE_IMR_USART_SPEC>
pub fn usart_mode_imr_usart(&self) -> &Reg<USART_MODE_IMR_USART_SPEC>
0x10 - Interrupt Mask Register
sourcepub fn spi_slave_mode_mr_usart(&self) -> &Reg<SPI_SLAVE_MODE_MR_USART_SPEC>
pub fn spi_slave_mode_mr_usart(&self) -> &Reg<SPI_SLAVE_MODE_MR_USART_SPEC>
0x10 - Interrupt Mask Register
sourcepub fn lin_mode_imr_lin(&self) -> &Reg<LIN_MODE_IMR_LIN_SPEC>
pub fn lin_mode_imr_lin(&self) -> &Reg<LIN_MODE_IMR_LIN_SPEC>
0x10 - Interrupt Mask Register
sourcepub fn usart_mode_csr_usart(&self) -> &Reg<USART_MODE_CSR_USART_SPEC>
pub fn usart_mode_csr_usart(&self) -> &Reg<USART_MODE_CSR_USART_SPEC>
0x14 - Channel Status Register
sourcepub fn spi_slave_mode_csr_spi(&self) -> &Reg<SPI_SLAVE_MODE_CSR_SPI_SPEC>
pub fn spi_slave_mode_csr_spi(&self) -> &Reg<SPI_SLAVE_MODE_CSR_SPI_SPEC>
0x14 - Channel Status Register
sourcepub fn lin_mode_csr_lin(&self) -> &Reg<LIN_MODE_CSR_LIN_SPEC>
pub fn lin_mode_csr_lin(&self) -> &Reg<LIN_MODE_CSR_LIN_SPEC>
0x14 - Channel Status Register
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more