bl602_pac/
uart.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - utx_config."]
5    pub utx_config: UTX_CONFIG,
6    #[doc = "0x04 - urx_config."]
7    pub urx_config: URX_CONFIG,
8    #[doc = "0x08 - uart_bit_prd."]
9    pub uart_bit_prd: UART_BIT_PRD,
10    #[doc = "0x0c - data_config."]
11    pub data_config: DATA_CONFIG,
12    #[doc = "0x10 - utx_ir_position."]
13    pub utx_ir_position: UTX_IR_POSITION,
14    #[doc = "0x14 - urx_ir_position."]
15    pub urx_ir_position: URX_IR_POSITION,
16    #[doc = "0x18 - urx_rto_timer."]
17    pub urx_rto_timer: URX_RTO_TIMER,
18    _reserved7: [u8; 0x04],
19    #[doc = "0x20 - UART interrupt status"]
20    pub uart_int_sts: UART_INT_STS,
21    #[doc = "0x24 - UART interrupt mask"]
22    pub uart_int_mask: UART_INT_MASK,
23    #[doc = "0x28 - UART interrupt clear"]
24    pub uart_int_clear: UART_INT_CLEAR,
25    #[doc = "0x2c - UART interrupt enable"]
26    pub uart_int_en: UART_INT_EN,
27    #[doc = "0x30 - uart_status."]
28    pub uart_status: UART_STATUS,
29    #[doc = "0x34 - sts_urx_abr_prd."]
30    pub sts_urx_abr_prd: STS_URX_ABR_PRD,
31    _reserved13: [u8; 0x48],
32    #[doc = "0x80 - uart_fifo_config_0."]
33    pub uart_fifo_config_0: UART_FIFO_CONFIG_0,
34    #[doc = "0x84 - uart_fifo_config_1."]
35    pub uart_fifo_config_1: UART_FIFO_CONFIG_1,
36    #[doc = "0x88 - uart_fifo_wdata."]
37    pub uart_fifo_wdata: UART_FIFO_WDATA,
38    #[doc = "0x8c - uart_fifo_rdata."]
39    pub uart_fifo_rdata: UART_FIFO_RDATA,
40}
41#[doc = "utx_config (rw) register accessor: an alias for `Reg<UTX_CONFIG_SPEC>`"]
42pub type UTX_CONFIG = crate::Reg<utx_config::UTX_CONFIG_SPEC>;
43#[doc = "utx_config."]
44pub mod utx_config;
45#[doc = "urx_config (rw) register accessor: an alias for `Reg<URX_CONFIG_SPEC>`"]
46pub type URX_CONFIG = crate::Reg<urx_config::URX_CONFIG_SPEC>;
47#[doc = "urx_config."]
48pub mod urx_config;
49#[doc = "uart_bit_prd (rw) register accessor: an alias for `Reg<UART_BIT_PRD_SPEC>`"]
50pub type UART_BIT_PRD = crate::Reg<uart_bit_prd::UART_BIT_PRD_SPEC>;
51#[doc = "uart_bit_prd."]
52pub mod uart_bit_prd;
53#[doc = "data_config (rw) register accessor: an alias for `Reg<DATA_CONFIG_SPEC>`"]
54pub type DATA_CONFIG = crate::Reg<data_config::DATA_CONFIG_SPEC>;
55#[doc = "data_config."]
56pub mod data_config;
57#[doc = "utx_ir_position (rw) register accessor: an alias for `Reg<UTX_IR_POSITION_SPEC>`"]
58pub type UTX_IR_POSITION = crate::Reg<utx_ir_position::UTX_IR_POSITION_SPEC>;
59#[doc = "utx_ir_position."]
60pub mod utx_ir_position;
61#[doc = "urx_ir_position (rw) register accessor: an alias for `Reg<URX_IR_POSITION_SPEC>`"]
62pub type URX_IR_POSITION = crate::Reg<urx_ir_position::URX_IR_POSITION_SPEC>;
63#[doc = "urx_ir_position."]
64pub mod urx_ir_position;
65#[doc = "urx_rto_timer (rw) register accessor: an alias for `Reg<URX_RTO_TIMER_SPEC>`"]
66pub type URX_RTO_TIMER = crate::Reg<urx_rto_timer::URX_RTO_TIMER_SPEC>;
67#[doc = "urx_rto_timer."]
68pub mod urx_rto_timer;
69#[doc = "uart_int_sts (r) register accessor: an alias for `Reg<UART_INT_STS_SPEC>`"]
70pub type UART_INT_STS = crate::Reg<uart_int_sts::UART_INT_STS_SPEC>;
71#[doc = "UART interrupt status"]
72pub mod uart_int_sts;
73#[doc = "uart_int_mask (rw) register accessor: an alias for `Reg<UART_INT_MASK_SPEC>`"]
74pub type UART_INT_MASK = crate::Reg<uart_int_mask::UART_INT_MASK_SPEC>;
75#[doc = "UART interrupt mask"]
76pub mod uart_int_mask;
77#[doc = "uart_int_clear (rw) register accessor: an alias for `Reg<UART_INT_CLEAR_SPEC>`"]
78pub type UART_INT_CLEAR = crate::Reg<uart_int_clear::UART_INT_CLEAR_SPEC>;
79#[doc = "UART interrupt clear"]
80pub mod uart_int_clear;
81#[doc = "uart_int_en (rw) register accessor: an alias for `Reg<UART_INT_EN_SPEC>`"]
82pub type UART_INT_EN = crate::Reg<uart_int_en::UART_INT_EN_SPEC>;
83#[doc = "UART interrupt enable"]
84pub mod uart_int_en;
85#[doc = "uart_status (r) register accessor: an alias for `Reg<UART_STATUS_SPEC>`"]
86pub type UART_STATUS = crate::Reg<uart_status::UART_STATUS_SPEC>;
87#[doc = "uart_status."]
88pub mod uart_status;
89#[doc = "sts_urx_abr_prd (r) register accessor: an alias for `Reg<STS_URX_ABR_PRD_SPEC>`"]
90pub type STS_URX_ABR_PRD = crate::Reg<sts_urx_abr_prd::STS_URX_ABR_PRD_SPEC>;
91#[doc = "sts_urx_abr_prd."]
92pub mod sts_urx_abr_prd;
93#[doc = "uart_fifo_config_0 (rw) register accessor: an alias for `Reg<UART_FIFO_CONFIG_0_SPEC>`"]
94pub type UART_FIFO_CONFIG_0 = crate::Reg<uart_fifo_config_0::UART_FIFO_CONFIG_0_SPEC>;
95#[doc = "uart_fifo_config_0."]
96pub mod uart_fifo_config_0;
97#[doc = "uart_fifo_config_1 (rw) register accessor: an alias for `Reg<UART_FIFO_CONFIG_1_SPEC>`"]
98pub type UART_FIFO_CONFIG_1 = crate::Reg<uart_fifo_config_1::UART_FIFO_CONFIG_1_SPEC>;
99#[doc = "uart_fifo_config_1."]
100pub mod uart_fifo_config_1;
101#[doc = "uart_fifo_wdata (w) register accessor: an alias for `Reg<UART_FIFO_WDATA_SPEC>`"]
102pub type UART_FIFO_WDATA = crate::Reg<uart_fifo_wdata::UART_FIFO_WDATA_SPEC>;
103#[doc = "uart_fifo_wdata."]
104pub mod uart_fifo_wdata;
105#[doc = "uart_fifo_rdata (r) register accessor: an alias for `Reg<UART_FIFO_RDATA_SPEC>`"]
106pub type UART_FIFO_RDATA = crate::Reg<uart_fifo_rdata::UART_FIFO_RDATA_SPEC>;
107#[doc = "uart_fifo_rdata."]
108pub mod uart_fifo_rdata;