pub struct USART3 { /* private fields */ }Expand description
Universal Synchronous Asynchronous Receiver Transmitter 3
Implementations§
Source§impl USART3
impl USART3
Sourcepub const PTR: *const RegisterBlock = {0x400a4000 as *const usart3::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x400a4000 as *const usart3::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
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn spi_mode_cr_spi_mode(&self) -> &SpiModeCrSpiMode
pub fn spi_mode_cr_spi_mode(&self) -> &SpiModeCrSpiMode
0x00 - Control Register
Sourcepub fn spi_mode_mr_spi_mode(&self) -> &SpiModeMrSpiMode
pub fn spi_mode_mr_spi_mode(&self) -> &SpiModeMrSpiMode
0x04 - Mode Register
Sourcepub fn lin_mode_ier_lin_mode(&self) -> &LinModeIerLinMode
pub fn lin_mode_ier_lin_mode(&self) -> &LinModeIerLinMode
0x08 - Interrupt Enable Register
Sourcepub fn spi_mode_ier_spi_mode(&self) -> &SpiModeIerSpiMode
pub fn spi_mode_ier_spi_mode(&self) -> &SpiModeIerSpiMode
0x08 - Interrupt Enable Register
Sourcepub fn lin_mode_idr_lin_mode(&self) -> &LinModeIdrLinMode
pub fn lin_mode_idr_lin_mode(&self) -> &LinModeIdrLinMode
0x0c - Interrupt Disable Register
Sourcepub fn spi_mode_idr_spi_mode(&self) -> &SpiModeIdrSpiMode
pub fn spi_mode_idr_spi_mode(&self) -> &SpiModeIdrSpiMode
0x0c - Interrupt Disable Register
Sourcepub fn lin_mode_imr_lin_mode(&self) -> &LinModeImrLinMode
pub fn lin_mode_imr_lin_mode(&self) -> &LinModeImrLinMode
0x10 - Interrupt Mask Register
Sourcepub fn spi_mode_imr_spi_mode(&self) -> &SpiModeImrSpiMode
pub fn spi_mode_imr_spi_mode(&self) -> &SpiModeImrSpiMode
0x10 - Interrupt Mask Register
Sourcepub fn lin_mode_csr_lin_mode(&self) -> &LinModeCsrLinMode
pub fn lin_mode_csr_lin_mode(&self) -> &LinModeCsrLinMode
0x14 - Channel Status Register
Sourcepub fn spi_mode_csr_spi_mode(&self) -> &SpiModeCsrSpiMode
pub fn spi_mode_csr_spi_mode(&self) -> &SpiModeCsrSpiMode
0x14 - Channel Status Register