1#[doc = r"Register block"]
6#[repr(C)]
7pub struct RegisterBlock {
8 #[doc = "0x00 - Receive and Transmit Data Value"]
9 pub data: DATA,
10 _reserved1: [u8; 0x03],
11 #[doc = "0x04 - UART Status Register"]
12 pub state: STATE,
13 #[doc = "0x08 - UART Control Register"]
14 pub ctrl: CTRL,
15 _reserved_3_intclear: [u8; 0x04],
16 #[doc = "0x10 - Baudrate Divider"]
17 pub bauddiv: BAUDDIV,
18}
19impl RegisterBlock {
20 #[doc = "0x0c - UART Interrupt CLEAR Register"]
21 #[inline(always)]
22 pub fn intclear(&self) -> &INTCLEAR {
23 unsafe { &*(((self as *const Self) as *const u8).add(12usize) as *const INTCLEAR) }
24 }
25 #[doc = "0x0c - UART Interrupt Status Register"]
26 #[inline(always)]
27 pub fn intstatus(&self) -> &INTSTATUS {
28 unsafe { &*(((self as *const Self) as *const u8).add(12usize) as *const INTSTATUS) }
29 }
30}
31#[doc = "DATA (rw) register accessor: an alias for `Reg<DATA_SPEC>`"]
32pub type DATA = crate::Reg<data::DATA_SPEC>;
33#[doc = "Receive and Transmit Data Value"]
34pub mod data;
35#[doc = "STATE (rw) register accessor: an alias for `Reg<STATE_SPEC>`"]
36pub type STATE = crate::Reg<state::STATE_SPEC>;
37#[doc = "UART Status Register"]
38pub mod state;
39#[doc = "CTRL (rw) register accessor: an alias for `Reg<CTRL_SPEC>`"]
40pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
41#[doc = "UART Control Register"]
42pub mod ctrl;
43#[doc = "INTSTATUS (r) register accessor: an alias for `Reg<INTSTATUS_SPEC>`"]
44pub type INTSTATUS = crate::Reg<intstatus::INTSTATUS_SPEC>;
45#[doc = "UART Interrupt Status Register"]
46pub mod intstatus;
47#[doc = "INTCLEAR (w) register accessor: an alias for `Reg<INTCLEAR_SPEC>`"]
48pub type INTCLEAR = crate::Reg<intclear::INTCLEAR_SPEC>;
49#[doc = "UART Interrupt CLEAR Register"]
50pub mod intclear;
51#[doc = "BAUDDIV (rw) register accessor: an alias for `Reg<BAUDDIV_SPEC>`"]
52pub type BAUDDIV = crate::Reg<bauddiv::BAUDDIV_SPEC>;
53#[doc = "Baudrate Divider"]
54pub mod bauddiv;