pub struct UART1 { /* private fields */ }
Expand description
UART1
Implementations§
source§impl UART1
impl UART1
sourcepub const PTR: *const RegisterBlock = {0x40038000 as *const uart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40038000 as *const uart0::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 uartrsr(&self) -> &UARTRSR
pub fn uartrsr(&self) -> &UARTRSR
0x04 - Receive Status Register/Error Clear Register, UARTRSR/UARTECR
sourcepub fn uartperiphid0(&self) -> &UARTPERIPHID0
pub fn uartperiphid0(&self) -> &UARTPERIPHID0
0xfe0 - UARTPeriphID0 Register
sourcepub fn uartperiphid1(&self) -> &UARTPERIPHID1
pub fn uartperiphid1(&self) -> &UARTPERIPHID1
0xfe4 - UARTPeriphID1 Register
sourcepub fn uartperiphid2(&self) -> &UARTPERIPHID2
pub fn uartperiphid2(&self) -> &UARTPERIPHID2
0xfe8 - UARTPeriphID2 Register
sourcepub fn uartperiphid3(&self) -> &UARTPERIPHID3
pub fn uartperiphid3(&self) -> &UARTPERIPHID3
0xfec - UARTPeriphID3 Register
sourcepub fn uartpcellid0(&self) -> &UARTPCELLID0
pub fn uartpcellid0(&self) -> &UARTPCELLID0
0xff0 - UARTPCellID0 Register
sourcepub fn uartpcellid1(&self) -> &UARTPCELLID1
pub fn uartpcellid1(&self) -> &UARTPCELLID1
0xff4 - UARTPCellID1 Register
sourcepub fn uartpcellid2(&self) -> &UARTPCELLID2
pub fn uartpcellid2(&self) -> &UARTPCELLID2
0xff8 - UARTPCellID2 Register
sourcepub fn uartpcellid3(&self) -> &UARTPCELLID3
pub fn uartpcellid3(&self) -> &UARTPCELLID3
0xffc - UARTPCellID3 Register