pub struct UART1 { /* private fields */ }
Expand description
Universal Asynchronous Receiver Transmitter
Implementations§
Source§impl UART1
impl UART1
Sourcepub const PTR: *const RegisterBlock = {0x2000a100 as *const uart::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2000a100 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 transmit_config(&self) -> &TRANSMIT_CONFIG
pub fn transmit_config(&self) -> &TRANSMIT_CONFIG
0x00 - Transmit configuration register
Sourcepub fn receive_config(&self) -> &RECEIVE_CONFIG
pub fn receive_config(&self) -> &RECEIVE_CONFIG
0x04 - Receive configuration register
Sourcepub fn bit_period(&self) -> &BIT_PERIOD
pub fn bit_period(&self) -> &BIT_PERIOD
0x08 - Bit period control register
Sourcepub fn data_config(&self) -> &DATA_CONFIG
pub fn data_config(&self) -> &DATA_CONFIG
0x0c - Data configuration register
Sourcepub fn transmit_position(&self) -> &TRANSMIT_POSITION
pub fn transmit_position(&self) -> &TRANSMIT_POSITION
0x10 - IR-mode transmit position control
Sourcepub fn receive_position(&self) -> &RECEIVE_POSITION
pub fn receive_position(&self) -> &RECEIVE_POSITION
0x14 - IR-mode receive position control
Sourcepub fn receive_timeout(&self) -> &RECEIVE_TIMEOUT
pub fn receive_timeout(&self) -> &RECEIVE_TIMEOUT
0x18 - Receive Time-Out interrupt control
Sourcepub fn signal_override(&self) -> &SIGNAL_OVERRIDE
pub fn signal_override(&self) -> &SIGNAL_OVERRIDE
0x1c - Manual override of flow control signal
Sourcepub fn interrupt_state(&self) -> &INTERRUPT_STATE
pub fn interrupt_state(&self) -> &INTERRUPT_STATE
0x20 - Interrupt state register
Sourcepub fn interrupt_mask(&self) -> &INTERRUPT_MASK
pub fn interrupt_mask(&self) -> &INTERRUPT_MASK
0x24 - Interrupt mask register
Sourcepub fn interrupt_clear(&self) -> &INTERRUPT_CLEAR
pub fn interrupt_clear(&self) -> &INTERRUPT_CLEAR
0x28 - Clear interrupt register
Sourcepub fn interrupt_enable(&self) -> &INTERRUPT_ENABLE
pub fn interrupt_enable(&self) -> &INTERRUPT_ENABLE
0x2c - Interrupt enable register
Sourcepub fn auto_baudrate(&self) -> &AUTO_BAUDRATE
pub fn auto_baudrate(&self) -> &AUTO_BAUDRATE
0x34 - Auto baudrate detection register
Sourcepub fn pulse_tolerance(&self) -> &PULSE_TOLERANCE
pub fn pulse_tolerance(&self) -> &PULSE_TOLERANCE
0x48 - Pulse width tolerance for auto baudrate
Sourcepub fn rs485_transmit(&self) -> &RS485_TRANSMIT
pub fn rs485_transmit(&self) -> &RS485_TRANSMIT
0x54 - RS-485 mode transmit configuration
Sourcepub fn fifo_config_0(&self) -> &FIFO_CONFIG_0
pub fn fifo_config_0(&self) -> &FIFO_CONFIG_0
0x80 - FIFO configuration register 0
Sourcepub fn fifo_config_1(&self) -> &FIFO_CONFIG_1
pub fn fifo_config_1(&self) -> &FIFO_CONFIG_1
0x84 - FIFO configuration register 1
Sourcepub fn data_write(&self) -> &DATA_WRITE
pub fn data_write(&self) -> &DATA_WRITE
0x88 - FIFO write data register