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 = {0x60010000 as *const uart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60010000 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 txbrk_conf(&self) -> &TXBRK_CONF
pub fn txbrk_conf(&self) -> &TXBRK_CONF
0x44 - Tx Break character configuration
Sourcepub fn rs485_conf(&self) -> &RS485_CONF
pub fn rs485_conf(&self) -> &RS485_CONF
0x4c - RS485 mode configuration
Sourcepub fn at_cmd_precnt(&self) -> &AT_CMD_PRECNT
pub fn at_cmd_precnt(&self) -> &AT_CMD_PRECNT
0x50 - Pre-sequence timing configuration
Sourcepub fn at_cmd_postcnt(&self) -> &AT_CMD_POSTCNT
pub fn at_cmd_postcnt(&self) -> &AT_CMD_POSTCNT
0x54 - Post-sequence timing configuration
Sourcepub fn at_cmd_gaptout(&self) -> &AT_CMD_GAPTOUT
pub fn at_cmd_gaptout(&self) -> &AT_CMD_GAPTOUT
0x58 - Timeout configuration
Sourcepub fn at_cmd_char(&self) -> &AT_CMD_CHAR
pub fn at_cmd_char(&self) -> &AT_CMD_CHAR
0x5c - AT escape sequence detection configuration
Sourcepub fn mem_tx_status(&self) -> &MEM_TX_STATUS
pub fn mem_tx_status(&self) -> &MEM_TX_STATUS
0x64 - 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
0x68 - Rx-FIFO write and read offset address.
Sourcepub fn fsm_status(&self) -> &FSM_STATUS
pub fn fsm_status(&self) -> &FSM_STATUS
0x6c - UART transmit and receive status.