pub struct UART2 { /* private fields */ }Expand description
Universal Asynchronous Receiver Transmitter
Implementations§
Source§impl UART2
impl UART2
Sourcepub const PTR: *const RegisterBlock = {0x2500800 as *const uart::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2500800 as *const uart::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 dma_req_en(&self) -> &DMA_REQ_EN
pub fn dma_req_en(&self) -> &DMA_REQ_EN
0x8c - UART DMA Request Enable Register
Sourcepub fn rxdma_ctrl(&self) -> &RXDMA_CTRL
pub fn rxdma_ctrl(&self) -> &RXDMA_CTRL
0x100 - UART RXDMA Control Register
Sourcepub fn rxdma_saddrl(&self) -> &RXDMA_SADDRL
pub fn rxdma_saddrl(&self) -> &RXDMA_SADDRL
0x110 - UART RXDMA Buffer Start Address Low Register
Sourcepub fn rxdma_saddrh(&self) -> &RXDMA_SADDRH
pub fn rxdma_saddrh(&self) -> &RXDMA_SADDRH
0x114 - UART RXDMA Buffer Start Address High Register
Sourcepub fn rxdma_waddrl(&self) -> &RXDMA_WADDRL
pub fn rxdma_waddrl(&self) -> &RXDMA_WADDRL
0x128 - UART RXDMA Write Address Low Register
Sourcepub fn rxdma_waddrh(&self) -> &RXDMA_WADDRH
pub fn rxdma_waddrh(&self) -> &RXDMA_WADDRH
0x12c - UART RXDMA Write Address High Register
Sourcepub fn rxdma_raddrl(&self) -> &RXDMA_RADDRL
pub fn rxdma_raddrl(&self) -> &RXDMA_RADDRL
0x130 - UART RXDMA Read Address Low Register
Sourcepub fn rxdma_raddrh(&self) -> &RXDMA_RADDRH
pub fn rxdma_raddrh(&self) -> &RXDMA_RADDRH
0x134 - UART RXDMA Read Address High Register
Sourcepub fn rxdma_dcnt(&self) -> &RXDMA_DCNT
pub fn rxdma_dcnt(&self) -> &RXDMA_DCNT
0x138 - UART RXDMA Data Count Register