Struct atsam4s16c_pac::USART1
source · [−]pub struct USART1 { /* private fields */ }
Expand description
Universal Synchronous Asynchronous Receiver Transmitter 1
Implementations
sourceimpl USART1
impl USART1
sourcepub const PTR: *const RegisterBlock = {0x40028000 as *const usart1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40028000 as *const usart1::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Methods from Deref<Target = RegisterBlock>
sourcepub fn spi_mode_cr_spi_mode(&self) -> &Reg<SPI_MODE_CR_SPI_MODE_SPEC>
pub fn spi_mode_cr_spi_mode(&self) -> &Reg<SPI_MODE_CR_SPI_MODE_SPEC>
0x00 - Control Register
sourcepub fn spi_mode_mr_spi_mode(&self) -> &Reg<SPI_MODE_MR_SPI_MODE_SPEC>
pub fn spi_mode_mr_spi_mode(&self) -> &Reg<SPI_MODE_MR_SPI_MODE_SPEC>
0x04 - Mode Register
sourcepub fn spi_mode_ier_spi_mode(&self) -> &Reg<SPI_MODE_IER_SPI_MODE_SPEC>
pub fn spi_mode_ier_spi_mode(&self) -> &Reg<SPI_MODE_IER_SPI_MODE_SPEC>
0x08 - Interrupt Enable Register
sourcepub fn spi_mode_idr_spi_mode(&self) -> &Reg<SPI_MODE_IDR_SPI_MODE_SPEC>
pub fn spi_mode_idr_spi_mode(&self) -> &Reg<SPI_MODE_IDR_SPI_MODE_SPEC>
0x0c - Interrupt Disable Register
sourcepub fn spi_mode_imr_spi_mode(&self) -> &Reg<SPI_MODE_IMR_SPI_MODE_SPEC>
pub fn spi_mode_imr_spi_mode(&self) -> &Reg<SPI_MODE_IMR_SPI_MODE_SPEC>
0x10 - Interrupt Mask Register
sourcepub fn spi_mode_csr_spi_mode(&self) -> &Reg<SPI_MODE_CSR_SPI_MODE_SPEC>
pub fn spi_mode_csr_spi_mode(&self) -> &Reg<SPI_MODE_CSR_SPI_MODE_SPEC>
0x14 - Channel Status Register
Trait Implementations
sourceimpl Deref for USART1
impl Deref for USART1
type Target = RegisterBlock
type Target = RegisterBlock
The resulting type after dereferencing.
impl Send for USART1
Auto Trait Implementations
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