pub struct UART0 { /* private fields */ }
Expand description
UART (Universal Asynchronous Receiver-Transmitter) Controller 0
Implementations§
Source§impl UART0
impl UART0
Sourcepub const PTR: *const RegisterBlock = {0x3f400000 as *const uart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f400000 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 - Sleep mode configuration
Sourcepub fn swfc_conf0(&self) -> &SWFC_CONF0
pub fn swfc_conf0(&self) -> &SWFC_CONF0
0x3c - Software flow control character configuration
Sourcepub fn swfc_conf1(&self) -> &SWFC_CONF1
pub fn swfc_conf1(&self) -> &SWFC_CONF1
0x40 - Software flow-control character configuration
Sourcepub fn rs485_conf(&self) -> &RS485_CONF
pub fn rs485_conf(&self) -> &RS485_CONF
0x48 - RS485 mode configuration
Sourcepub fn at_cmd_precnt(&self) -> &AT_CMD_PRECNT
pub fn at_cmd_precnt(&self) -> &AT_CMD_PRECNT
0x4c - Pre-sequence timing configuration
Sourcepub fn at_cmd_postcnt(&self) -> &AT_CMD_POSTCNT
pub fn at_cmd_postcnt(&self) -> &AT_CMD_POSTCNT
0x50 - Post-sequence timing configuration
Sourcepub fn at_cmd_gaptout(&self) -> &AT_CMD_GAPTOUT
pub fn at_cmd_gaptout(&self) -> &AT_CMD_GAPTOUT
0x54 - Timeout configuration
Sourcepub fn at_cmd_char(&self) -> &AT_CMD_CHAR
pub fn at_cmd_char(&self) -> &AT_CMD_CHAR
0x58 - AT escape sequence selection configuration
Sourcepub fn mem_tx_status(&self) -> &MEM_TX_STATUS
pub fn mem_tx_status(&self) -> &MEM_TX_STATUS
0x60 - TX FIFO write and read offset address
Sourcepub fn mem_rx_status(&self) -> &MEM_RX_STATUS
pub fn mem_rx_status(&self) -> &MEM_RX_STATUS
0x64 - RX FIFO write and read offset address
Sourcepub fn fsm_status(&self) -> &FSM_STATUS
pub fn fsm_status(&self) -> &FSM_STATUS
0x68 - UART transmitter and receiver status