efm32wg230_pac/
timer2.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control Register"]
5    pub ctrl: crate::Reg<ctrl::CTRL_SPEC>,
6    #[doc = "0x04 - Command Register"]
7    pub cmd: crate::Reg<cmd::CMD_SPEC>,
8    #[doc = "0x08 - Status Register"]
9    pub status: crate::Reg<status::STATUS_SPEC>,
10    #[doc = "0x0c - Interrupt Enable Register"]
11    pub ien: crate::Reg<ien::IEN_SPEC>,
12    #[doc = "0x10 - Interrupt Flag Register"]
13    pub if_: crate::Reg<if_::IF_SPEC>,
14    #[doc = "0x14 - Interrupt Flag Set Register"]
15    pub ifs: crate::Reg<ifs::IFS_SPEC>,
16    #[doc = "0x18 - Interrupt Flag Clear Register"]
17    pub ifc: crate::Reg<ifc::IFC_SPEC>,
18    #[doc = "0x1c - Counter Top Value Register"]
19    pub top: crate::Reg<top::TOP_SPEC>,
20    #[doc = "0x20 - Counter Top Value Buffer Register"]
21    pub topb: crate::Reg<topb::TOPB_SPEC>,
22    #[doc = "0x24 - Counter Value Register"]
23    pub cnt: crate::Reg<cnt::CNT_SPEC>,
24    #[doc = "0x28 - I/O Routing Register"]
25    pub route: crate::Reg<route::ROUTE_SPEC>,
26    _reserved11: [u8; 0x04],
27    #[doc = "0x30 - CC Channel Control Register"]
28    pub cc0_ctrl: crate::Reg<cc0_ctrl::CC0_CTRL_SPEC>,
29    #[doc = "0x34 - CC Channel Value Register"]
30    pub cc0_ccv: crate::Reg<cc0_ccv::CC0_CCV_SPEC>,
31    #[doc = "0x38 - CC Channel Value Peek Register"]
32    pub cc0_ccvp: crate::Reg<cc0_ccvp::CC0_CCVP_SPEC>,
33    #[doc = "0x3c - CC Channel Buffer Register"]
34    pub cc0_ccvb: crate::Reg<cc0_ccvb::CC0_CCVB_SPEC>,
35    #[doc = "0x40 - CC Channel Control Register"]
36    pub cc1_ctrl: crate::Reg<cc1_ctrl::CC1_CTRL_SPEC>,
37    #[doc = "0x44 - CC Channel Value Register"]
38    pub cc1_ccv: crate::Reg<cc1_ccv::CC1_CCV_SPEC>,
39    #[doc = "0x48 - CC Channel Value Peek Register"]
40    pub cc1_ccvp: crate::Reg<cc1_ccvp::CC1_CCVP_SPEC>,
41    #[doc = "0x4c - CC Channel Buffer Register"]
42    pub cc1_ccvb: crate::Reg<cc1_ccvb::CC1_CCVB_SPEC>,
43    #[doc = "0x50 - CC Channel Control Register"]
44    pub cc2_ctrl: crate::Reg<cc2_ctrl::CC2_CTRL_SPEC>,
45    #[doc = "0x54 - CC Channel Value Register"]
46    pub cc2_ccv: crate::Reg<cc2_ccv::CC2_CCV_SPEC>,
47    #[doc = "0x58 - CC Channel Value Peek Register"]
48    pub cc2_ccvp: crate::Reg<cc2_ccvp::CC2_CCVP_SPEC>,
49    #[doc = "0x5c - CC Channel Buffer Register"]
50    pub cc2_ccvb: crate::Reg<cc2_ccvb::CC2_CCVB_SPEC>,
51    _reserved23: [u8; 0x10],
52    #[doc = "0x70 - DTI Control Register"]
53    pub dtctrl: crate::Reg<dtctrl::DTCTRL_SPEC>,
54    #[doc = "0x74 - DTI Time Control Register"]
55    pub dttime: crate::Reg<dttime::DTTIME_SPEC>,
56    #[doc = "0x78 - DTI Fault Configuration Register"]
57    pub dtfc: crate::Reg<dtfc::DTFC_SPEC>,
58    #[doc = "0x7c - DTI Output Generation Enable Register"]
59    pub dtogen: crate::Reg<dtogen::DTOGEN_SPEC>,
60    #[doc = "0x80 - DTI Fault Register"]
61    pub dtfault: crate::Reg<dtfault::DTFAULT_SPEC>,
62    #[doc = "0x84 - DTI Fault Clear Register"]
63    pub dtfaultc: crate::Reg<dtfaultc::DTFAULTC_SPEC>,
64    #[doc = "0x88 - DTI Configuration Lock Register"]
65    pub dtlock: crate::Reg<dtlock::DTLOCK_SPEC>,
66}
67#[doc = "CTRL register accessor: an alias for `Reg<CTRL_SPEC>`"]
68pub type CTRL = crate::Reg<ctrl::CTRL_SPEC>;
69#[doc = "Control Register"]
70pub mod ctrl;
71#[doc = "CMD register accessor: an alias for `Reg<CMD_SPEC>`"]
72pub type CMD = crate::Reg<cmd::CMD_SPEC>;
73#[doc = "Command Register"]
74pub mod cmd;
75#[doc = "STATUS register accessor: an alias for `Reg<STATUS_SPEC>`"]
76pub type STATUS = crate::Reg<status::STATUS_SPEC>;
77#[doc = "Status Register"]
78pub mod status;
79#[doc = "IEN register accessor: an alias for `Reg<IEN_SPEC>`"]
80pub type IEN = crate::Reg<ien::IEN_SPEC>;
81#[doc = "Interrupt Enable Register"]
82pub mod ien;
83#[doc = "IF register accessor: an alias for `Reg<IF_SPEC>`"]
84pub type IF = crate::Reg<if_::IF_SPEC>;
85#[doc = "Interrupt Flag Register"]
86pub mod if_;
87#[doc = "IFS register accessor: an alias for `Reg<IFS_SPEC>`"]
88pub type IFS = crate::Reg<ifs::IFS_SPEC>;
89#[doc = "Interrupt Flag Set Register"]
90pub mod ifs;
91#[doc = "IFC register accessor: an alias for `Reg<IFC_SPEC>`"]
92pub type IFC = crate::Reg<ifc::IFC_SPEC>;
93#[doc = "Interrupt Flag Clear Register"]
94pub mod ifc;
95#[doc = "TOP register accessor: an alias for `Reg<TOP_SPEC>`"]
96pub type TOP = crate::Reg<top::TOP_SPEC>;
97#[doc = "Counter Top Value Register"]
98pub mod top;
99#[doc = "TOPB register accessor: an alias for `Reg<TOPB_SPEC>`"]
100pub type TOPB = crate::Reg<topb::TOPB_SPEC>;
101#[doc = "Counter Top Value Buffer Register"]
102pub mod topb;
103#[doc = "CNT register accessor: an alias for `Reg<CNT_SPEC>`"]
104pub type CNT = crate::Reg<cnt::CNT_SPEC>;
105#[doc = "Counter Value Register"]
106pub mod cnt;
107#[doc = "ROUTE register accessor: an alias for `Reg<ROUTE_SPEC>`"]
108pub type ROUTE = crate::Reg<route::ROUTE_SPEC>;
109#[doc = "I/O Routing Register"]
110pub mod route;
111#[doc = "CC0_CTRL register accessor: an alias for `Reg<CC0_CTRL_SPEC>`"]
112pub type CC0_CTRL = crate::Reg<cc0_ctrl::CC0_CTRL_SPEC>;
113#[doc = "CC Channel Control Register"]
114pub mod cc0_ctrl;
115#[doc = "CC0_CCV register accessor: an alias for `Reg<CC0_CCV_SPEC>`"]
116pub type CC0_CCV = crate::Reg<cc0_ccv::CC0_CCV_SPEC>;
117#[doc = "CC Channel Value Register"]
118pub mod cc0_ccv;
119#[doc = "CC0_CCVP register accessor: an alias for `Reg<CC0_CCVP_SPEC>`"]
120pub type CC0_CCVP = crate::Reg<cc0_ccvp::CC0_CCVP_SPEC>;
121#[doc = "CC Channel Value Peek Register"]
122pub mod cc0_ccvp;
123#[doc = "CC0_CCVB register accessor: an alias for `Reg<CC0_CCVB_SPEC>`"]
124pub type CC0_CCVB = crate::Reg<cc0_ccvb::CC0_CCVB_SPEC>;
125#[doc = "CC Channel Buffer Register"]
126pub mod cc0_ccvb;
127#[doc = "CC1_CTRL register accessor: an alias for `Reg<CC1_CTRL_SPEC>`"]
128pub type CC1_CTRL = crate::Reg<cc1_ctrl::CC1_CTRL_SPEC>;
129#[doc = "CC Channel Control Register"]
130pub mod cc1_ctrl;
131#[doc = "CC1_CCV register accessor: an alias for `Reg<CC1_CCV_SPEC>`"]
132pub type CC1_CCV = crate::Reg<cc1_ccv::CC1_CCV_SPEC>;
133#[doc = "CC Channel Value Register"]
134pub mod cc1_ccv;
135#[doc = "CC1_CCVP register accessor: an alias for `Reg<CC1_CCVP_SPEC>`"]
136pub type CC1_CCVP = crate::Reg<cc1_ccvp::CC1_CCVP_SPEC>;
137#[doc = "CC Channel Value Peek Register"]
138pub mod cc1_ccvp;
139#[doc = "CC1_CCVB register accessor: an alias for `Reg<CC1_CCVB_SPEC>`"]
140pub type CC1_CCVB = crate::Reg<cc1_ccvb::CC1_CCVB_SPEC>;
141#[doc = "CC Channel Buffer Register"]
142pub mod cc1_ccvb;
143#[doc = "CC2_CTRL register accessor: an alias for `Reg<CC2_CTRL_SPEC>`"]
144pub type CC2_CTRL = crate::Reg<cc2_ctrl::CC2_CTRL_SPEC>;
145#[doc = "CC Channel Control Register"]
146pub mod cc2_ctrl;
147#[doc = "CC2_CCV register accessor: an alias for `Reg<CC2_CCV_SPEC>`"]
148pub type CC2_CCV = crate::Reg<cc2_ccv::CC2_CCV_SPEC>;
149#[doc = "CC Channel Value Register"]
150pub mod cc2_ccv;
151#[doc = "CC2_CCVP register accessor: an alias for `Reg<CC2_CCVP_SPEC>`"]
152pub type CC2_CCVP = crate::Reg<cc2_ccvp::CC2_CCVP_SPEC>;
153#[doc = "CC Channel Value Peek Register"]
154pub mod cc2_ccvp;
155#[doc = "CC2_CCVB register accessor: an alias for `Reg<CC2_CCVB_SPEC>`"]
156pub type CC2_CCVB = crate::Reg<cc2_ccvb::CC2_CCVB_SPEC>;
157#[doc = "CC Channel Buffer Register"]
158pub mod cc2_ccvb;
159#[doc = "DTCTRL register accessor: an alias for `Reg<DTCTRL_SPEC>`"]
160pub type DTCTRL = crate::Reg<dtctrl::DTCTRL_SPEC>;
161#[doc = "DTI Control Register"]
162pub mod dtctrl;
163#[doc = "DTTIME register accessor: an alias for `Reg<DTTIME_SPEC>`"]
164pub type DTTIME = crate::Reg<dttime::DTTIME_SPEC>;
165#[doc = "DTI Time Control Register"]
166pub mod dttime;
167#[doc = "DTFC register accessor: an alias for `Reg<DTFC_SPEC>`"]
168pub type DTFC = crate::Reg<dtfc::DTFC_SPEC>;
169#[doc = "DTI Fault Configuration Register"]
170pub mod dtfc;
171#[doc = "DTOGEN register accessor: an alias for `Reg<DTOGEN_SPEC>`"]
172pub type DTOGEN = crate::Reg<dtogen::DTOGEN_SPEC>;
173#[doc = "DTI Output Generation Enable Register"]
174pub mod dtogen;
175#[doc = "DTFAULT register accessor: an alias for `Reg<DTFAULT_SPEC>`"]
176pub type DTFAULT = crate::Reg<dtfault::DTFAULT_SPEC>;
177#[doc = "DTI Fault Register"]
178pub mod dtfault;
179#[doc = "DTFAULTC register accessor: an alias for `Reg<DTFAULTC_SPEC>`"]
180pub type DTFAULTC = crate::Reg<dtfaultc::DTFAULTC_SPEC>;
181#[doc = "DTI Fault Clear Register"]
182pub mod dtfaultc;
183#[doc = "DTLOCK register accessor: an alias for `Reg<DTLOCK_SPEC>`"]
184pub type DTLOCK = crate::Reg<dtlock::DTLOCK_SPEC>;
185#[doc = "DTI Configuration Lock Register"]
186pub mod dtlock;