Struct nrf52840_pac::uart0::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {Show 21 fields
pub tasks_startrx: TASKS_STARTRX,
pub tasks_stoprx: TASKS_STOPRX,
pub tasks_starttx: TASKS_STARTTX,
pub tasks_stoptx: TASKS_STOPTX,
pub tasks_suspend: TASKS_SUSPEND,
pub events_cts: EVENTS_CTS,
pub events_ncts: EVENTS_NCTS,
pub events_rxdrdy: EVENTS_RXDRDY,
pub events_txdrdy: EVENTS_TXDRDY,
pub events_error: EVENTS_ERROR,
pub events_rxto: EVENTS_RXTO,
pub shorts: SHORTS,
pub intenset: INTENSET,
pub intenclr: INTENCLR,
pub errorsrc: ERRORSRC,
pub enable: ENABLE,
pub psel: PSEL,
pub rxd: RXD,
pub txd: TXD,
pub baudrate: BAUDRATE,
pub config: CONFIG,
/* private fields */
}
Expand description
Register block
Fields§
§tasks_startrx: TASKS_STARTRX
0x00 - Start UART receiver
tasks_stoprx: TASKS_STOPRX
0x04 - Stop UART receiver
tasks_starttx: TASKS_STARTTX
0x08 - Start UART transmitter
tasks_stoptx: TASKS_STOPTX
0x0c - Stop UART transmitter
tasks_suspend: TASKS_SUSPEND
0x1c - Suspend UART
events_cts: EVENTS_CTS
0x100 - CTS is activated (set low). Clear To Send.
events_ncts: EVENTS_NCTS
0x104 - CTS is deactivated (set high). Not Clear To Send.
events_rxdrdy: EVENTS_RXDRDY
0x108 - Data received in RXD
events_txdrdy: EVENTS_TXDRDY
0x11c - Data sent from TXD
events_error: EVENTS_ERROR
0x124 - Error detected
events_rxto: EVENTS_RXTO
0x144 - Receiver timeout
shorts: SHORTS
0x200 - Shortcut register
intenset: INTENSET
0x304 - Enable interrupt
intenclr: INTENCLR
0x308 - Disable interrupt
errorsrc: ERRORSRC
0x480 - Error source
enable: ENABLE
0x500 - Enable UART
psel: PSEL
0x508..0x518 - Unspecified
rxd: RXD
0x518 - RXD register
txd: TXD
0x51c - TXD register
baudrate: BAUDRATE
0x524 - Baud rate. Accuracy depends on the HFCLK source selected.
config: CONFIG
0x56c - Configuration of parity and hardware flow control
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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