ra6t2/
gpt320.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - General PWM Timer Write-Protection Register"]
5    pub gtwp: GTWP,
6    #[doc = "0x04 - General PWM Timer Software Start Register"]
7    pub gtstr: GTSTR,
8    #[doc = "0x08 - General PWM Timer Software Stop Register"]
9    pub gtstp: GTSTP,
10    #[doc = "0x0c - General PWM Timer Software Clear Register"]
11    pub gtclr: GTCLR,
12    #[doc = "0x10 - General PWM Timer Start Source Select Register"]
13    pub gtssr: GTSSR,
14    #[doc = "0x14 - General PWM Timer Stop Source Select Register"]
15    pub gtpsr: GTPSR,
16    #[doc = "0x18 - General PWM Timer Clear Source Select Register"]
17    pub gtcsr: GTCSR,
18    #[doc = "0x1c - General PWM Timer Up Count Source Select Register"]
19    pub gtupsr: GTUPSR,
20    #[doc = "0x20 - General PWM Timer Down Count Source Select Register"]
21    pub gtdnsr: GTDNSR,
22    #[doc = "0x24 - General PWM Timer Input Capture Source Select Register A"]
23    pub gticasr: GTICASR,
24    #[doc = "0x28 - General PWM Timer Input Capture Source Select Register B"]
25    pub gticbsr: GTICBSR,
26    #[doc = "0x2c - General PWM Timer Control Register"]
27    pub gtcr: GTCR,
28    #[doc = "0x30 - General PWM Timer Count Direction and Duty Setting Register"]
29    pub gtuddtyc: GTUDDTYC,
30    #[doc = "0x34 - General PWM Timer I/O Control Register"]
31    pub gtior: GTIOR,
32    #[doc = "0x38 - General PWM Timer Interrupt Output Setting Register"]
33    pub gtintad: GTINTAD,
34    #[doc = "0x3c - General PWM Timer Status Register"]
35    pub gtst: GTST,
36    #[doc = "0x40 - General PWM Timer Buffer Enable Register"]
37    pub gtber: GTBER,
38    #[doc = "0x44 - General PWM Timer Interrupt and A/D Conversion Start Request Skipping Setting Register"]
39    pub gtitc: GTITC,
40    #[doc = "0x48 - General PWM Timer Counter"]
41    pub gtcnt: GTCNT,
42    #[doc = "0x4c - General PWM Timer Compare Capture Register A"]
43    pub gtccra: GTCCRA,
44    #[doc = "0x50 - General PWM Timer Compare Capture Register B"]
45    pub gtccrb: GTCCRB,
46    #[doc = "0x54 - General PWM Timer Compare Capture Register C"]
47    pub gtccrc: GTCCRC,
48    #[doc = "0x58 - General PWM Timer Compare Capture Register E"]
49    pub gtccre: GTCCRE,
50    #[doc = "0x5c - General PWM Timer Compare Capture Register D"]
51    pub gtccrd: GTCCRD,
52    #[doc = "0x60 - General PWM Timer Compare Capture Register F"]
53    pub gtccrf: GTCCRF,
54    #[doc = "0x64 - General PWM Timer Cycle Setting Register"]
55    pub gtpr: GTPR,
56    #[doc = "0x68 - General PWM Timer Cycle Setting Buffer Register"]
57    pub gtpbr: GTPBR,
58    #[doc = "0x6c - General PWM Timer Cycle Setting Double-Buffer Register"]
59    pub gtpdbr: GTPDBR,
60    #[doc = "0x70 - A/D Conversion Start Request Timing Register A"]
61    pub gtadtra: GTADTRA,
62    #[doc = "0x74 - A/D Conversion Start Request Timing Buffer Register A"]
63    pub gtadtbra: GTADTBRA,
64    #[doc = "0x78 - A/D Conversion Start Request Timing Double-Buffer Register A"]
65    pub gtadtdbra: GTADTDBRA,
66    #[doc = "0x7c - A/D Conversion Start Request Timing Register B"]
67    pub gtadtrb: GTADTRB,
68    #[doc = "0x80 - A/D Conversion Start Request Timing Buffer Register B"]
69    pub gtadtbrb: GTADTBRB,
70    #[doc = "0x84 - A/D Conversion Start Request Timing Double-Buffer Register B"]
71    pub gtadtdbrb: GTADTDBRB,
72    #[doc = "0x88 - General PWM Timer Dead Time Control Register"]
73    pub gtdtcr: GTDTCR,
74    #[doc = "0x8c - General PWM Timer Dead Time Value Register U"]
75    pub gtdvu: GTDVU,
76    #[doc = "0x90 - General PWM Timer Dead Time Value Register D"]
77    pub gtdvd: GTDVD,
78    #[doc = "0x94 - General PWM Timer Dead Time Buffer Register U"]
79    pub gtdbu: GTDBU,
80    #[doc = "0x98 - General PWM Timer Dead Time Buffer Register D"]
81    pub gtdbd: GTDBD,
82    #[doc = "0x9c - General PWM Timer Output Protection Function Status Register"]
83    pub gtsos: GTSOS,
84    #[doc = "0xa0 - General PWM Timer Output Protection Function Temporary Release Register"]
85    pub gtsotr: GTSOTR,
86    #[doc = "0xa4 - General PWM Timer A/D Conversion Start Request Signal Monitoring Register"]
87    pub gtadsmr: GTADSMR,
88    #[doc = "0xa8 - General PWM Timer Extended Interrupt Skipping Counter Control Register"]
89    pub gteitc: GTEITC,
90    #[doc = "0xac - General PWM Timer Extended Interrupt Skipping Setting Register 1"]
91    pub gteitli1: GTEITLI1,
92    #[doc = "0xb0 - General PWM Timer Extended Interrupt Skipping Setting Register 2"]
93    pub gteitli2: GTEITLI2,
94    #[doc = "0xb4 - General PWM Timer Extended Buffer Transfer Skipping Setting Register"]
95    pub gteitlb: GTEITLB,
96    #[doc = "0xb8 - General PWM Timer Inter Channel Logical Operation Function Setting Register"]
97    pub gticlf: GTICLF,
98    #[doc = "0xbc - General PWM Timer Period Count Register"]
99    pub gtpc: GTPC,
100    _reserved48: [u8; 0x10],
101    #[doc = "0xd0 - General PWM Timer Operation Enable Bit Simultaneous Control Channel Select Register"]
102    pub gtsecsr: GTSECSR,
103    #[doc = "0xd4 - General PWM Timer Operation Enable Bit Simultaneous Control Register"]
104    pub gtsecr: GTSECR,
105    _reserved50: [u8; 0x08],
106    #[doc = "0xe0 - General PWM Timer Buffer Enable Register 2"]
107    pub gtber2: GTBER2,
108    #[doc = "0xe4 - General PWM Timer Output Level Buffer Register"]
109    pub gtolbr: GTOLBR,
110    _reserved52: [u8; 0x04],
111    #[doc = "0xec - General PWM Timer Inter Channel Cooperation Input Capture Control Register"]
112    pub gticcr: GTICCR,
113}
114#[doc = "GTWP (rw) register accessor: an alias for `Reg<GTWP_SPEC>`"]
115pub type GTWP = crate::Reg<gtwp::GTWP_SPEC>;
116#[doc = "General PWM Timer Write-Protection Register"]
117pub mod gtwp;
118#[doc = "GTSTR (rw) register accessor: an alias for `Reg<GTSTR_SPEC>`"]
119pub type GTSTR = crate::Reg<gtstr::GTSTR_SPEC>;
120#[doc = "General PWM Timer Software Start Register"]
121pub mod gtstr;
122#[doc = "GTSTP (rw) register accessor: an alias for `Reg<GTSTP_SPEC>`"]
123pub type GTSTP = crate::Reg<gtstp::GTSTP_SPEC>;
124#[doc = "General PWM Timer Software Stop Register"]
125pub mod gtstp;
126#[doc = "GTCLR (w) register accessor: an alias for `Reg<GTCLR_SPEC>`"]
127pub type GTCLR = crate::Reg<gtclr::GTCLR_SPEC>;
128#[doc = "General PWM Timer Software Clear Register"]
129pub mod gtclr;
130#[doc = "GTSSR (rw) register accessor: an alias for `Reg<GTSSR_SPEC>`"]
131pub type GTSSR = crate::Reg<gtssr::GTSSR_SPEC>;
132#[doc = "General PWM Timer Start Source Select Register"]
133pub mod gtssr;
134#[doc = "GTPSR (rw) register accessor: an alias for `Reg<GTPSR_SPEC>`"]
135pub type GTPSR = crate::Reg<gtpsr::GTPSR_SPEC>;
136#[doc = "General PWM Timer Stop Source Select Register"]
137pub mod gtpsr;
138#[doc = "GTCSR (rw) register accessor: an alias for `Reg<GTCSR_SPEC>`"]
139pub type GTCSR = crate::Reg<gtcsr::GTCSR_SPEC>;
140#[doc = "General PWM Timer Clear Source Select Register"]
141pub mod gtcsr;
142#[doc = "GTUPSR (rw) register accessor: an alias for `Reg<GTUPSR_SPEC>`"]
143pub type GTUPSR = crate::Reg<gtupsr::GTUPSR_SPEC>;
144#[doc = "General PWM Timer Up Count Source Select Register"]
145pub mod gtupsr;
146#[doc = "GTDNSR (rw) register accessor: an alias for `Reg<GTDNSR_SPEC>`"]
147pub type GTDNSR = crate::Reg<gtdnsr::GTDNSR_SPEC>;
148#[doc = "General PWM Timer Down Count Source Select Register"]
149pub mod gtdnsr;
150#[doc = "GTICASR (rw) register accessor: an alias for `Reg<GTICASR_SPEC>`"]
151pub type GTICASR = crate::Reg<gticasr::GTICASR_SPEC>;
152#[doc = "General PWM Timer Input Capture Source Select Register A"]
153pub mod gticasr;
154#[doc = "GTICBSR (rw) register accessor: an alias for `Reg<GTICBSR_SPEC>`"]
155pub type GTICBSR = crate::Reg<gticbsr::GTICBSR_SPEC>;
156#[doc = "General PWM Timer Input Capture Source Select Register B"]
157pub mod gticbsr;
158#[doc = "GTCR (rw) register accessor: an alias for `Reg<GTCR_SPEC>`"]
159pub type GTCR = crate::Reg<gtcr::GTCR_SPEC>;
160#[doc = "General PWM Timer Control Register"]
161pub mod gtcr;
162#[doc = "GTUDDTYC (rw) register accessor: an alias for `Reg<GTUDDTYC_SPEC>`"]
163pub type GTUDDTYC = crate::Reg<gtuddtyc::GTUDDTYC_SPEC>;
164#[doc = "General PWM Timer Count Direction and Duty Setting Register"]
165pub mod gtuddtyc;
166#[doc = "GTIOR (rw) register accessor: an alias for `Reg<GTIOR_SPEC>`"]
167pub type GTIOR = crate::Reg<gtior::GTIOR_SPEC>;
168#[doc = "General PWM Timer I/O Control Register"]
169pub mod gtior;
170#[doc = "GTINTAD (rw) register accessor: an alias for `Reg<GTINTAD_SPEC>`"]
171pub type GTINTAD = crate::Reg<gtintad::GTINTAD_SPEC>;
172#[doc = "General PWM Timer Interrupt Output Setting Register"]
173pub mod gtintad;
174#[doc = "GTST (rw) register accessor: an alias for `Reg<GTST_SPEC>`"]
175pub type GTST = crate::Reg<gtst::GTST_SPEC>;
176#[doc = "General PWM Timer Status Register"]
177pub mod gtst;
178#[doc = "GTBER (rw) register accessor: an alias for `Reg<GTBER_SPEC>`"]
179pub type GTBER = crate::Reg<gtber::GTBER_SPEC>;
180#[doc = "General PWM Timer Buffer Enable Register"]
181pub mod gtber;
182#[doc = "GTITC (rw) register accessor: an alias for `Reg<GTITC_SPEC>`"]
183pub type GTITC = crate::Reg<gtitc::GTITC_SPEC>;
184#[doc = "General PWM Timer Interrupt and A/D Conversion Start Request Skipping Setting Register"]
185pub mod gtitc;
186#[doc = "GTCNT (rw) register accessor: an alias for `Reg<GTCNT_SPEC>`"]
187pub type GTCNT = crate::Reg<gtcnt::GTCNT_SPEC>;
188#[doc = "General PWM Timer Counter"]
189pub mod gtcnt;
190#[doc = "GTCCRA (rw) register accessor: an alias for `Reg<GTCCRA_SPEC>`"]
191pub type GTCCRA = crate::Reg<gtccra::GTCCRA_SPEC>;
192#[doc = "General PWM Timer Compare Capture Register A"]
193pub mod gtccra;
194#[doc = "GTCCRB (rw) register accessor: an alias for `Reg<GTCCRB_SPEC>`"]
195pub type GTCCRB = crate::Reg<gtccrb::GTCCRB_SPEC>;
196#[doc = "General PWM Timer Compare Capture Register B"]
197pub mod gtccrb;
198#[doc = "GTCCRC (rw) register accessor: an alias for `Reg<GTCCRC_SPEC>`"]
199pub type GTCCRC = crate::Reg<gtccrc::GTCCRC_SPEC>;
200#[doc = "General PWM Timer Compare Capture Register C"]
201pub mod gtccrc;
202#[doc = "GTCCRE (rw) register accessor: an alias for `Reg<GTCCRE_SPEC>`"]
203pub type GTCCRE = crate::Reg<gtccre::GTCCRE_SPEC>;
204#[doc = "General PWM Timer Compare Capture Register E"]
205pub mod gtccre;
206#[doc = "GTCCRD (rw) register accessor: an alias for `Reg<GTCCRD_SPEC>`"]
207pub type GTCCRD = crate::Reg<gtccrd::GTCCRD_SPEC>;
208#[doc = "General PWM Timer Compare Capture Register D"]
209pub mod gtccrd;
210#[doc = "GTCCRF (rw) register accessor: an alias for `Reg<GTCCRF_SPEC>`"]
211pub type GTCCRF = crate::Reg<gtccrf::GTCCRF_SPEC>;
212#[doc = "General PWM Timer Compare Capture Register F"]
213pub mod gtccrf;
214#[doc = "GTPR (rw) register accessor: an alias for `Reg<GTPR_SPEC>`"]
215pub type GTPR = crate::Reg<gtpr::GTPR_SPEC>;
216#[doc = "General PWM Timer Cycle Setting Register"]
217pub mod gtpr;
218#[doc = "GTPBR (rw) register accessor: an alias for `Reg<GTPBR_SPEC>`"]
219pub type GTPBR = crate::Reg<gtpbr::GTPBR_SPEC>;
220#[doc = "General PWM Timer Cycle Setting Buffer Register"]
221pub mod gtpbr;
222#[doc = "GTPDBR (rw) register accessor: an alias for `Reg<GTPDBR_SPEC>`"]
223pub type GTPDBR = crate::Reg<gtpdbr::GTPDBR_SPEC>;
224#[doc = "General PWM Timer Cycle Setting Double-Buffer Register"]
225pub mod gtpdbr;
226#[doc = "GTADTRA (rw) register accessor: an alias for `Reg<GTADTRA_SPEC>`"]
227pub type GTADTRA = crate::Reg<gtadtra::GTADTRA_SPEC>;
228#[doc = "A/D Conversion Start Request Timing Register A"]
229pub mod gtadtra;
230#[doc = "GTADTBRA (rw) register accessor: an alias for `Reg<GTADTBRA_SPEC>`"]
231pub type GTADTBRA = crate::Reg<gtadtbra::GTADTBRA_SPEC>;
232#[doc = "A/D Conversion Start Request Timing Buffer Register A"]
233pub mod gtadtbra;
234#[doc = "GTADTDBRA (rw) register accessor: an alias for `Reg<GTADTDBRA_SPEC>`"]
235pub type GTADTDBRA = crate::Reg<gtadtdbra::GTADTDBRA_SPEC>;
236#[doc = "A/D Conversion Start Request Timing Double-Buffer Register A"]
237pub mod gtadtdbra;
238#[doc = "GTADTRB (rw) register accessor: an alias for `Reg<GTADTRB_SPEC>`"]
239pub type GTADTRB = crate::Reg<gtadtrb::GTADTRB_SPEC>;
240#[doc = "A/D Conversion Start Request Timing Register B"]
241pub mod gtadtrb;
242#[doc = "GTADTBRB (rw) register accessor: an alias for `Reg<GTADTBRB_SPEC>`"]
243pub type GTADTBRB = crate::Reg<gtadtbrb::GTADTBRB_SPEC>;
244#[doc = "A/D Conversion Start Request Timing Buffer Register B"]
245pub mod gtadtbrb;
246#[doc = "GTADTDBRB (rw) register accessor: an alias for `Reg<GTADTDBRB_SPEC>`"]
247pub type GTADTDBRB = crate::Reg<gtadtdbrb::GTADTDBRB_SPEC>;
248#[doc = "A/D Conversion Start Request Timing Double-Buffer Register B"]
249pub mod gtadtdbrb;
250#[doc = "GTDTCR (rw) register accessor: an alias for `Reg<GTDTCR_SPEC>`"]
251pub type GTDTCR = crate::Reg<gtdtcr::GTDTCR_SPEC>;
252#[doc = "General PWM Timer Dead Time Control Register"]
253pub mod gtdtcr;
254#[doc = "GTDVU (rw) register accessor: an alias for `Reg<GTDVU_SPEC>`"]
255pub type GTDVU = crate::Reg<gtdvu::GTDVU_SPEC>;
256#[doc = "General PWM Timer Dead Time Value Register U"]
257pub mod gtdvu;
258#[doc = "GTDVD (rw) register accessor: an alias for `Reg<GTDVD_SPEC>`"]
259pub type GTDVD = crate::Reg<gtdvd::GTDVD_SPEC>;
260#[doc = "General PWM Timer Dead Time Value Register D"]
261pub mod gtdvd;
262#[doc = "GTDBU (rw) register accessor: an alias for `Reg<GTDBU_SPEC>`"]
263pub type GTDBU = crate::Reg<gtdbu::GTDBU_SPEC>;
264#[doc = "General PWM Timer Dead Time Buffer Register U"]
265pub mod gtdbu;
266#[doc = "GTDBD (rw) register accessor: an alias for `Reg<GTDBD_SPEC>`"]
267pub type GTDBD = crate::Reg<gtdbd::GTDBD_SPEC>;
268#[doc = "General PWM Timer Dead Time Buffer Register D"]
269pub mod gtdbd;
270#[doc = "GTSOS (r) register accessor: an alias for `Reg<GTSOS_SPEC>`"]
271pub type GTSOS = crate::Reg<gtsos::GTSOS_SPEC>;
272#[doc = "General PWM Timer Output Protection Function Status Register"]
273pub mod gtsos;
274#[doc = "GTSOTR (rw) register accessor: an alias for `Reg<GTSOTR_SPEC>`"]
275pub type GTSOTR = crate::Reg<gtsotr::GTSOTR_SPEC>;
276#[doc = "General PWM Timer Output Protection Function Temporary Release Register"]
277pub mod gtsotr;
278#[doc = "GTADSMR (rw) register accessor: an alias for `Reg<GTADSMR_SPEC>`"]
279pub type GTADSMR = crate::Reg<gtadsmr::GTADSMR_SPEC>;
280#[doc = "General PWM Timer A/D Conversion Start Request Signal Monitoring Register"]
281pub mod gtadsmr;
282#[doc = "GTEITC (rw) register accessor: an alias for `Reg<GTEITC_SPEC>`"]
283pub type GTEITC = crate::Reg<gteitc::GTEITC_SPEC>;
284#[doc = "General PWM Timer Extended Interrupt Skipping Counter Control Register"]
285pub mod gteitc;
286#[doc = "GTEITLI1 (rw) register accessor: an alias for `Reg<GTEITLI1_SPEC>`"]
287pub type GTEITLI1 = crate::Reg<gteitli1::GTEITLI1_SPEC>;
288#[doc = "General PWM Timer Extended Interrupt Skipping Setting Register 1"]
289pub mod gteitli1;
290#[doc = "GTEITLI2 (rw) register accessor: an alias for `Reg<GTEITLI2_SPEC>`"]
291pub type GTEITLI2 = crate::Reg<gteitli2::GTEITLI2_SPEC>;
292#[doc = "General PWM Timer Extended Interrupt Skipping Setting Register 2"]
293pub mod gteitli2;
294#[doc = "GTEITLB (rw) register accessor: an alias for `Reg<GTEITLB_SPEC>`"]
295pub type GTEITLB = crate::Reg<gteitlb::GTEITLB_SPEC>;
296#[doc = "General PWM Timer Extended Buffer Transfer Skipping Setting Register"]
297pub mod gteitlb;
298#[doc = "GTICLF (rw) register accessor: an alias for `Reg<GTICLF_SPEC>`"]
299pub type GTICLF = crate::Reg<gticlf::GTICLF_SPEC>;
300#[doc = "General PWM Timer Inter Channel Logical Operation Function Setting Register"]
301pub mod gticlf;
302#[doc = "GTPC (rw) register accessor: an alias for `Reg<GTPC_SPEC>`"]
303pub type GTPC = crate::Reg<gtpc::GTPC_SPEC>;
304#[doc = "General PWM Timer Period Count Register"]
305pub mod gtpc;
306#[doc = "GTSECSR (rw) register accessor: an alias for `Reg<GTSECSR_SPEC>`"]
307pub type GTSECSR = crate::Reg<gtsecsr::GTSECSR_SPEC>;
308#[doc = "General PWM Timer Operation Enable Bit Simultaneous Control Channel Select Register"]
309pub mod gtsecsr;
310#[doc = "GTSECR (rw) register accessor: an alias for `Reg<GTSECR_SPEC>`"]
311pub type GTSECR = crate::Reg<gtsecr::GTSECR_SPEC>;
312#[doc = "General PWM Timer Operation Enable Bit Simultaneous Control Register"]
313pub mod gtsecr;
314#[doc = "GTBER2 (rw) register accessor: an alias for `Reg<GTBER2_SPEC>`"]
315pub type GTBER2 = crate::Reg<gtber2::GTBER2_SPEC>;
316#[doc = "General PWM Timer Buffer Enable Register 2"]
317pub mod gtber2;
318#[doc = "GTOLBR (rw) register accessor: an alias for `Reg<GTOLBR_SPEC>`"]
319pub type GTOLBR = crate::Reg<gtolbr::GTOLBR_SPEC>;
320#[doc = "General PWM Timer Output Level Buffer Register"]
321pub mod gtolbr;
322#[doc = "GTICCR (rw) register accessor: an alias for `Reg<GTICCR_SPEC>`"]
323pub type GTICCR = crate::Reg<gticcr::GTICCR_SPEC>;
324#[doc = "General PWM Timer Inter Channel Cooperation Input Capture Control Register"]
325pub mod gticcr;