#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Start UART receiver"] pub tasks_startrx: TASKS_STARTRX, #[doc = "0x04 - Stop UART receiver"] pub tasks_stoprx: TASKS_STOPRX, #[doc = "0x08 - Start UART transmitter"] pub tasks_starttx: TASKS_STARTTX, #[doc = "0x0c - Stop UART transmitter"] pub tasks_stoptx: TASKS_STOPTX, _reserved4: [u8; 0x0c], #[doc = "0x1c - Suspend UART"] pub tasks_suspend: TASKS_SUSPEND, _reserved5: [u8; 0xe0], #[doc = "0x100 - CTS is activated (set low). Clear To Send."] pub events_cts: EVENTS_CTS, #[doc = "0x104 - CTS is deactivated (set high). Not Clear To Send."] pub events_ncts: EVENTS_NCTS, #[doc = "0x108 - Data received in RXD"] pub events_rxdrdy: EVENTS_RXDRDY, _reserved8: [u8; 0x10], #[doc = "0x11c - Data sent from TXD"] pub events_txdrdy: EVENTS_TXDRDY, _reserved9: [u8; 0x04], #[doc = "0x124 - Error detected"] pub events_error: EVENTS_ERROR, _reserved10: [u8; 0x1c], #[doc = "0x144 - Receiver timeout"] pub events_rxto: EVENTS_RXTO, _reserved11: [u8; 0xb8], #[doc = "0x200 - Shortcut register"] pub shorts: SHORTS, _reserved12: [u8; 0x0100], #[doc = "0x304 - Enable interrupt"] pub intenset: INTENSET, #[doc = "0x308 - Disable interrupt"] pub intenclr: INTENCLR, _reserved14: [u8; 0x0174], #[doc = "0x480 - Error source"] pub errorsrc: ERRORSRC, _reserved15: [u8; 0x7c], #[doc = "0x500 - Enable UART"] pub enable: ENABLE, _reserved16: [u8; 0x04], #[doc = "0x508 - Pin select for RTS"] pub pselrts: PSELRTS, #[doc = "0x50c - Pin select for TXD"] pub pseltxd: PSELTXD, #[doc = "0x510 - Pin select for CTS"] pub pselcts: PSELCTS, #[doc = "0x514 - Pin select for RXD"] pub pselrxd: PSELRXD, #[doc = "0x518 - RXD register"] pub rxd: RXD, #[doc = "0x51c - TXD register"] pub txd: TXD, _reserved22: [u8; 0x04], #[doc = "0x524 - Baud rate"] pub baudrate: BAUDRATE, _reserved23: [u8; 0x44], #[doc = "0x56c - Configuration of parity and hardware flow control"] pub config: CONFIG, } #[doc = "TASKS_STARTRX (w) register accessor: an alias for `Reg`"] pub type TASKS_STARTRX = crate::Reg; #[doc = "Start UART receiver"] pub mod tasks_startrx; #[doc = "TASKS_STOPRX (w) register accessor: an alias for `Reg`"] pub type TASKS_STOPRX = crate::Reg; #[doc = "Stop UART receiver"] pub mod tasks_stoprx; #[doc = "TASKS_STARTTX (w) register accessor: an alias for `Reg`"] pub type TASKS_STARTTX = crate::Reg; #[doc = "Start UART transmitter"] pub mod tasks_starttx; #[doc = "TASKS_STOPTX (w) register accessor: an alias for `Reg`"] pub type TASKS_STOPTX = crate::Reg; #[doc = "Stop UART transmitter"] pub mod tasks_stoptx; #[doc = "TASKS_SUSPEND (w) register accessor: an alias for `Reg`"] pub type TASKS_SUSPEND = crate::Reg; #[doc = "Suspend UART"] pub mod tasks_suspend; #[doc = "EVENTS_CTS (rw) register accessor: an alias for `Reg`"] pub type EVENTS_CTS = crate::Reg; #[doc = "CTS is activated (set low). Clear To Send."] pub mod events_cts; #[doc = "EVENTS_NCTS (rw) register accessor: an alias for `Reg`"] pub type EVENTS_NCTS = crate::Reg; #[doc = "CTS is deactivated (set high). Not Clear To Send."] pub mod events_ncts; #[doc = "EVENTS_RXDRDY (rw) register accessor: an alias for `Reg`"] pub type EVENTS_RXDRDY = crate::Reg; #[doc = "Data received in RXD"] pub mod events_rxdrdy; #[doc = "EVENTS_TXDRDY (rw) register accessor: an alias for `Reg`"] pub type EVENTS_TXDRDY = crate::Reg; #[doc = "Data sent from TXD"] pub mod events_txdrdy; #[doc = "EVENTS_ERROR (rw) register accessor: an alias for `Reg`"] pub type EVENTS_ERROR = crate::Reg; #[doc = "Error detected"] pub mod events_error; #[doc = "EVENTS_RXTO (rw) register accessor: an alias for `Reg`"] pub type EVENTS_RXTO = crate::Reg; #[doc = "Receiver timeout"] pub mod events_rxto; #[doc = "SHORTS (rw) register accessor: an alias for `Reg`"] pub type SHORTS = crate::Reg; #[doc = "Shortcut register"] pub mod shorts; #[doc = "INTENSET (rw) register accessor: an alias for `Reg`"] pub type INTENSET = crate::Reg; #[doc = "Enable interrupt"] pub mod intenset; #[doc = "INTENCLR (rw) register accessor: an alias for `Reg`"] pub type INTENCLR = crate::Reg; #[doc = "Disable interrupt"] pub mod intenclr; #[doc = "ERRORSRC (rw) register accessor: an alias for `Reg`"] pub type ERRORSRC = crate::Reg; #[doc = "Error source"] pub mod errorsrc; #[doc = "ENABLE (rw) register accessor: an alias for `Reg`"] pub type ENABLE = crate::Reg; #[doc = "Enable UART"] pub mod enable; #[doc = "PSELRTS (rw) register accessor: an alias for `Reg`"] pub type PSELRTS = crate::Reg; #[doc = "Pin select for RTS"] pub mod pselrts; #[doc = "PSELTXD (rw) register accessor: an alias for `Reg`"] pub type PSELTXD = crate::Reg; #[doc = "Pin select for TXD"] pub mod pseltxd; #[doc = "PSELCTS (rw) register accessor: an alias for `Reg`"] pub type PSELCTS = crate::Reg; #[doc = "Pin select for CTS"] pub mod pselcts; #[doc = "PSELRXD (rw) register accessor: an alias for `Reg`"] pub type PSELRXD = crate::Reg; #[doc = "Pin select for RXD"] pub mod pselrxd; #[doc = "RXD (r) register accessor: an alias for `Reg`"] pub type RXD = crate::Reg; #[doc = "RXD register"] pub mod rxd; #[doc = "TXD (w) register accessor: an alias for `Reg`"] pub type TXD = crate::Reg; #[doc = "TXD register"] pub mod txd; #[doc = "BAUDRATE (rw) register accessor: an alias for `Reg`"] pub type BAUDRATE = crate::Reg; #[doc = "Baud rate"] pub mod baudrate; #[doc = "CONFIG (rw) register accessor: an alias for `Reg`"] pub type CONFIG = crate::Reg; #[doc = "Configuration of parity and hardware flow control"] pub mod config;