ra2a1/
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    _reserved17: [u8; 0x04],
39    #[doc = "0x48 - General PWM Timer Counter"]
40    pub gtcnt: GTCNT,
41    #[doc = "0x4c - General PWM Timer Compare Capture Register A"]
42    pub gtccra: GTCCRA,
43    #[doc = "0x50 - General PWM Timer Compare Capture Register B"]
44    pub gtccrb: GTCCRB,
45    #[doc = "0x54 - General PWM Timer Compare Capture Register C"]
46    pub gtccrc: GTCCRC,
47    #[doc = "0x58 - General PWM Timer Compare Capture Register E"]
48    pub gtccre: GTCCRE,
49    #[doc = "0x5c - General PWM Timer Compare Capture Register D"]
50    pub gtccrd: GTCCRD,
51    #[doc = "0x60 - General PWM Timer Compare Capture Register F"]
52    pub gtccrf: GTCCRF,
53    #[doc = "0x64 - General PWM Timer Cycle Setting Register"]
54    pub gtpr: GTPR,
55    #[doc = "0x68 - General PWM Timer Cycle Setting Buffer Register"]
56    pub gtpbr: GTPBR,
57    _reserved26: [u8; 0x1c],
58    #[doc = "0x88 - General PWM Timer Dead Time Control Register"]
59    pub gtdtcr: GTDTCR,
60    #[doc = "0x8c - General PWM Timer Dead Time Value Register U"]
61    pub gtdvu: GTDVU,
62}
63#[doc = "GTWP (rw) register accessor: an alias for `Reg<GTWP_SPEC>`"]
64pub type GTWP = crate::Reg<gtwp::GTWP_SPEC>;
65#[doc = "General PWM Timer Write-Protection Register"]
66pub mod gtwp;
67#[doc = "GTSTR (rw) register accessor: an alias for `Reg<GTSTR_SPEC>`"]
68pub type GTSTR = crate::Reg<gtstr::GTSTR_SPEC>;
69#[doc = "General PWM Timer Software Start Register"]
70pub mod gtstr;
71#[doc = "GTSTP (rw) register accessor: an alias for `Reg<GTSTP_SPEC>`"]
72pub type GTSTP = crate::Reg<gtstp::GTSTP_SPEC>;
73#[doc = "General PWM Timer Software Stop Register"]
74pub mod gtstp;
75#[doc = "GTCLR (w) register accessor: an alias for `Reg<GTCLR_SPEC>`"]
76pub type GTCLR = crate::Reg<gtclr::GTCLR_SPEC>;
77#[doc = "General PWM Timer Software Clear Register"]
78pub mod gtclr;
79#[doc = "GTSSR (rw) register accessor: an alias for `Reg<GTSSR_SPEC>`"]
80pub type GTSSR = crate::Reg<gtssr::GTSSR_SPEC>;
81#[doc = "General PWM Timer Start Source Select Register"]
82pub mod gtssr;
83#[doc = "GTPSR (rw) register accessor: an alias for `Reg<GTPSR_SPEC>`"]
84pub type GTPSR = crate::Reg<gtpsr::GTPSR_SPEC>;
85#[doc = "General PWM Timer Stop Source Select Register"]
86pub mod gtpsr;
87#[doc = "GTCSR (rw) register accessor: an alias for `Reg<GTCSR_SPEC>`"]
88pub type GTCSR = crate::Reg<gtcsr::GTCSR_SPEC>;
89#[doc = "General PWM Timer Clear Source Select Register"]
90pub mod gtcsr;
91#[doc = "GTUPSR (rw) register accessor: an alias for `Reg<GTUPSR_SPEC>`"]
92pub type GTUPSR = crate::Reg<gtupsr::GTUPSR_SPEC>;
93#[doc = "General PWM Timer Up Count Source Select Register"]
94pub mod gtupsr;
95#[doc = "GTDNSR (rw) register accessor: an alias for `Reg<GTDNSR_SPEC>`"]
96pub type GTDNSR = crate::Reg<gtdnsr::GTDNSR_SPEC>;
97#[doc = "General PWM Timer Down Count Source Select Register"]
98pub mod gtdnsr;
99#[doc = "GTICASR (rw) register accessor: an alias for `Reg<GTICASR_SPEC>`"]
100pub type GTICASR = crate::Reg<gticasr::GTICASR_SPEC>;
101#[doc = "General PWM Timer Input Capture Source Select Register A"]
102pub mod gticasr;
103#[doc = "GTICBSR (rw) register accessor: an alias for `Reg<GTICBSR_SPEC>`"]
104pub type GTICBSR = crate::Reg<gticbsr::GTICBSR_SPEC>;
105#[doc = "General PWM Timer Input Capture Source Select Register B"]
106pub mod gticbsr;
107#[doc = "GTCR (rw) register accessor: an alias for `Reg<GTCR_SPEC>`"]
108pub type GTCR = crate::Reg<gtcr::GTCR_SPEC>;
109#[doc = "General PWM Timer Control Register"]
110pub mod gtcr;
111#[doc = "GTUDDTYC (rw) register accessor: an alias for `Reg<GTUDDTYC_SPEC>`"]
112pub type GTUDDTYC = crate::Reg<gtuddtyc::GTUDDTYC_SPEC>;
113#[doc = "General PWM Timer Count Direction and Duty Setting Register"]
114pub mod gtuddtyc;
115#[doc = "GTIOR (rw) register accessor: an alias for `Reg<GTIOR_SPEC>`"]
116pub type GTIOR = crate::Reg<gtior::GTIOR_SPEC>;
117#[doc = "General PWM Timer I/O Control Register"]
118pub mod gtior;
119#[doc = "GTINTAD (rw) register accessor: an alias for `Reg<GTINTAD_SPEC>`"]
120pub type GTINTAD = crate::Reg<gtintad::GTINTAD_SPEC>;
121#[doc = "General PWM Timer Interrupt Output Setting Register"]
122pub mod gtintad;
123#[doc = "GTST (rw) register accessor: an alias for `Reg<GTST_SPEC>`"]
124pub type GTST = crate::Reg<gtst::GTST_SPEC>;
125#[doc = "General PWM Timer Status Register"]
126pub mod gtst;
127#[doc = "GTBER (rw) register accessor: an alias for `Reg<GTBER_SPEC>`"]
128pub type GTBER = crate::Reg<gtber::GTBER_SPEC>;
129#[doc = "General PWM Timer Buffer Enable Register"]
130pub mod gtber;
131#[doc = "GTCNT (rw) register accessor: an alias for `Reg<GTCNT_SPEC>`"]
132pub type GTCNT = crate::Reg<gtcnt::GTCNT_SPEC>;
133#[doc = "General PWM Timer Counter"]
134pub mod gtcnt;
135#[doc = "GTCCRA (rw) register accessor: an alias for `Reg<GTCCRA_SPEC>`"]
136pub type GTCCRA = crate::Reg<gtccra::GTCCRA_SPEC>;
137#[doc = "General PWM Timer Compare Capture Register A"]
138pub mod gtccra;
139#[doc = "GTCCRB (rw) register accessor: an alias for `Reg<GTCCRB_SPEC>`"]
140pub type GTCCRB = crate::Reg<gtccrb::GTCCRB_SPEC>;
141#[doc = "General PWM Timer Compare Capture Register B"]
142pub mod gtccrb;
143#[doc = "GTCCRC (rw) register accessor: an alias for `Reg<GTCCRC_SPEC>`"]
144pub type GTCCRC = crate::Reg<gtccrc::GTCCRC_SPEC>;
145#[doc = "General PWM Timer Compare Capture Register C"]
146pub mod gtccrc;
147#[doc = "GTCCRE (rw) register accessor: an alias for `Reg<GTCCRE_SPEC>`"]
148pub type GTCCRE = crate::Reg<gtccre::GTCCRE_SPEC>;
149#[doc = "General PWM Timer Compare Capture Register E"]
150pub mod gtccre;
151#[doc = "GTCCRD (rw) register accessor: an alias for `Reg<GTCCRD_SPEC>`"]
152pub type GTCCRD = crate::Reg<gtccrd::GTCCRD_SPEC>;
153#[doc = "General PWM Timer Compare Capture Register D"]
154pub mod gtccrd;
155#[doc = "GTCCRF (rw) register accessor: an alias for `Reg<GTCCRF_SPEC>`"]
156pub type GTCCRF = crate::Reg<gtccrf::GTCCRF_SPEC>;
157#[doc = "General PWM Timer Compare Capture Register F"]
158pub mod gtccrf;
159#[doc = "GTPR (rw) register accessor: an alias for `Reg<GTPR_SPEC>`"]
160pub type GTPR = crate::Reg<gtpr::GTPR_SPEC>;
161#[doc = "General PWM Timer Cycle Setting Register"]
162pub mod gtpr;
163#[doc = "GTPBR (rw) register accessor: an alias for `Reg<GTPBR_SPEC>`"]
164pub type GTPBR = crate::Reg<gtpbr::GTPBR_SPEC>;
165#[doc = "General PWM Timer Cycle Setting Buffer Register"]
166pub mod gtpbr;
167#[doc = "GTDTCR (rw) register accessor: an alias for `Reg<GTDTCR_SPEC>`"]
168pub type GTDTCR = crate::Reg<gtdtcr::GTDTCR_SPEC>;
169#[doc = "General PWM Timer Dead Time Control Register"]
170pub mod gtdtcr;
171#[doc = "GTDVU (rw) register accessor: an alias for `Reg<GTDVU_SPEC>`"]
172pub type GTDVU = crate::Reg<gtdvu::GTDVU_SPEC>;
173#[doc = "General PWM Timer Dead Time Value Register U"]
174pub mod gtdvu;