pub struct UART1 { /* private fields */ }
Expand description
UART (Universal Asynchronous Receiver-Transmitter) Controller 1
Implementations§
source§impl UART1
impl UART1
sourcepub const PTR: *const RegisterBlock = {0x3ff50000 as *const uart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff50000 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 sleep_conf(&self) -> &SLEEP_CONF
pub fn sleep_conf(&self) -> &SLEEP_CONF
0x38 -
sourcepub fn rs485_conf(&self) -> &RS485_CONF
pub fn rs485_conf(&self) -> &RS485_CONF
0x44 -
sourcepub fn at_cmd_precnt(&self) -> &AT_CMD_PRECNT
pub fn at_cmd_precnt(&self) -> &AT_CMD_PRECNT
0x48 -
sourcepub fn at_cmd_postcnt(&self) -> &AT_CMD_POSTCNT
pub fn at_cmd_postcnt(&self) -> &AT_CMD_POSTCNT
0x4c -
sourcepub fn at_cmd_gaptout(&self) -> &AT_CMD_GAPTOUT
pub fn at_cmd_gaptout(&self) -> &AT_CMD_GAPTOUT
0x50 -
sourcepub fn at_cmd_char(&self) -> &AT_CMD_CHAR
pub fn at_cmd_char(&self) -> &AT_CMD_CHAR
0x54 -
sourcepub fn mem_tx_status(&self) -> &MEM_TX_STATUS
pub fn mem_tx_status(&self) -> &MEM_TX_STATUS
0x5c -
sourcepub fn mem_rx_status(&self) -> &MEM_RX_STATUS
pub fn mem_rx_status(&self) -> &MEM_RX_STATUS
0x60 -
sourcepub fn mem_cnt_status(&self) -> &MEM_CNT_STATUS
pub fn mem_cnt_status(&self) -> &MEM_CNT_STATUS
0x64 -
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UART1
impl RefUnwindSafe for UART1
impl !Sync for UART1
impl Unpin for UART1
impl UnwindSafe for UART1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more