SAME54P20A Test Project
tcc.h
Go to the documentation of this file.
1 
30 #ifndef _SAME54_TCC_COMPONENT_
31 #define _SAME54_TCC_COMPONENT_
32 
33 /* ========================================================================== */
35 /* ========================================================================== */
38 
39 #define TCC_U2213
40 #define REV_TCC 0x310
41 
42 /* -------- TCC_CTRLA : (TCC Offset: 0x00) (R/W 32) Control A -------- */
43 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
44 typedef union {
45  struct {
46  uint32_t SWRST:1;
47  uint32_t ENABLE:1;
48  uint32_t :3;
49  uint32_t RESOLUTION:2;
50  uint32_t :1;
51  uint32_t PRESCALER:3;
52  uint32_t RUNSTDBY:1;
53  uint32_t PRESCSYNC:2;
54  uint32_t ALOCK:1;
55  uint32_t MSYNC:1;
56  uint32_t :7;
57  uint32_t DMAOS:1;
58  uint32_t CPTEN0:1;
59  uint32_t CPTEN1:1;
60  uint32_t CPTEN2:1;
61  uint32_t CPTEN3:1;
62  uint32_t CPTEN4:1;
63  uint32_t CPTEN5:1;
64  uint32_t :2;
65  } bit;
66  struct {
67  uint32_t :24;
68  uint32_t CPTEN:6;
69  uint32_t :2;
70  } vec;
71  uint32_t reg;
73 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
74 
75 #define TCC_CTRLA_OFFSET 0x00
76 #define TCC_CTRLA_RESETVALUE _U_(0x00000000)
78 #define TCC_CTRLA_SWRST_Pos 0
79 #define TCC_CTRLA_SWRST (_U_(0x1) << TCC_CTRLA_SWRST_Pos)
80 #define TCC_CTRLA_ENABLE_Pos 1
81 #define TCC_CTRLA_ENABLE (_U_(0x1) << TCC_CTRLA_ENABLE_Pos)
82 #define TCC_CTRLA_RESOLUTION_Pos 5
83 #define TCC_CTRLA_RESOLUTION_Msk (_U_(0x3) << TCC_CTRLA_RESOLUTION_Pos)
84 #define TCC_CTRLA_RESOLUTION(value) (TCC_CTRLA_RESOLUTION_Msk & ((value) << TCC_CTRLA_RESOLUTION_Pos))
85 #define TCC_CTRLA_RESOLUTION_NONE_Val _U_(0x0)
86 #define TCC_CTRLA_RESOLUTION_DITH4_Val _U_(0x1)
87 #define TCC_CTRLA_RESOLUTION_DITH5_Val _U_(0x2)
88 #define TCC_CTRLA_RESOLUTION_DITH6_Val _U_(0x3)
89 #define TCC_CTRLA_RESOLUTION_NONE (TCC_CTRLA_RESOLUTION_NONE_Val << TCC_CTRLA_RESOLUTION_Pos)
90 #define TCC_CTRLA_RESOLUTION_DITH4 (TCC_CTRLA_RESOLUTION_DITH4_Val << TCC_CTRLA_RESOLUTION_Pos)
91 #define TCC_CTRLA_RESOLUTION_DITH5 (TCC_CTRLA_RESOLUTION_DITH5_Val << TCC_CTRLA_RESOLUTION_Pos)
92 #define TCC_CTRLA_RESOLUTION_DITH6 (TCC_CTRLA_RESOLUTION_DITH6_Val << TCC_CTRLA_RESOLUTION_Pos)
93 #define TCC_CTRLA_PRESCALER_Pos 8
94 #define TCC_CTRLA_PRESCALER_Msk (_U_(0x7) << TCC_CTRLA_PRESCALER_Pos)
95 #define TCC_CTRLA_PRESCALER(value) (TCC_CTRLA_PRESCALER_Msk & ((value) << TCC_CTRLA_PRESCALER_Pos))
96 #define TCC_CTRLA_PRESCALER_DIV1_Val _U_(0x0)
97 #define TCC_CTRLA_PRESCALER_DIV2_Val _U_(0x1)
98 #define TCC_CTRLA_PRESCALER_DIV4_Val _U_(0x2)
99 #define TCC_CTRLA_PRESCALER_DIV8_Val _U_(0x3)
100 #define TCC_CTRLA_PRESCALER_DIV16_Val _U_(0x4)
101 #define TCC_CTRLA_PRESCALER_DIV64_Val _U_(0x5)
102 #define TCC_CTRLA_PRESCALER_DIV256_Val _U_(0x6)
103 #define TCC_CTRLA_PRESCALER_DIV1024_Val _U_(0x7)
104 #define TCC_CTRLA_PRESCALER_DIV1 (TCC_CTRLA_PRESCALER_DIV1_Val << TCC_CTRLA_PRESCALER_Pos)
105 #define TCC_CTRLA_PRESCALER_DIV2 (TCC_CTRLA_PRESCALER_DIV2_Val << TCC_CTRLA_PRESCALER_Pos)
106 #define TCC_CTRLA_PRESCALER_DIV4 (TCC_CTRLA_PRESCALER_DIV4_Val << TCC_CTRLA_PRESCALER_Pos)
107 #define TCC_CTRLA_PRESCALER_DIV8 (TCC_CTRLA_PRESCALER_DIV8_Val << TCC_CTRLA_PRESCALER_Pos)
108 #define TCC_CTRLA_PRESCALER_DIV16 (TCC_CTRLA_PRESCALER_DIV16_Val << TCC_CTRLA_PRESCALER_Pos)
109 #define TCC_CTRLA_PRESCALER_DIV64 (TCC_CTRLA_PRESCALER_DIV64_Val << TCC_CTRLA_PRESCALER_Pos)
110 #define TCC_CTRLA_PRESCALER_DIV256 (TCC_CTRLA_PRESCALER_DIV256_Val << TCC_CTRLA_PRESCALER_Pos)
111 #define TCC_CTRLA_PRESCALER_DIV1024 (TCC_CTRLA_PRESCALER_DIV1024_Val << TCC_CTRLA_PRESCALER_Pos)
112 #define TCC_CTRLA_RUNSTDBY_Pos 11
113 #define TCC_CTRLA_RUNSTDBY (_U_(0x1) << TCC_CTRLA_RUNSTDBY_Pos)
114 #define TCC_CTRLA_PRESCSYNC_Pos 12
115 #define TCC_CTRLA_PRESCSYNC_Msk (_U_(0x3) << TCC_CTRLA_PRESCSYNC_Pos)
116 #define TCC_CTRLA_PRESCSYNC(value) (TCC_CTRLA_PRESCSYNC_Msk & ((value) << TCC_CTRLA_PRESCSYNC_Pos))
117 #define TCC_CTRLA_PRESCSYNC_GCLK_Val _U_(0x0)
118 #define TCC_CTRLA_PRESCSYNC_PRESC_Val _U_(0x1)
119 #define TCC_CTRLA_PRESCSYNC_RESYNC_Val _U_(0x2)
120 #define TCC_CTRLA_PRESCSYNC_GCLK (TCC_CTRLA_PRESCSYNC_GCLK_Val << TCC_CTRLA_PRESCSYNC_Pos)
121 #define TCC_CTRLA_PRESCSYNC_PRESC (TCC_CTRLA_PRESCSYNC_PRESC_Val << TCC_CTRLA_PRESCSYNC_Pos)
122 #define TCC_CTRLA_PRESCSYNC_RESYNC (TCC_CTRLA_PRESCSYNC_RESYNC_Val << TCC_CTRLA_PRESCSYNC_Pos)
123 #define TCC_CTRLA_ALOCK_Pos 14
124 #define TCC_CTRLA_ALOCK (_U_(0x1) << TCC_CTRLA_ALOCK_Pos)
125 #define TCC_CTRLA_MSYNC_Pos 15
126 #define TCC_CTRLA_MSYNC (_U_(0x1) << TCC_CTRLA_MSYNC_Pos)
127 #define TCC_CTRLA_DMAOS_Pos 23
128 #define TCC_CTRLA_DMAOS (_U_(0x1) << TCC_CTRLA_DMAOS_Pos)
129 #define TCC_CTRLA_CPTEN0_Pos 24
130 #define TCC_CTRLA_CPTEN0 (_U_(1) << TCC_CTRLA_CPTEN0_Pos)
131 #define TCC_CTRLA_CPTEN1_Pos 25
132 #define TCC_CTRLA_CPTEN1 (_U_(1) << TCC_CTRLA_CPTEN1_Pos)
133 #define TCC_CTRLA_CPTEN2_Pos 26
134 #define TCC_CTRLA_CPTEN2 (_U_(1) << TCC_CTRLA_CPTEN2_Pos)
135 #define TCC_CTRLA_CPTEN3_Pos 27
136 #define TCC_CTRLA_CPTEN3 (_U_(1) << TCC_CTRLA_CPTEN3_Pos)
137 #define TCC_CTRLA_CPTEN4_Pos 28
138 #define TCC_CTRLA_CPTEN4 (_U_(1) << TCC_CTRLA_CPTEN4_Pos)
139 #define TCC_CTRLA_CPTEN5_Pos 29
140 #define TCC_CTRLA_CPTEN5 (_U_(1) << TCC_CTRLA_CPTEN5_Pos)
141 #define TCC_CTRLA_CPTEN_Pos 24
142 #define TCC_CTRLA_CPTEN_Msk (_U_(0x3F) << TCC_CTRLA_CPTEN_Pos)
143 #define TCC_CTRLA_CPTEN(value) (TCC_CTRLA_CPTEN_Msk & ((value) << TCC_CTRLA_CPTEN_Pos))
144 #define TCC_CTRLA_MASK _U_(0x3F80FF63)
146 /* -------- TCC_CTRLBCLR : (TCC Offset: 0x04) (R/W 8) Control B Clear -------- */
147 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
148 typedef union {
149  struct {
150  uint8_t DIR:1;
151  uint8_t LUPD:1;
152  uint8_t ONESHOT:1;
153  uint8_t IDXCMD:2;
154  uint8_t CMD:3;
155  } bit;
156  uint8_t reg;
158 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
159 
160 #define TCC_CTRLBCLR_OFFSET 0x04
161 #define TCC_CTRLBCLR_RESETVALUE _U_(0x00)
163 #define TCC_CTRLBCLR_DIR_Pos 0
164 #define TCC_CTRLBCLR_DIR (_U_(0x1) << TCC_CTRLBCLR_DIR_Pos)
165 #define TCC_CTRLBCLR_LUPD_Pos 1
166 #define TCC_CTRLBCLR_LUPD (_U_(0x1) << TCC_CTRLBCLR_LUPD_Pos)
167 #define TCC_CTRLBCLR_ONESHOT_Pos 2
168 #define TCC_CTRLBCLR_ONESHOT (_U_(0x1) << TCC_CTRLBCLR_ONESHOT_Pos)
169 #define TCC_CTRLBCLR_IDXCMD_Pos 3
170 #define TCC_CTRLBCLR_IDXCMD_Msk (_U_(0x3) << TCC_CTRLBCLR_IDXCMD_Pos)
171 #define TCC_CTRLBCLR_IDXCMD(value) (TCC_CTRLBCLR_IDXCMD_Msk & ((value) << TCC_CTRLBCLR_IDXCMD_Pos))
172 #define TCC_CTRLBCLR_IDXCMD_DISABLE_Val _U_(0x0)
173 #define TCC_CTRLBCLR_IDXCMD_SET_Val _U_(0x1)
174 #define TCC_CTRLBCLR_IDXCMD_CLEAR_Val _U_(0x2)
175 #define TCC_CTRLBCLR_IDXCMD_HOLD_Val _U_(0x3)
176 #define TCC_CTRLBCLR_IDXCMD_DISABLE (TCC_CTRLBCLR_IDXCMD_DISABLE_Val << TCC_CTRLBCLR_IDXCMD_Pos)
177 #define TCC_CTRLBCLR_IDXCMD_SET (TCC_CTRLBCLR_IDXCMD_SET_Val << TCC_CTRLBCLR_IDXCMD_Pos)
178 #define TCC_CTRLBCLR_IDXCMD_CLEAR (TCC_CTRLBCLR_IDXCMD_CLEAR_Val << TCC_CTRLBCLR_IDXCMD_Pos)
179 #define TCC_CTRLBCLR_IDXCMD_HOLD (TCC_CTRLBCLR_IDXCMD_HOLD_Val << TCC_CTRLBCLR_IDXCMD_Pos)
180 #define TCC_CTRLBCLR_CMD_Pos 5
181 #define TCC_CTRLBCLR_CMD_Msk (_U_(0x7) << TCC_CTRLBCLR_CMD_Pos)
182 #define TCC_CTRLBCLR_CMD(value) (TCC_CTRLBCLR_CMD_Msk & ((value) << TCC_CTRLBCLR_CMD_Pos))
183 #define TCC_CTRLBCLR_CMD_NONE_Val _U_(0x0)
184 #define TCC_CTRLBCLR_CMD_RETRIGGER_Val _U_(0x1)
185 #define TCC_CTRLBCLR_CMD_STOP_Val _U_(0x2)
186 #define TCC_CTRLBCLR_CMD_UPDATE_Val _U_(0x3)
187 #define TCC_CTRLBCLR_CMD_READSYNC_Val _U_(0x4)
188 #define TCC_CTRLBCLR_CMD_DMAOS_Val _U_(0x5)
189 #define TCC_CTRLBCLR_CMD_NONE (TCC_CTRLBCLR_CMD_NONE_Val << TCC_CTRLBCLR_CMD_Pos)
190 #define TCC_CTRLBCLR_CMD_RETRIGGER (TCC_CTRLBCLR_CMD_RETRIGGER_Val << TCC_CTRLBCLR_CMD_Pos)
191 #define TCC_CTRLBCLR_CMD_STOP (TCC_CTRLBCLR_CMD_STOP_Val << TCC_CTRLBCLR_CMD_Pos)
192 #define TCC_CTRLBCLR_CMD_UPDATE (TCC_CTRLBCLR_CMD_UPDATE_Val << TCC_CTRLBCLR_CMD_Pos)
193 #define TCC_CTRLBCLR_CMD_READSYNC (TCC_CTRLBCLR_CMD_READSYNC_Val << TCC_CTRLBCLR_CMD_Pos)
194 #define TCC_CTRLBCLR_CMD_DMAOS (TCC_CTRLBCLR_CMD_DMAOS_Val << TCC_CTRLBCLR_CMD_Pos)
195 #define TCC_CTRLBCLR_MASK _U_(0xFF)
197 /* -------- TCC_CTRLBSET : (TCC Offset: 0x05) (R/W 8) Control B Set -------- */
198 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
199 typedef union {
200  struct {
201  uint8_t DIR:1;
202  uint8_t LUPD:1;
203  uint8_t ONESHOT:1;
204  uint8_t IDXCMD:2;
205  uint8_t CMD:3;
206  } bit;
207  uint8_t reg;
209 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
210 
211 #define TCC_CTRLBSET_OFFSET 0x05
212 #define TCC_CTRLBSET_RESETVALUE _U_(0x00)
214 #define TCC_CTRLBSET_DIR_Pos 0
215 #define TCC_CTRLBSET_DIR (_U_(0x1) << TCC_CTRLBSET_DIR_Pos)
216 #define TCC_CTRLBSET_LUPD_Pos 1
217 #define TCC_CTRLBSET_LUPD (_U_(0x1) << TCC_CTRLBSET_LUPD_Pos)
218 #define TCC_CTRLBSET_ONESHOT_Pos 2
219 #define TCC_CTRLBSET_ONESHOT (_U_(0x1) << TCC_CTRLBSET_ONESHOT_Pos)
220 #define TCC_CTRLBSET_IDXCMD_Pos 3
221 #define TCC_CTRLBSET_IDXCMD_Msk (_U_(0x3) << TCC_CTRLBSET_IDXCMD_Pos)
222 #define TCC_CTRLBSET_IDXCMD(value) (TCC_CTRLBSET_IDXCMD_Msk & ((value) << TCC_CTRLBSET_IDXCMD_Pos))
223 #define TCC_CTRLBSET_IDXCMD_DISABLE_Val _U_(0x0)
224 #define TCC_CTRLBSET_IDXCMD_SET_Val _U_(0x1)
225 #define TCC_CTRLBSET_IDXCMD_CLEAR_Val _U_(0x2)
226 #define TCC_CTRLBSET_IDXCMD_HOLD_Val _U_(0x3)
227 #define TCC_CTRLBSET_IDXCMD_DISABLE (TCC_CTRLBSET_IDXCMD_DISABLE_Val << TCC_CTRLBSET_IDXCMD_Pos)
228 #define TCC_CTRLBSET_IDXCMD_SET (TCC_CTRLBSET_IDXCMD_SET_Val << TCC_CTRLBSET_IDXCMD_Pos)
229 #define TCC_CTRLBSET_IDXCMD_CLEAR (TCC_CTRLBSET_IDXCMD_CLEAR_Val << TCC_CTRLBSET_IDXCMD_Pos)
230 #define TCC_CTRLBSET_IDXCMD_HOLD (TCC_CTRLBSET_IDXCMD_HOLD_Val << TCC_CTRLBSET_IDXCMD_Pos)
231 #define TCC_CTRLBSET_CMD_Pos 5
232 #define TCC_CTRLBSET_CMD_Msk (_U_(0x7) << TCC_CTRLBSET_CMD_Pos)
233 #define TCC_CTRLBSET_CMD(value) (TCC_CTRLBSET_CMD_Msk & ((value) << TCC_CTRLBSET_CMD_Pos))
234 #define TCC_CTRLBSET_CMD_NONE_Val _U_(0x0)
235 #define TCC_CTRLBSET_CMD_RETRIGGER_Val _U_(0x1)
236 #define TCC_CTRLBSET_CMD_STOP_Val _U_(0x2)
237 #define TCC_CTRLBSET_CMD_UPDATE_Val _U_(0x3)
238 #define TCC_CTRLBSET_CMD_READSYNC_Val _U_(0x4)
239 #define TCC_CTRLBSET_CMD_DMAOS_Val _U_(0x5)
240 #define TCC_CTRLBSET_CMD_NONE (TCC_CTRLBSET_CMD_NONE_Val << TCC_CTRLBSET_CMD_Pos)
241 #define TCC_CTRLBSET_CMD_RETRIGGER (TCC_CTRLBSET_CMD_RETRIGGER_Val << TCC_CTRLBSET_CMD_Pos)
242 #define TCC_CTRLBSET_CMD_STOP (TCC_CTRLBSET_CMD_STOP_Val << TCC_CTRLBSET_CMD_Pos)
243 #define TCC_CTRLBSET_CMD_UPDATE (TCC_CTRLBSET_CMD_UPDATE_Val << TCC_CTRLBSET_CMD_Pos)
244 #define TCC_CTRLBSET_CMD_READSYNC (TCC_CTRLBSET_CMD_READSYNC_Val << TCC_CTRLBSET_CMD_Pos)
245 #define TCC_CTRLBSET_CMD_DMAOS (TCC_CTRLBSET_CMD_DMAOS_Val << TCC_CTRLBSET_CMD_Pos)
246 #define TCC_CTRLBSET_MASK _U_(0xFF)
248 /* -------- TCC_SYNCBUSY : (TCC Offset: 0x08) (R/ 32) Synchronization Busy -------- */
249 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
250 typedef union {
251  struct {
252  uint32_t SWRST:1;
253  uint32_t ENABLE:1;
254  uint32_t CTRLB:1;
255  uint32_t STATUS:1;
256  uint32_t COUNT:1;
257  uint32_t PATT:1;
258  uint32_t WAVE:1;
259  uint32_t PER:1;
260  uint32_t CC0:1;
261  uint32_t CC1:1;
262  uint32_t CC2:1;
263  uint32_t CC3:1;
264  uint32_t CC4:1;
265  uint32_t CC5:1;
266  uint32_t :18;
267  } bit;
268  struct {
269  uint32_t :8;
270  uint32_t CC:6;
271  uint32_t :18;
272  } vec;
273  uint32_t reg;
275 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
276 
277 #define TCC_SYNCBUSY_OFFSET 0x08
278 #define TCC_SYNCBUSY_RESETVALUE _U_(0x00000000)
280 #define TCC_SYNCBUSY_SWRST_Pos 0
281 #define TCC_SYNCBUSY_SWRST (_U_(0x1) << TCC_SYNCBUSY_SWRST_Pos)
282 #define TCC_SYNCBUSY_ENABLE_Pos 1
283 #define TCC_SYNCBUSY_ENABLE (_U_(0x1) << TCC_SYNCBUSY_ENABLE_Pos)
284 #define TCC_SYNCBUSY_CTRLB_Pos 2
285 #define TCC_SYNCBUSY_CTRLB (_U_(0x1) << TCC_SYNCBUSY_CTRLB_Pos)
286 #define TCC_SYNCBUSY_STATUS_Pos 3
287 #define TCC_SYNCBUSY_STATUS (_U_(0x1) << TCC_SYNCBUSY_STATUS_Pos)
288 #define TCC_SYNCBUSY_COUNT_Pos 4
289 #define TCC_SYNCBUSY_COUNT (_U_(0x1) << TCC_SYNCBUSY_COUNT_Pos)
290 #define TCC_SYNCBUSY_PATT_Pos 5
291 #define TCC_SYNCBUSY_PATT (_U_(0x1) << TCC_SYNCBUSY_PATT_Pos)
292 #define TCC_SYNCBUSY_WAVE_Pos 6
293 #define TCC_SYNCBUSY_WAVE (_U_(0x1) << TCC_SYNCBUSY_WAVE_Pos)
294 #define TCC_SYNCBUSY_PER_Pos 7
295 #define TCC_SYNCBUSY_PER (_U_(0x1) << TCC_SYNCBUSY_PER_Pos)
296 #define TCC_SYNCBUSY_CC0_Pos 8
297 #define TCC_SYNCBUSY_CC0 (_U_(1) << TCC_SYNCBUSY_CC0_Pos)
298 #define TCC_SYNCBUSY_CC1_Pos 9
299 #define TCC_SYNCBUSY_CC1 (_U_(1) << TCC_SYNCBUSY_CC1_Pos)
300 #define TCC_SYNCBUSY_CC2_Pos 10
301 #define TCC_SYNCBUSY_CC2 (_U_(1) << TCC_SYNCBUSY_CC2_Pos)
302 #define TCC_SYNCBUSY_CC3_Pos 11
303 #define TCC_SYNCBUSY_CC3 (_U_(1) << TCC_SYNCBUSY_CC3_Pos)
304 #define TCC_SYNCBUSY_CC4_Pos 12
305 #define TCC_SYNCBUSY_CC4 (_U_(1) << TCC_SYNCBUSY_CC4_Pos)
306 #define TCC_SYNCBUSY_CC5_Pos 13
307 #define TCC_SYNCBUSY_CC5 (_U_(1) << TCC_SYNCBUSY_CC5_Pos)
308 #define TCC_SYNCBUSY_CC_Pos 8
309 #define TCC_SYNCBUSY_CC_Msk (_U_(0x3F) << TCC_SYNCBUSY_CC_Pos)
310 #define TCC_SYNCBUSY_CC(value) (TCC_SYNCBUSY_CC_Msk & ((value) << TCC_SYNCBUSY_CC_Pos))
311 #define TCC_SYNCBUSY_MASK _U_(0x00003FFF)
313 /* -------- TCC_FCTRLA : (TCC Offset: 0x0C) (R/W 32) Recoverable Fault A Configuration -------- */
314 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
315 typedef union {
316  struct {
317  uint32_t SRC:2;
318  uint32_t :1;
319  uint32_t KEEP:1;
320  uint32_t QUAL:1;
321  uint32_t BLANK:2;
322  uint32_t RESTART:1;
323  uint32_t HALT:2;
324  uint32_t CHSEL:2;
325  uint32_t CAPTURE:3;
326  uint32_t BLANKPRESC:1;
327  uint32_t BLANKVAL:8;
328  uint32_t FILTERVAL:4;
329  uint32_t :4;
330  } bit;
331  uint32_t reg;
333 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
334 
335 #define TCC_FCTRLA_OFFSET 0x0C
336 #define TCC_FCTRLA_RESETVALUE _U_(0x00000000)
338 #define TCC_FCTRLA_SRC_Pos 0
339 #define TCC_FCTRLA_SRC_Msk (_U_(0x3) << TCC_FCTRLA_SRC_Pos)
340 #define TCC_FCTRLA_SRC(value) (TCC_FCTRLA_SRC_Msk & ((value) << TCC_FCTRLA_SRC_Pos))
341 #define TCC_FCTRLA_SRC_DISABLE_Val _U_(0x0)
342 #define TCC_FCTRLA_SRC_ENABLE_Val _U_(0x1)
343 #define TCC_FCTRLA_SRC_INVERT_Val _U_(0x2)
344 #define TCC_FCTRLA_SRC_ALTFAULT_Val _U_(0x3)
345 #define TCC_FCTRLA_SRC_DISABLE (TCC_FCTRLA_SRC_DISABLE_Val << TCC_FCTRLA_SRC_Pos)
346 #define TCC_FCTRLA_SRC_ENABLE (TCC_FCTRLA_SRC_ENABLE_Val << TCC_FCTRLA_SRC_Pos)
347 #define TCC_FCTRLA_SRC_INVERT (TCC_FCTRLA_SRC_INVERT_Val << TCC_FCTRLA_SRC_Pos)
348 #define TCC_FCTRLA_SRC_ALTFAULT (TCC_FCTRLA_SRC_ALTFAULT_Val << TCC_FCTRLA_SRC_Pos)
349 #define TCC_FCTRLA_KEEP_Pos 3
350 #define TCC_FCTRLA_KEEP (_U_(0x1) << TCC_FCTRLA_KEEP_Pos)
351 #define TCC_FCTRLA_QUAL_Pos 4
352 #define TCC_FCTRLA_QUAL (_U_(0x1) << TCC_FCTRLA_QUAL_Pos)
353 #define TCC_FCTRLA_BLANK_Pos 5
354 #define TCC_FCTRLA_BLANK_Msk (_U_(0x3) << TCC_FCTRLA_BLANK_Pos)
355 #define TCC_FCTRLA_BLANK(value) (TCC_FCTRLA_BLANK_Msk & ((value) << TCC_FCTRLA_BLANK_Pos))
356 #define TCC_FCTRLA_BLANK_START_Val _U_(0x0)
357 #define TCC_FCTRLA_BLANK_RISE_Val _U_(0x1)
358 #define TCC_FCTRLA_BLANK_FALL_Val _U_(0x2)
359 #define TCC_FCTRLA_BLANK_BOTH_Val _U_(0x3)
360 #define TCC_FCTRLA_BLANK_START (TCC_FCTRLA_BLANK_START_Val << TCC_FCTRLA_BLANK_Pos)
361 #define TCC_FCTRLA_BLANK_RISE (TCC_FCTRLA_BLANK_RISE_Val << TCC_FCTRLA_BLANK_Pos)
362 #define TCC_FCTRLA_BLANK_FALL (TCC_FCTRLA_BLANK_FALL_Val << TCC_FCTRLA_BLANK_Pos)
363 #define TCC_FCTRLA_BLANK_BOTH (TCC_FCTRLA_BLANK_BOTH_Val << TCC_FCTRLA_BLANK_Pos)
364 #define TCC_FCTRLA_RESTART_Pos 7
365 #define TCC_FCTRLA_RESTART (_U_(0x1) << TCC_FCTRLA_RESTART_Pos)
366 #define TCC_FCTRLA_HALT_Pos 8
367 #define TCC_FCTRLA_HALT_Msk (_U_(0x3) << TCC_FCTRLA_HALT_Pos)
368 #define TCC_FCTRLA_HALT(value) (TCC_FCTRLA_HALT_Msk & ((value) << TCC_FCTRLA_HALT_Pos))
369 #define TCC_FCTRLA_HALT_DISABLE_Val _U_(0x0)
370 #define TCC_FCTRLA_HALT_HW_Val _U_(0x1)
371 #define TCC_FCTRLA_HALT_SW_Val _U_(0x2)
372 #define TCC_FCTRLA_HALT_NR_Val _U_(0x3)
373 #define TCC_FCTRLA_HALT_DISABLE (TCC_FCTRLA_HALT_DISABLE_Val << TCC_FCTRLA_HALT_Pos)
374 #define TCC_FCTRLA_HALT_HW (TCC_FCTRLA_HALT_HW_Val << TCC_FCTRLA_HALT_Pos)
375 #define TCC_FCTRLA_HALT_SW (TCC_FCTRLA_HALT_SW_Val << TCC_FCTRLA_HALT_Pos)
376 #define TCC_FCTRLA_HALT_NR (TCC_FCTRLA_HALT_NR_Val << TCC_FCTRLA_HALT_Pos)
377 #define TCC_FCTRLA_CHSEL_Pos 10
378 #define TCC_FCTRLA_CHSEL_Msk (_U_(0x3) << TCC_FCTRLA_CHSEL_Pos)
379 #define TCC_FCTRLA_CHSEL(value) (TCC_FCTRLA_CHSEL_Msk & ((value) << TCC_FCTRLA_CHSEL_Pos))
380 #define TCC_FCTRLA_CHSEL_CC0_Val _U_(0x0)
381 #define TCC_FCTRLA_CHSEL_CC1_Val _U_(0x1)
382 #define TCC_FCTRLA_CHSEL_CC2_Val _U_(0x2)
383 #define TCC_FCTRLA_CHSEL_CC3_Val _U_(0x3)
384 #define TCC_FCTRLA_CHSEL_CC0 (TCC_FCTRLA_CHSEL_CC0_Val << TCC_FCTRLA_CHSEL_Pos)
385 #define TCC_FCTRLA_CHSEL_CC1 (TCC_FCTRLA_CHSEL_CC1_Val << TCC_FCTRLA_CHSEL_Pos)
386 #define TCC_FCTRLA_CHSEL_CC2 (TCC_FCTRLA_CHSEL_CC2_Val << TCC_FCTRLA_CHSEL_Pos)
387 #define TCC_FCTRLA_CHSEL_CC3 (TCC_FCTRLA_CHSEL_CC3_Val << TCC_FCTRLA_CHSEL_Pos)
388 #define TCC_FCTRLA_CAPTURE_Pos 12
389 #define TCC_FCTRLA_CAPTURE_Msk (_U_(0x7) << TCC_FCTRLA_CAPTURE_Pos)
390 #define TCC_FCTRLA_CAPTURE(value) (TCC_FCTRLA_CAPTURE_Msk & ((value) << TCC_FCTRLA_CAPTURE_Pos))
391 #define TCC_FCTRLA_CAPTURE_DISABLE_Val _U_(0x0)
392 #define TCC_FCTRLA_CAPTURE_CAPT_Val _U_(0x1)
393 #define TCC_FCTRLA_CAPTURE_CAPTMIN_Val _U_(0x2)
394 #define TCC_FCTRLA_CAPTURE_CAPTMAX_Val _U_(0x3)
395 #define TCC_FCTRLA_CAPTURE_LOCMIN_Val _U_(0x4)
396 #define TCC_FCTRLA_CAPTURE_LOCMAX_Val _U_(0x5)
397 #define TCC_FCTRLA_CAPTURE_DERIV0_Val _U_(0x6)
398 #define TCC_FCTRLA_CAPTURE_CAPTMARK_Val _U_(0x7)
399 #define TCC_FCTRLA_CAPTURE_DISABLE (TCC_FCTRLA_CAPTURE_DISABLE_Val << TCC_FCTRLA_CAPTURE_Pos)
400 #define TCC_FCTRLA_CAPTURE_CAPT (TCC_FCTRLA_CAPTURE_CAPT_Val << TCC_FCTRLA_CAPTURE_Pos)
401 #define TCC_FCTRLA_CAPTURE_CAPTMIN (TCC_FCTRLA_CAPTURE_CAPTMIN_Val << TCC_FCTRLA_CAPTURE_Pos)
402 #define TCC_FCTRLA_CAPTURE_CAPTMAX (TCC_FCTRLA_CAPTURE_CAPTMAX_Val << TCC_FCTRLA_CAPTURE_Pos)
403 #define TCC_FCTRLA_CAPTURE_LOCMIN (TCC_FCTRLA_CAPTURE_LOCMIN_Val << TCC_FCTRLA_CAPTURE_Pos)
404 #define TCC_FCTRLA_CAPTURE_LOCMAX (TCC_FCTRLA_CAPTURE_LOCMAX_Val << TCC_FCTRLA_CAPTURE_Pos)
405 #define TCC_FCTRLA_CAPTURE_DERIV0 (TCC_FCTRLA_CAPTURE_DERIV0_Val << TCC_FCTRLA_CAPTURE_Pos)
406 #define TCC_FCTRLA_CAPTURE_CAPTMARK (TCC_FCTRLA_CAPTURE_CAPTMARK_Val << TCC_FCTRLA_CAPTURE_Pos)
407 #define TCC_FCTRLA_BLANKPRESC_Pos 15
408 #define TCC_FCTRLA_BLANKPRESC (_U_(0x1) << TCC_FCTRLA_BLANKPRESC_Pos)
409 #define TCC_FCTRLA_BLANKVAL_Pos 16
410 #define TCC_FCTRLA_BLANKVAL_Msk (_U_(0xFF) << TCC_FCTRLA_BLANKVAL_Pos)
411 #define TCC_FCTRLA_BLANKVAL(value) (TCC_FCTRLA_BLANKVAL_Msk & ((value) << TCC_FCTRLA_BLANKVAL_Pos))
412 #define TCC_FCTRLA_FILTERVAL_Pos 24
413 #define TCC_FCTRLA_FILTERVAL_Msk (_U_(0xF) << TCC_FCTRLA_FILTERVAL_Pos)
414 #define TCC_FCTRLA_FILTERVAL(value) (TCC_FCTRLA_FILTERVAL_Msk & ((value) << TCC_FCTRLA_FILTERVAL_Pos))
415 #define TCC_FCTRLA_MASK _U_(0x0FFFFFFB)
417 /* -------- TCC_FCTRLB : (TCC Offset: 0x10) (R/W 32) Recoverable Fault B Configuration -------- */
418 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
419 typedef union {
420  struct {
421  uint32_t SRC:2;
422  uint32_t :1;
423  uint32_t KEEP:1;
424  uint32_t QUAL:1;
425  uint32_t BLANK:2;
426  uint32_t RESTART:1;
427  uint32_t HALT:2;
428  uint32_t CHSEL:2;
429  uint32_t CAPTURE:3;
430  uint32_t BLANKPRESC:1;
431  uint32_t BLANKVAL:8;
432  uint32_t FILTERVAL:4;
433  uint32_t :4;
434  } bit;
435  uint32_t reg;
437 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
438 
439 #define TCC_FCTRLB_OFFSET 0x10
440 #define TCC_FCTRLB_RESETVALUE _U_(0x00000000)
442 #define TCC_FCTRLB_SRC_Pos 0
443 #define TCC_FCTRLB_SRC_Msk (_U_(0x3) << TCC_FCTRLB_SRC_Pos)
444 #define TCC_FCTRLB_SRC(value) (TCC_FCTRLB_SRC_Msk & ((value) << TCC_FCTRLB_SRC_Pos))
445 #define TCC_FCTRLB_SRC_DISABLE_Val _U_(0x0)
446 #define TCC_FCTRLB_SRC_ENABLE_Val _U_(0x1)
447 #define TCC_FCTRLB_SRC_INVERT_Val _U_(0x2)
448 #define TCC_FCTRLB_SRC_ALTFAULT_Val _U_(0x3)
449 #define TCC_FCTRLB_SRC_DISABLE (TCC_FCTRLB_SRC_DISABLE_Val << TCC_FCTRLB_SRC_Pos)
450 #define TCC_FCTRLB_SRC_ENABLE (TCC_FCTRLB_SRC_ENABLE_Val << TCC_FCTRLB_SRC_Pos)
451 #define TCC_FCTRLB_SRC_INVERT (TCC_FCTRLB_SRC_INVERT_Val << TCC_FCTRLB_SRC_Pos)
452 #define TCC_FCTRLB_SRC_ALTFAULT (TCC_FCTRLB_SRC_ALTFAULT_Val << TCC_FCTRLB_SRC_Pos)
453 #define TCC_FCTRLB_KEEP_Pos 3
454 #define TCC_FCTRLB_KEEP (_U_(0x1) << TCC_FCTRLB_KEEP_Pos)
455 #define TCC_FCTRLB_QUAL_Pos 4
456 #define TCC_FCTRLB_QUAL (_U_(0x1) << TCC_FCTRLB_QUAL_Pos)
457 #define TCC_FCTRLB_BLANK_Pos 5
458 #define TCC_FCTRLB_BLANK_Msk (_U_(0x3) << TCC_FCTRLB_BLANK_Pos)
459 #define TCC_FCTRLB_BLANK(value) (TCC_FCTRLB_BLANK_Msk & ((value) << TCC_FCTRLB_BLANK_Pos))
460 #define TCC_FCTRLB_BLANK_START_Val _U_(0x0)
461 #define TCC_FCTRLB_BLANK_RISE_Val _U_(0x1)
462 #define TCC_FCTRLB_BLANK_FALL_Val _U_(0x2)
463 #define TCC_FCTRLB_BLANK_BOTH_Val _U_(0x3)
464 #define TCC_FCTRLB_BLANK_START (TCC_FCTRLB_BLANK_START_Val << TCC_FCTRLB_BLANK_Pos)
465 #define TCC_FCTRLB_BLANK_RISE (TCC_FCTRLB_BLANK_RISE_Val << TCC_FCTRLB_BLANK_Pos)
466 #define TCC_FCTRLB_BLANK_FALL (TCC_FCTRLB_BLANK_FALL_Val << TCC_FCTRLB_BLANK_Pos)
467 #define TCC_FCTRLB_BLANK_BOTH (TCC_FCTRLB_BLANK_BOTH_Val << TCC_FCTRLB_BLANK_Pos)
468 #define TCC_FCTRLB_RESTART_Pos 7
469 #define TCC_FCTRLB_RESTART (_U_(0x1) << TCC_FCTRLB_RESTART_Pos)
470 #define TCC_FCTRLB_HALT_Pos 8
471 #define TCC_FCTRLB_HALT_Msk (_U_(0x3) << TCC_FCTRLB_HALT_Pos)
472 #define TCC_FCTRLB_HALT(value) (TCC_FCTRLB_HALT_Msk & ((value) << TCC_FCTRLB_HALT_Pos))
473 #define TCC_FCTRLB_HALT_DISABLE_Val _U_(0x0)
474 #define TCC_FCTRLB_HALT_HW_Val _U_(0x1)
475 #define TCC_FCTRLB_HALT_SW_Val _U_(0x2)
476 #define TCC_FCTRLB_HALT_NR_Val _U_(0x3)
477 #define TCC_FCTRLB_HALT_DISABLE (TCC_FCTRLB_HALT_DISABLE_Val << TCC_FCTRLB_HALT_Pos)
478 #define TCC_FCTRLB_HALT_HW (TCC_FCTRLB_HALT_HW_Val << TCC_FCTRLB_HALT_Pos)
479 #define TCC_FCTRLB_HALT_SW (TCC_FCTRLB_HALT_SW_Val << TCC_FCTRLB_HALT_Pos)
480 #define TCC_FCTRLB_HALT_NR (TCC_FCTRLB_HALT_NR_Val << TCC_FCTRLB_HALT_Pos)
481 #define TCC_FCTRLB_CHSEL_Pos 10
482 #define TCC_FCTRLB_CHSEL_Msk (_U_(0x3) << TCC_FCTRLB_CHSEL_Pos)
483 #define TCC_FCTRLB_CHSEL(value) (TCC_FCTRLB_CHSEL_Msk & ((value) << TCC_FCTRLB_CHSEL_Pos))
484 #define TCC_FCTRLB_CHSEL_CC0_Val _U_(0x0)
485 #define TCC_FCTRLB_CHSEL_CC1_Val _U_(0x1)
486 #define TCC_FCTRLB_CHSEL_CC2_Val _U_(0x2)
487 #define TCC_FCTRLB_CHSEL_CC3_Val _U_(0x3)
488 #define TCC_FCTRLB_CHSEL_CC0 (TCC_FCTRLB_CHSEL_CC0_Val << TCC_FCTRLB_CHSEL_Pos)
489 #define TCC_FCTRLB_CHSEL_CC1 (TCC_FCTRLB_CHSEL_CC1_Val << TCC_FCTRLB_CHSEL_Pos)
490 #define TCC_FCTRLB_CHSEL_CC2 (TCC_FCTRLB_CHSEL_CC2_Val << TCC_FCTRLB_CHSEL_Pos)
491 #define TCC_FCTRLB_CHSEL_CC3 (TCC_FCTRLB_CHSEL_CC3_Val << TCC_FCTRLB_CHSEL_Pos)
492 #define TCC_FCTRLB_CAPTURE_Pos 12
493 #define TCC_FCTRLB_CAPTURE_Msk (_U_(0x7) << TCC_FCTRLB_CAPTURE_Pos)
494 #define TCC_FCTRLB_CAPTURE(value) (TCC_FCTRLB_CAPTURE_Msk & ((value) << TCC_FCTRLB_CAPTURE_Pos))
495 #define TCC_FCTRLB_CAPTURE_DISABLE_Val _U_(0x0)
496 #define TCC_FCTRLB_CAPTURE_CAPT_Val _U_(0x1)
497 #define TCC_FCTRLB_CAPTURE_CAPTMIN_Val _U_(0x2)
498 #define TCC_FCTRLB_CAPTURE_CAPTMAX_Val _U_(0x3)
499 #define TCC_FCTRLB_CAPTURE_LOCMIN_Val _U_(0x4)
500 #define TCC_FCTRLB_CAPTURE_LOCMAX_Val _U_(0x5)
501 #define TCC_FCTRLB_CAPTURE_DERIV0_Val _U_(0x6)
502 #define TCC_FCTRLB_CAPTURE_CAPTMARK_Val _U_(0x7)
503 #define TCC_FCTRLB_CAPTURE_DISABLE (TCC_FCTRLB_CAPTURE_DISABLE_Val << TCC_FCTRLB_CAPTURE_Pos)
504 #define TCC_FCTRLB_CAPTURE_CAPT (TCC_FCTRLB_CAPTURE_CAPT_Val << TCC_FCTRLB_CAPTURE_Pos)
505 #define TCC_FCTRLB_CAPTURE_CAPTMIN (TCC_FCTRLB_CAPTURE_CAPTMIN_Val << TCC_FCTRLB_CAPTURE_Pos)
506 #define TCC_FCTRLB_CAPTURE_CAPTMAX (TCC_FCTRLB_CAPTURE_CAPTMAX_Val << TCC_FCTRLB_CAPTURE_Pos)
507 #define TCC_FCTRLB_CAPTURE_LOCMIN (TCC_FCTRLB_CAPTURE_LOCMIN_Val << TCC_FCTRLB_CAPTURE_Pos)
508 #define TCC_FCTRLB_CAPTURE_LOCMAX (TCC_FCTRLB_CAPTURE_LOCMAX_Val << TCC_FCTRLB_CAPTURE_Pos)
509 #define TCC_FCTRLB_CAPTURE_DERIV0 (TCC_FCTRLB_CAPTURE_DERIV0_Val << TCC_FCTRLB_CAPTURE_Pos)
510 #define TCC_FCTRLB_CAPTURE_CAPTMARK (TCC_FCTRLB_CAPTURE_CAPTMARK_Val << TCC_FCTRLB_CAPTURE_Pos)
511 #define TCC_FCTRLB_BLANKPRESC_Pos 15
512 #define TCC_FCTRLB_BLANKPRESC (_U_(0x1) << TCC_FCTRLB_BLANKPRESC_Pos)
513 #define TCC_FCTRLB_BLANKVAL_Pos 16
514 #define TCC_FCTRLB_BLANKVAL_Msk (_U_(0xFF) << TCC_FCTRLB_BLANKVAL_Pos)
515 #define TCC_FCTRLB_BLANKVAL(value) (TCC_FCTRLB_BLANKVAL_Msk & ((value) << TCC_FCTRLB_BLANKVAL_Pos))
516 #define TCC_FCTRLB_FILTERVAL_Pos 24
517 #define TCC_FCTRLB_FILTERVAL_Msk (_U_(0xF) << TCC_FCTRLB_FILTERVAL_Pos)
518 #define TCC_FCTRLB_FILTERVAL(value) (TCC_FCTRLB_FILTERVAL_Msk & ((value) << TCC_FCTRLB_FILTERVAL_Pos))
519 #define TCC_FCTRLB_MASK _U_(0x0FFFFFFB)
521 /* -------- TCC_WEXCTRL : (TCC Offset: 0x14) (R/W 32) Waveform Extension Configuration -------- */
522 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
523 typedef union {
524  struct {
525  uint32_t OTMX:2;
526  uint32_t :6;
527  uint32_t DTIEN0:1;
528  uint32_t DTIEN1:1;
529  uint32_t DTIEN2:1;
530  uint32_t DTIEN3:1;
531  uint32_t :4;
532  uint32_t DTLS:8;
533  uint32_t DTHS:8;
534  } bit;
535  struct {
536  uint32_t :8;
537  uint32_t DTIEN:4;
538  uint32_t :20;
539  } vec;
540  uint32_t reg;
542 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
543 
544 #define TCC_WEXCTRL_OFFSET 0x14
545 #define TCC_WEXCTRL_RESETVALUE _U_(0x00000000)
547 #define TCC_WEXCTRL_OTMX_Pos 0
548 #define TCC_WEXCTRL_OTMX_Msk (_U_(0x3) << TCC_WEXCTRL_OTMX_Pos)
549 #define TCC_WEXCTRL_OTMX(value) (TCC_WEXCTRL_OTMX_Msk & ((value) << TCC_WEXCTRL_OTMX_Pos))
550 #define TCC_WEXCTRL_DTIEN0_Pos 8
551 #define TCC_WEXCTRL_DTIEN0 (_U_(1) << TCC_WEXCTRL_DTIEN0_Pos)
552 #define TCC_WEXCTRL_DTIEN1_Pos 9
553 #define TCC_WEXCTRL_DTIEN1 (_U_(1) << TCC_WEXCTRL_DTIEN1_Pos)
554 #define TCC_WEXCTRL_DTIEN2_Pos 10
555 #define TCC_WEXCTRL_DTIEN2 (_U_(1) << TCC_WEXCTRL_DTIEN2_Pos)
556 #define TCC_WEXCTRL_DTIEN3_Pos 11
557 #define TCC_WEXCTRL_DTIEN3 (_U_(1) << TCC_WEXCTRL_DTIEN3_Pos)
558 #define TCC_WEXCTRL_DTIEN_Pos 8
559 #define TCC_WEXCTRL_DTIEN_Msk (_U_(0xF) << TCC_WEXCTRL_DTIEN_Pos)
560 #define TCC_WEXCTRL_DTIEN(value) (TCC_WEXCTRL_DTIEN_Msk & ((value) << TCC_WEXCTRL_DTIEN_Pos))
561 #define TCC_WEXCTRL_DTLS_Pos 16
562 #define TCC_WEXCTRL_DTLS_Msk (_U_(0xFF) << TCC_WEXCTRL_DTLS_Pos)
563 #define TCC_WEXCTRL_DTLS(value) (TCC_WEXCTRL_DTLS_Msk & ((value) << TCC_WEXCTRL_DTLS_Pos))
564 #define TCC_WEXCTRL_DTHS_Pos 24
565 #define TCC_WEXCTRL_DTHS_Msk (_U_(0xFF) << TCC_WEXCTRL_DTHS_Pos)
566 #define TCC_WEXCTRL_DTHS(value) (TCC_WEXCTRL_DTHS_Msk & ((value) << TCC_WEXCTRL_DTHS_Pos))
567 #define TCC_WEXCTRL_MASK _U_(0xFFFF0F03)
569 /* -------- TCC_DRVCTRL : (TCC Offset: 0x18) (R/W 32) Driver Control -------- */
570 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
571 typedef union {
572  struct {
573  uint32_t NRE0:1;
574  uint32_t NRE1:1;
575  uint32_t NRE2:1;
576  uint32_t NRE3:1;
577  uint32_t NRE4:1;
578  uint32_t NRE5:1;
579  uint32_t NRE6:1;
580  uint32_t NRE7:1;
581  uint32_t NRV0:1;
582  uint32_t NRV1:1;
583  uint32_t NRV2:1;
584  uint32_t NRV3:1;
585  uint32_t NRV4:1;
586  uint32_t NRV5:1;
587  uint32_t NRV6:1;
588  uint32_t NRV7:1;
589  uint32_t INVEN0:1;
590  uint32_t INVEN1:1;
591  uint32_t INVEN2:1;
592  uint32_t INVEN3:1;
593  uint32_t INVEN4:1;
594  uint32_t INVEN5:1;
595  uint32_t INVEN6:1;
596  uint32_t INVEN7:1;
597  uint32_t FILTERVAL0:4;
598  uint32_t FILTERVAL1:4;
599  } bit;
600  struct {
601  uint32_t NRE:8;
602  uint32_t NRV:8;
603  uint32_t INVEN:8;
604  uint32_t :8;
605  } vec;
606  uint32_t reg;
608 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
609 
610 #define TCC_DRVCTRL_OFFSET 0x18
611 #define TCC_DRVCTRL_RESETVALUE _U_(0x00000000)
613 #define TCC_DRVCTRL_NRE0_Pos 0
614 #define TCC_DRVCTRL_NRE0 (_U_(1) << TCC_DRVCTRL_NRE0_Pos)
615 #define TCC_DRVCTRL_NRE1_Pos 1
616 #define TCC_DRVCTRL_NRE1 (_U_(1) << TCC_DRVCTRL_NRE1_Pos)
617 #define TCC_DRVCTRL_NRE2_Pos 2
618 #define TCC_DRVCTRL_NRE2 (_U_(1) << TCC_DRVCTRL_NRE2_Pos)
619 #define TCC_DRVCTRL_NRE3_Pos 3
620 #define TCC_DRVCTRL_NRE3 (_U_(1) << TCC_DRVCTRL_NRE3_Pos)
621 #define TCC_DRVCTRL_NRE4_Pos 4
622 #define TCC_DRVCTRL_NRE4 (_U_(1) << TCC_DRVCTRL_NRE4_Pos)
623 #define TCC_DRVCTRL_NRE5_Pos 5
624 #define TCC_DRVCTRL_NRE5 (_U_(1) << TCC_DRVCTRL_NRE5_Pos)
625 #define TCC_DRVCTRL_NRE6_Pos 6
626 #define TCC_DRVCTRL_NRE6 (_U_(1) << TCC_DRVCTRL_NRE6_Pos)
627 #define TCC_DRVCTRL_NRE7_Pos 7
628 #define TCC_DRVCTRL_NRE7 (_U_(1) << TCC_DRVCTRL_NRE7_Pos)
629 #define TCC_DRVCTRL_NRE_Pos 0
630 #define TCC_DRVCTRL_NRE_Msk (_U_(0xFF) << TCC_DRVCTRL_NRE_Pos)
631 #define TCC_DRVCTRL_NRE(value) (TCC_DRVCTRL_NRE_Msk & ((value) << TCC_DRVCTRL_NRE_Pos))
632 #define TCC_DRVCTRL_NRV0_Pos 8
633 #define TCC_DRVCTRL_NRV0 (_U_(1) << TCC_DRVCTRL_NRV0_Pos)
634 #define TCC_DRVCTRL_NRV1_Pos 9
635 #define TCC_DRVCTRL_NRV1 (_U_(1) << TCC_DRVCTRL_NRV1_Pos)
636 #define TCC_DRVCTRL_NRV2_Pos 10
637 #define TCC_DRVCTRL_NRV2 (_U_(1) << TCC_DRVCTRL_NRV2_Pos)
638 #define TCC_DRVCTRL_NRV3_Pos 11
639 #define TCC_DRVCTRL_NRV3 (_U_(1) << TCC_DRVCTRL_NRV3_Pos)
640 #define TCC_DRVCTRL_NRV4_Pos 12
641 #define TCC_DRVCTRL_NRV4 (_U_(1) << TCC_DRVCTRL_NRV4_Pos)
642 #define TCC_DRVCTRL_NRV5_Pos 13
643 #define TCC_DRVCTRL_NRV5 (_U_(1) << TCC_DRVCTRL_NRV5_Pos)
644 #define TCC_DRVCTRL_NRV6_Pos 14
645 #define TCC_DRVCTRL_NRV6 (_U_(1) << TCC_DRVCTRL_NRV6_Pos)
646 #define TCC_DRVCTRL_NRV7_Pos 15
647 #define TCC_DRVCTRL_NRV7 (_U_(1) << TCC_DRVCTRL_NRV7_Pos)
648 #define TCC_DRVCTRL_NRV_Pos 8
649 #define TCC_DRVCTRL_NRV_Msk (_U_(0xFF) << TCC_DRVCTRL_NRV_Pos)
650 #define TCC_DRVCTRL_NRV(value) (TCC_DRVCTRL_NRV_Msk & ((value) << TCC_DRVCTRL_NRV_Pos))
651 #define TCC_DRVCTRL_INVEN0_Pos 16
652 #define TCC_DRVCTRL_INVEN0 (_U_(1) << TCC_DRVCTRL_INVEN0_Pos)
653 #define TCC_DRVCTRL_INVEN1_Pos 17
654 #define TCC_DRVCTRL_INVEN1 (_U_(1) << TCC_DRVCTRL_INVEN1_Pos)
655 #define TCC_DRVCTRL_INVEN2_Pos 18
656 #define TCC_DRVCTRL_INVEN2 (_U_(1) << TCC_DRVCTRL_INVEN2_Pos)
657 #define TCC_DRVCTRL_INVEN3_Pos 19
658 #define TCC_DRVCTRL_INVEN3 (_U_(1) << TCC_DRVCTRL_INVEN3_Pos)
659 #define TCC_DRVCTRL_INVEN4_Pos 20
660 #define TCC_DRVCTRL_INVEN4 (_U_(1) << TCC_DRVCTRL_INVEN4_Pos)
661 #define TCC_DRVCTRL_INVEN5_Pos 21
662 #define TCC_DRVCTRL_INVEN5 (_U_(1) << TCC_DRVCTRL_INVEN5_Pos)
663 #define TCC_DRVCTRL_INVEN6_Pos 22
664 #define TCC_DRVCTRL_INVEN6 (_U_(1) << TCC_DRVCTRL_INVEN6_Pos)
665 #define TCC_DRVCTRL_INVEN7_Pos 23
666 #define TCC_DRVCTRL_INVEN7 (_U_(1) << TCC_DRVCTRL_INVEN7_Pos)
667 #define TCC_DRVCTRL_INVEN_Pos 16
668 #define TCC_DRVCTRL_INVEN_Msk (_U_(0xFF) << TCC_DRVCTRL_INVEN_Pos)
669 #define TCC_DRVCTRL_INVEN(value) (TCC_DRVCTRL_INVEN_Msk & ((value) << TCC_DRVCTRL_INVEN_Pos))
670 #define TCC_DRVCTRL_FILTERVAL0_Pos 24
671 #define TCC_DRVCTRL_FILTERVAL0_Msk (_U_(0xF) << TCC_DRVCTRL_FILTERVAL0_Pos)
672 #define TCC_DRVCTRL_FILTERVAL0(value) (TCC_DRVCTRL_FILTERVAL0_Msk & ((value) << TCC_DRVCTRL_FILTERVAL0_Pos))
673 #define TCC_DRVCTRL_FILTERVAL1_Pos 28
674 #define TCC_DRVCTRL_FILTERVAL1_Msk (_U_(0xF) << TCC_DRVCTRL_FILTERVAL1_Pos)
675 #define TCC_DRVCTRL_FILTERVAL1(value) (TCC_DRVCTRL_FILTERVAL1_Msk & ((value) << TCC_DRVCTRL_FILTERVAL1_Pos))
676 #define TCC_DRVCTRL_MASK _U_(0xFFFFFFFF)
678 /* -------- TCC_DBGCTRL : (TCC Offset: 0x1E) (R/W 8) Debug Control -------- */
679 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
680 typedef union {
681  struct {
682  uint8_t DBGRUN:1;
683  uint8_t :1;
684  uint8_t FDDBD:1;
685  uint8_t :5;
686  } bit;
687  uint8_t reg;
689 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
690 
691 #define TCC_DBGCTRL_OFFSET 0x1E
692 #define TCC_DBGCTRL_RESETVALUE _U_(0x00)
694 #define TCC_DBGCTRL_DBGRUN_Pos 0
695 #define TCC_DBGCTRL_DBGRUN (_U_(0x1) << TCC_DBGCTRL_DBGRUN_Pos)
696 #define TCC_DBGCTRL_FDDBD_Pos 2
697 #define TCC_DBGCTRL_FDDBD (_U_(0x1) << TCC_DBGCTRL_FDDBD_Pos)
698 #define TCC_DBGCTRL_MASK _U_(0x05)
700 /* -------- TCC_EVCTRL : (TCC Offset: 0x20) (R/W 32) Event Control -------- */
701 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
702 typedef union {
703  struct {
704  uint32_t EVACT0:3;
705  uint32_t EVACT1:3;
706  uint32_t CNTSEL:2;
707  uint32_t OVFEO:1;
708  uint32_t TRGEO:1;
709  uint32_t CNTEO:1;
710  uint32_t :1;
711  uint32_t TCINV0:1;
712  uint32_t TCINV1:1;
713  uint32_t TCEI0:1;
714  uint32_t TCEI1:1;
715  uint32_t MCEI0:1;
716  uint32_t MCEI1:1;
717  uint32_t MCEI2:1;
718  uint32_t MCEI3:1;
719  uint32_t MCEI4:1;
720  uint32_t MCEI5:1;
721  uint32_t :2;
722  uint32_t MCEO0:1;
723  uint32_t MCEO1:1;
724  uint32_t MCEO2:1;
725  uint32_t MCEO3:1;
726  uint32_t MCEO4:1;
727  uint32_t MCEO5:1;
728  uint32_t :2;
729  } bit;
730  struct {
731  uint32_t :12;
732  uint32_t TCINV:2;
733  uint32_t TCEI:2;
734  uint32_t MCEI:6;
735  uint32_t :2;
736  uint32_t MCEO:6;
737  uint32_t :2;
738  } vec;
739  uint32_t reg;
741 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
742 
743 #define TCC_EVCTRL_OFFSET 0x20
744 #define TCC_EVCTRL_RESETVALUE _U_(0x00000000)
746 #define TCC_EVCTRL_EVACT0_Pos 0
747 #define TCC_EVCTRL_EVACT0_Msk (_U_(0x7) << TCC_EVCTRL_EVACT0_Pos)
748 #define TCC_EVCTRL_EVACT0(value) (TCC_EVCTRL_EVACT0_Msk & ((value) << TCC_EVCTRL_EVACT0_Pos))
749 #define TCC_EVCTRL_EVACT0_OFF_Val _U_(0x0)
750 #define TCC_EVCTRL_EVACT0_RETRIGGER_Val _U_(0x1)
751 #define TCC_EVCTRL_EVACT0_COUNTEV_Val _U_(0x2)
752 #define TCC_EVCTRL_EVACT0_START_Val _U_(0x3)
753 #define TCC_EVCTRL_EVACT0_INC_Val _U_(0x4)
754 #define TCC_EVCTRL_EVACT0_COUNT_Val _U_(0x5)
755 #define TCC_EVCTRL_EVACT0_STAMP_Val _U_(0x6)
756 #define TCC_EVCTRL_EVACT0_FAULT_Val _U_(0x7)
757 #define TCC_EVCTRL_EVACT0_OFF (TCC_EVCTRL_EVACT0_OFF_Val << TCC_EVCTRL_EVACT0_Pos)
758 #define TCC_EVCTRL_EVACT0_RETRIGGER (TCC_EVCTRL_EVACT0_RETRIGGER_Val << TCC_EVCTRL_EVACT0_Pos)
759 #define TCC_EVCTRL_EVACT0_COUNTEV (TCC_EVCTRL_EVACT0_COUNTEV_Val << TCC_EVCTRL_EVACT0_Pos)
760 #define TCC_EVCTRL_EVACT0_START (TCC_EVCTRL_EVACT0_START_Val << TCC_EVCTRL_EVACT0_Pos)
761 #define TCC_EVCTRL_EVACT0_INC (TCC_EVCTRL_EVACT0_INC_Val << TCC_EVCTRL_EVACT0_Pos)
762 #define TCC_EVCTRL_EVACT0_COUNT (TCC_EVCTRL_EVACT0_COUNT_Val << TCC_EVCTRL_EVACT0_Pos)
763 #define TCC_EVCTRL_EVACT0_STAMP (TCC_EVCTRL_EVACT0_STAMP_Val << TCC_EVCTRL_EVACT0_Pos)
764 #define TCC_EVCTRL_EVACT0_FAULT (TCC_EVCTRL_EVACT0_FAULT_Val << TCC_EVCTRL_EVACT0_Pos)
765 #define TCC_EVCTRL_EVACT1_Pos 3
766 #define TCC_EVCTRL_EVACT1_Msk (_U_(0x7) << TCC_EVCTRL_EVACT1_Pos)
767 #define TCC_EVCTRL_EVACT1(value) (TCC_EVCTRL_EVACT1_Msk & ((value) << TCC_EVCTRL_EVACT1_Pos))
768 #define TCC_EVCTRL_EVACT1_OFF_Val _U_(0x0)
769 #define TCC_EVCTRL_EVACT1_RETRIGGER_Val _U_(0x1)
770 #define TCC_EVCTRL_EVACT1_DIR_Val _U_(0x2)
771 #define TCC_EVCTRL_EVACT1_STOP_Val _U_(0x3)
772 #define TCC_EVCTRL_EVACT1_DEC_Val _U_(0x4)
773 #define TCC_EVCTRL_EVACT1_PPW_Val _U_(0x5)
774 #define TCC_EVCTRL_EVACT1_PWP_Val _U_(0x6)
775 #define TCC_EVCTRL_EVACT1_FAULT_Val _U_(0x7)
776 #define TCC_EVCTRL_EVACT1_OFF (TCC_EVCTRL_EVACT1_OFF_Val << TCC_EVCTRL_EVACT1_Pos)
777 #define TCC_EVCTRL_EVACT1_RETRIGGER (TCC_EVCTRL_EVACT1_RETRIGGER_Val << TCC_EVCTRL_EVACT1_Pos)
778 #define TCC_EVCTRL_EVACT1_DIR (TCC_EVCTRL_EVACT1_DIR_Val << TCC_EVCTRL_EVACT1_Pos)
779 #define TCC_EVCTRL_EVACT1_STOP (TCC_EVCTRL_EVACT1_STOP_Val << TCC_EVCTRL_EVACT1_Pos)
780 #define TCC_EVCTRL_EVACT1_DEC (TCC_EVCTRL_EVACT1_DEC_Val << TCC_EVCTRL_EVACT1_Pos)
781 #define TCC_EVCTRL_EVACT1_PPW (TCC_EVCTRL_EVACT1_PPW_Val << TCC_EVCTRL_EVACT1_Pos)
782 #define TCC_EVCTRL_EVACT1_PWP (TCC_EVCTRL_EVACT1_PWP_Val << TCC_EVCTRL_EVACT1_Pos)
783 #define TCC_EVCTRL_EVACT1_FAULT (TCC_EVCTRL_EVACT1_FAULT_Val << TCC_EVCTRL_EVACT1_Pos)
784 #define TCC_EVCTRL_CNTSEL_Pos 6
785 #define TCC_EVCTRL_CNTSEL_Msk (_U_(0x3) << TCC_EVCTRL_CNTSEL_Pos)
786 #define TCC_EVCTRL_CNTSEL(value) (TCC_EVCTRL_CNTSEL_Msk & ((value) << TCC_EVCTRL_CNTSEL_Pos))
787 #define TCC_EVCTRL_CNTSEL_START_Val _U_(0x0)
788 #define TCC_EVCTRL_CNTSEL_END_Val _U_(0x1)
789 #define TCC_EVCTRL_CNTSEL_BETWEEN_Val _U_(0x2)
790 #define TCC_EVCTRL_CNTSEL_BOUNDARY_Val _U_(0x3)
791 #define TCC_EVCTRL_CNTSEL_START (TCC_EVCTRL_CNTSEL_START_Val << TCC_EVCTRL_CNTSEL_Pos)
792 #define TCC_EVCTRL_CNTSEL_END (TCC_EVCTRL_CNTSEL_END_Val << TCC_EVCTRL_CNTSEL_Pos)
793 #define TCC_EVCTRL_CNTSEL_BETWEEN (TCC_EVCTRL_CNTSEL_BETWEEN_Val << TCC_EVCTRL_CNTSEL_Pos)
794 #define TCC_EVCTRL_CNTSEL_BOUNDARY (TCC_EVCTRL_CNTSEL_BOUNDARY_Val << TCC_EVCTRL_CNTSEL_Pos)
795 #define TCC_EVCTRL_OVFEO_Pos 8
796 #define TCC_EVCTRL_OVFEO (_U_(0x1) << TCC_EVCTRL_OVFEO_Pos)
797 #define TCC_EVCTRL_TRGEO_Pos 9
798 #define TCC_EVCTRL_TRGEO (_U_(0x1) << TCC_EVCTRL_TRGEO_Pos)
799 #define TCC_EVCTRL_CNTEO_Pos 10
800 #define TCC_EVCTRL_CNTEO (_U_(0x1) << TCC_EVCTRL_CNTEO_Pos)
801 #define TCC_EVCTRL_TCINV0_Pos 12
802 #define TCC_EVCTRL_TCINV0 (_U_(1) << TCC_EVCTRL_TCINV0_Pos)
803 #define TCC_EVCTRL_TCINV1_Pos 13
804 #define TCC_EVCTRL_TCINV1 (_U_(1) << TCC_EVCTRL_TCINV1_Pos)
805 #define TCC_EVCTRL_TCINV_Pos 12
806 #define TCC_EVCTRL_TCINV_Msk (_U_(0x3) << TCC_EVCTRL_TCINV_Pos)
807 #define TCC_EVCTRL_TCINV(value) (TCC_EVCTRL_TCINV_Msk & ((value) << TCC_EVCTRL_TCINV_Pos))
808 #define TCC_EVCTRL_TCEI0_Pos 14
809 #define TCC_EVCTRL_TCEI0 (_U_(1) << TCC_EVCTRL_TCEI0_Pos)
810 #define TCC_EVCTRL_TCEI1_Pos 15
811 #define TCC_EVCTRL_TCEI1 (_U_(1) << TCC_EVCTRL_TCEI1_Pos)
812 #define TCC_EVCTRL_TCEI_Pos 14
813 #define TCC_EVCTRL_TCEI_Msk (_U_(0x3) << TCC_EVCTRL_TCEI_Pos)
814 #define TCC_EVCTRL_TCEI(value) (TCC_EVCTRL_TCEI_Msk & ((value) << TCC_EVCTRL_TCEI_Pos))
815 #define TCC_EVCTRL_MCEI0_Pos 16
816 #define TCC_EVCTRL_MCEI0 (_U_(1) << TCC_EVCTRL_MCEI0_Pos)
817 #define TCC_EVCTRL_MCEI1_Pos 17
818 #define TCC_EVCTRL_MCEI1 (_U_(1) << TCC_EVCTRL_MCEI1_Pos)
819 #define TCC_EVCTRL_MCEI2_Pos 18
820 #define TCC_EVCTRL_MCEI2 (_U_(1) << TCC_EVCTRL_MCEI2_Pos)
821 #define TCC_EVCTRL_MCEI3_Pos 19
822 #define TCC_EVCTRL_MCEI3 (_U_(1) << TCC_EVCTRL_MCEI3_Pos)
823 #define TCC_EVCTRL_MCEI4_Pos 20
824 #define TCC_EVCTRL_MCEI4 (_U_(1) << TCC_EVCTRL_MCEI4_Pos)
825 #define TCC_EVCTRL_MCEI5_Pos 21
826 #define TCC_EVCTRL_MCEI5 (_U_(1) << TCC_EVCTRL_MCEI5_Pos)
827 #define TCC_EVCTRL_MCEI_Pos 16
828 #define TCC_EVCTRL_MCEI_Msk (_U_(0x3F) << TCC_EVCTRL_MCEI_Pos)
829 #define TCC_EVCTRL_MCEI(value) (TCC_EVCTRL_MCEI_Msk & ((value) << TCC_EVCTRL_MCEI_Pos))
830 #define TCC_EVCTRL_MCEO0_Pos 24
831 #define TCC_EVCTRL_MCEO0 (_U_(1) << TCC_EVCTRL_MCEO0_Pos)
832 #define TCC_EVCTRL_MCEO1_Pos 25
833 #define TCC_EVCTRL_MCEO1 (_U_(1) << TCC_EVCTRL_MCEO1_Pos)
834 #define TCC_EVCTRL_MCEO2_Pos 26
835 #define TCC_EVCTRL_MCEO2 (_U_(1) << TCC_EVCTRL_MCEO2_Pos)
836 #define TCC_EVCTRL_MCEO3_Pos 27
837 #define TCC_EVCTRL_MCEO3 (_U_(1) << TCC_EVCTRL_MCEO3_Pos)
838 #define TCC_EVCTRL_MCEO4_Pos 28
839 #define TCC_EVCTRL_MCEO4 (_U_(1) << TCC_EVCTRL_MCEO4_Pos)
840 #define TCC_EVCTRL_MCEO5_Pos 29
841 #define TCC_EVCTRL_MCEO5 (_U_(1) << TCC_EVCTRL_MCEO5_Pos)
842 #define TCC_EVCTRL_MCEO_Pos 24
843 #define TCC_EVCTRL_MCEO_Msk (_U_(0x3F) << TCC_EVCTRL_MCEO_Pos)
844 #define TCC_EVCTRL_MCEO(value) (TCC_EVCTRL_MCEO_Msk & ((value) << TCC_EVCTRL_MCEO_Pos))
845 #define TCC_EVCTRL_MASK _U_(0x3F3FF7FF)
847 /* -------- TCC_INTENCLR : (TCC Offset: 0x24) (R/W 32) Interrupt Enable Clear -------- */
848 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
849 typedef union {
850  struct {
851  uint32_t OVF:1;
852  uint32_t TRG:1;
853  uint32_t CNT:1;
854  uint32_t ERR:1;
855  uint32_t :6;
856  uint32_t UFS:1;
857  uint32_t DFS:1;
858  uint32_t FAULTA:1;
859  uint32_t FAULTB:1;
860  uint32_t FAULT0:1;
861  uint32_t FAULT1:1;
862  uint32_t MC0:1;
863  uint32_t MC1:1;
864  uint32_t MC2:1;
865  uint32_t MC3:1;
866  uint32_t MC4:1;
867  uint32_t MC5:1;
868  uint32_t :10;
869  } bit;
870  struct {
871  uint32_t :16;
872  uint32_t MC:6;
873  uint32_t :10;
874  } vec;
875  uint32_t reg;
877 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
878 
879 #define TCC_INTENCLR_OFFSET 0x24
880 #define TCC_INTENCLR_RESETVALUE _U_(0x00000000)
882 #define TCC_INTENCLR_OVF_Pos 0
883 #define TCC_INTENCLR_OVF (_U_(0x1) << TCC_INTENCLR_OVF_Pos)
884 #define TCC_INTENCLR_TRG_Pos 1
885 #define TCC_INTENCLR_TRG (_U_(0x1) << TCC_INTENCLR_TRG_Pos)
886 #define TCC_INTENCLR_CNT_Pos 2
887 #define TCC_INTENCLR_CNT (_U_(0x1) << TCC_INTENCLR_CNT_Pos)
888 #define TCC_INTENCLR_ERR_Pos 3
889 #define TCC_INTENCLR_ERR (_U_(0x1) << TCC_INTENCLR_ERR_Pos)
890 #define TCC_INTENCLR_UFS_Pos 10
891 #define TCC_INTENCLR_UFS (_U_(0x1) << TCC_INTENCLR_UFS_Pos)
892 #define TCC_INTENCLR_DFS_Pos 11
893 #define TCC_INTENCLR_DFS (_U_(0x1) << TCC_INTENCLR_DFS_Pos)
894 #define TCC_INTENCLR_FAULTA_Pos 12
895 #define TCC_INTENCLR_FAULTA (_U_(0x1) << TCC_INTENCLR_FAULTA_Pos)
896 #define TCC_INTENCLR_FAULTB_Pos 13
897 #define TCC_INTENCLR_FAULTB (_U_(0x1) << TCC_INTENCLR_FAULTB_Pos)
898 #define TCC_INTENCLR_FAULT0_Pos 14
899 #define TCC_INTENCLR_FAULT0 (_U_(0x1) << TCC_INTENCLR_FAULT0_Pos)
900 #define TCC_INTENCLR_FAULT1_Pos 15
901 #define TCC_INTENCLR_FAULT1 (_U_(0x1) << TCC_INTENCLR_FAULT1_Pos)
902 #define TCC_INTENCLR_MC0_Pos 16
903 #define TCC_INTENCLR_MC0 (_U_(1) << TCC_INTENCLR_MC0_Pos)
904 #define TCC_INTENCLR_MC1_Pos 17
905 #define TCC_INTENCLR_MC1 (_U_(1) << TCC_INTENCLR_MC1_Pos)
906 #define TCC_INTENCLR_MC2_Pos 18
907 #define TCC_INTENCLR_MC2 (_U_(1) << TCC_INTENCLR_MC2_Pos)
908 #define TCC_INTENCLR_MC3_Pos 19
909 #define TCC_INTENCLR_MC3 (_U_(1) << TCC_INTENCLR_MC3_Pos)
910 #define TCC_INTENCLR_MC4_Pos 20
911 #define TCC_INTENCLR_MC4 (_U_(1) << TCC_INTENCLR_MC4_Pos)
912 #define TCC_INTENCLR_MC5_Pos 21
913 #define TCC_INTENCLR_MC5 (_U_(1) << TCC_INTENCLR_MC5_Pos)
914 #define TCC_INTENCLR_MC_Pos 16
915 #define TCC_INTENCLR_MC_Msk (_U_(0x3F) << TCC_INTENCLR_MC_Pos)
916 #define TCC_INTENCLR_MC(value) (TCC_INTENCLR_MC_Msk & ((value) << TCC_INTENCLR_MC_Pos))
917 #define TCC_INTENCLR_MASK _U_(0x003FFC0F)
919 /* -------- TCC_INTENSET : (TCC Offset: 0x28) (R/W 32) Interrupt Enable Set -------- */
920 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
921 typedef union {
922  struct {
923  uint32_t OVF:1;
924  uint32_t TRG:1;
925  uint32_t CNT:1;
926  uint32_t ERR:1;
927  uint32_t :6;
928  uint32_t UFS:1;
929  uint32_t DFS:1;
930  uint32_t FAULTA:1;
931  uint32_t FAULTB:1;
932  uint32_t FAULT0:1;
933  uint32_t FAULT1:1;
934  uint32_t MC0:1;
935  uint32_t MC1:1;
936  uint32_t MC2:1;
937  uint32_t MC3:1;
938  uint32_t MC4:1;
939  uint32_t MC5:1;
940  uint32_t :10;
941  } bit;
942  struct {
943  uint32_t :16;
944  uint32_t MC:6;
945  uint32_t :10;
946  } vec;
947  uint32_t reg;
949 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
950 
951 #define TCC_INTENSET_OFFSET 0x28
952 #define TCC_INTENSET_RESETVALUE _U_(0x00000000)
954 #define TCC_INTENSET_OVF_Pos 0
955 #define TCC_INTENSET_OVF (_U_(0x1) << TCC_INTENSET_OVF_Pos)
956 #define TCC_INTENSET_TRG_Pos 1
957 #define TCC_INTENSET_TRG (_U_(0x1) << TCC_INTENSET_TRG_Pos)
958 #define TCC_INTENSET_CNT_Pos 2
959 #define TCC_INTENSET_CNT (_U_(0x1) << TCC_INTENSET_CNT_Pos)
960 #define TCC_INTENSET_ERR_Pos 3
961 #define TCC_INTENSET_ERR (_U_(0x1) << TCC_INTENSET_ERR_Pos)
962 #define TCC_INTENSET_UFS_Pos 10
963 #define TCC_INTENSET_UFS (_U_(0x1) << TCC_INTENSET_UFS_Pos)
964 #define TCC_INTENSET_DFS_Pos 11
965 #define TCC_INTENSET_DFS (_U_(0x1) << TCC_INTENSET_DFS_Pos)
966 #define TCC_INTENSET_FAULTA_Pos 12
967 #define TCC_INTENSET_FAULTA (_U_(0x1) << TCC_INTENSET_FAULTA_Pos)
968 #define TCC_INTENSET_FAULTB_Pos 13
969 #define TCC_INTENSET_FAULTB (_U_(0x1) << TCC_INTENSET_FAULTB_Pos)
970 #define TCC_INTENSET_FAULT0_Pos 14
971 #define TCC_INTENSET_FAULT0 (_U_(0x1) << TCC_INTENSET_FAULT0_Pos)
972 #define TCC_INTENSET_FAULT1_Pos 15
973 #define TCC_INTENSET_FAULT1 (_U_(0x1) << TCC_INTENSET_FAULT1_Pos)
974 #define TCC_INTENSET_MC0_Pos 16
975 #define TCC_INTENSET_MC0 (_U_(1) << TCC_INTENSET_MC0_Pos)
976 #define TCC_INTENSET_MC1_Pos 17
977 #define TCC_INTENSET_MC1 (_U_(1) << TCC_INTENSET_MC1_Pos)
978 #define TCC_INTENSET_MC2_Pos 18
979 #define TCC_INTENSET_MC2 (_U_(1) << TCC_INTENSET_MC2_Pos)
980 #define TCC_INTENSET_MC3_Pos 19
981 #define TCC_INTENSET_MC3 (_U_(1) << TCC_INTENSET_MC3_Pos)
982 #define TCC_INTENSET_MC4_Pos 20
983 #define TCC_INTENSET_MC4 (_U_(1) << TCC_INTENSET_MC4_Pos)
984 #define TCC_INTENSET_MC5_Pos 21
985 #define TCC_INTENSET_MC5 (_U_(1) << TCC_INTENSET_MC5_Pos)
986 #define TCC_INTENSET_MC_Pos 16
987 #define TCC_INTENSET_MC_Msk (_U_(0x3F) << TCC_INTENSET_MC_Pos)
988 #define TCC_INTENSET_MC(value) (TCC_INTENSET_MC_Msk & ((value) << TCC_INTENSET_MC_Pos))
989 #define TCC_INTENSET_MASK _U_(0x003FFC0F)
991 /* -------- TCC_INTFLAG : (TCC Offset: 0x2C) (R/W 32) Interrupt Flag Status and Clear -------- */
992 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
993 typedef union { // __I to avoid read-modify-write on write-to-clear register
994  struct {
995  __I uint32_t OVF:1;
996  __I uint32_t TRG:1;
997  __I uint32_t CNT:1;
998  __I uint32_t ERR:1;
999  __I uint32_t :6;
1000  __I uint32_t UFS:1;
1001  __I uint32_t DFS:1;
1002  __I uint32_t FAULTA:1;
1003  __I uint32_t FAULTB:1;
1004  __I uint32_t FAULT0:1;
1005  __I uint32_t FAULT1:1;
1006  __I uint32_t MC0:1;
1007  __I uint32_t MC1:1;
1008  __I uint32_t MC2:1;
1009  __I uint32_t MC3:1;
1010  __I uint32_t MC4:1;
1011  __I uint32_t MC5:1;
1012  __I uint32_t :10;
1013  } bit;
1014  struct {
1015  __I uint32_t :16;
1016  __I uint32_t MC:6;
1017  __I uint32_t :10;
1018  } vec;
1019  uint32_t reg;
1021 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1022 
1023 #define TCC_INTFLAG_OFFSET 0x2C
1024 #define TCC_INTFLAG_RESETVALUE _U_(0x00000000)
1026 #define TCC_INTFLAG_OVF_Pos 0
1027 #define TCC_INTFLAG_OVF (_U_(0x1) << TCC_INTFLAG_OVF_Pos)
1028 #define TCC_INTFLAG_TRG_Pos 1
1029 #define TCC_INTFLAG_TRG (_U_(0x1) << TCC_INTFLAG_TRG_Pos)
1030 #define TCC_INTFLAG_CNT_Pos 2
1031 #define TCC_INTFLAG_CNT (_U_(0x1) << TCC_INTFLAG_CNT_Pos)
1032 #define TCC_INTFLAG_ERR_Pos 3
1033 #define TCC_INTFLAG_ERR (_U_(0x1) << TCC_INTFLAG_ERR_Pos)
1034 #define TCC_INTFLAG_UFS_Pos 10
1035 #define TCC_INTFLAG_UFS (_U_(0x1) << TCC_INTFLAG_UFS_Pos)
1036 #define TCC_INTFLAG_DFS_Pos 11
1037 #define TCC_INTFLAG_DFS (_U_(0x1) << TCC_INTFLAG_DFS_Pos)
1038 #define TCC_INTFLAG_FAULTA_Pos 12
1039 #define TCC_INTFLAG_FAULTA (_U_(0x1) << TCC_INTFLAG_FAULTA_Pos)
1040 #define TCC_INTFLAG_FAULTB_Pos 13
1041 #define TCC_INTFLAG_FAULTB (_U_(0x1) << TCC_INTFLAG_FAULTB_Pos)
1042 #define TCC_INTFLAG_FAULT0_Pos 14
1043 #define TCC_INTFLAG_FAULT0 (_U_(0x1) << TCC_INTFLAG_FAULT0_Pos)
1044 #define TCC_INTFLAG_FAULT1_Pos 15
1045 #define TCC_INTFLAG_FAULT1 (_U_(0x1) << TCC_INTFLAG_FAULT1_Pos)
1046 #define TCC_INTFLAG_MC0_Pos 16
1047 #define TCC_INTFLAG_MC0 (_U_(1) << TCC_INTFLAG_MC0_Pos)
1048 #define TCC_INTFLAG_MC1_Pos 17
1049 #define TCC_INTFLAG_MC1 (_U_(1) << TCC_INTFLAG_MC1_Pos)
1050 #define TCC_INTFLAG_MC2_Pos 18
1051 #define TCC_INTFLAG_MC2 (_U_(1) << TCC_INTFLAG_MC2_Pos)
1052 #define TCC_INTFLAG_MC3_Pos 19
1053 #define TCC_INTFLAG_MC3 (_U_(1) << TCC_INTFLAG_MC3_Pos)
1054 #define TCC_INTFLAG_MC4_Pos 20
1055 #define TCC_INTFLAG_MC4 (_U_(1) << TCC_INTFLAG_MC4_Pos)
1056 #define TCC_INTFLAG_MC5_Pos 21
1057 #define TCC_INTFLAG_MC5 (_U_(1) << TCC_INTFLAG_MC5_Pos)
1058 #define TCC_INTFLAG_MC_Pos 16
1059 #define TCC_INTFLAG_MC_Msk (_U_(0x3F) << TCC_INTFLAG_MC_Pos)
1060 #define TCC_INTFLAG_MC(value) (TCC_INTFLAG_MC_Msk & ((value) << TCC_INTFLAG_MC_Pos))
1061 #define TCC_INTFLAG_MASK _U_(0x003FFC0F)
1063 /* -------- TCC_STATUS : (TCC Offset: 0x30) (R/W 32) Status -------- */
1064 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1065 typedef union {
1066  struct {
1067  uint32_t STOP:1;
1068  uint32_t IDX:1;
1069  uint32_t UFS:1;
1070  uint32_t DFS:1;
1071  uint32_t SLAVE:1;
1072  uint32_t PATTBUFV:1;
1073  uint32_t :1;
1074  uint32_t PERBUFV:1;
1075  uint32_t FAULTAIN:1;
1076  uint32_t FAULTBIN:1;
1077  uint32_t FAULT0IN:1;
1078  uint32_t FAULT1IN:1;
1079  uint32_t FAULTA:1;
1080  uint32_t FAULTB:1;
1081  uint32_t FAULT0:1;
1082  uint32_t FAULT1:1;
1083  uint32_t CCBUFV0:1;
1084  uint32_t CCBUFV1:1;
1085  uint32_t CCBUFV2:1;
1086  uint32_t CCBUFV3:1;
1087  uint32_t CCBUFV4:1;
1088  uint32_t CCBUFV5:1;
1089  uint32_t :2;
1090  uint32_t CMP0:1;
1091  uint32_t CMP1:1;
1092  uint32_t CMP2:1;
1093  uint32_t CMP3:1;
1094  uint32_t CMP4:1;
1095  uint32_t CMP5:1;
1096  uint32_t :2;
1097  } bit;
1098  struct {
1099  uint32_t :16;
1100  uint32_t CCBUFV:6;
1101  uint32_t :2;
1102  uint32_t CMP:6;
1103  uint32_t :2;
1104  } vec;
1105  uint32_t reg;
1106 } TCC_STATUS_Type;
1107 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1108 
1109 #define TCC_STATUS_OFFSET 0x30
1110 #define TCC_STATUS_RESETVALUE _U_(0x00000001)
1112 #define TCC_STATUS_STOP_Pos 0
1113 #define TCC_STATUS_STOP (_U_(0x1) << TCC_STATUS_STOP_Pos)
1114 #define TCC_STATUS_IDX_Pos 1
1115 #define TCC_STATUS_IDX (_U_(0x1) << TCC_STATUS_IDX_Pos)
1116 #define TCC_STATUS_UFS_Pos 2
1117 #define TCC_STATUS_UFS (_U_(0x1) << TCC_STATUS_UFS_Pos)
1118 #define TCC_STATUS_DFS_Pos 3
1119 #define TCC_STATUS_DFS (_U_(0x1) << TCC_STATUS_DFS_Pos)
1120 #define TCC_STATUS_SLAVE_Pos 4
1121 #define TCC_STATUS_SLAVE (_U_(0x1) << TCC_STATUS_SLAVE_Pos)
1122 #define TCC_STATUS_PATTBUFV_Pos 5
1123 #define TCC_STATUS_PATTBUFV (_U_(0x1) << TCC_STATUS_PATTBUFV_Pos)
1124 #define TCC_STATUS_PERBUFV_Pos 7
1125 #define TCC_STATUS_PERBUFV (_U_(0x1) << TCC_STATUS_PERBUFV_Pos)
1126 #define TCC_STATUS_FAULTAIN_Pos 8
1127 #define TCC_STATUS_FAULTAIN (_U_(0x1) << TCC_STATUS_FAULTAIN_Pos)
1128 #define TCC_STATUS_FAULTBIN_Pos 9
1129 #define TCC_STATUS_FAULTBIN (_U_(0x1) << TCC_STATUS_FAULTBIN_Pos)
1130 #define TCC_STATUS_FAULT0IN_Pos 10
1131 #define TCC_STATUS_FAULT0IN (_U_(0x1) << TCC_STATUS_FAULT0IN_Pos)
1132 #define TCC_STATUS_FAULT1IN_Pos 11
1133 #define TCC_STATUS_FAULT1IN (_U_(0x1) << TCC_STATUS_FAULT1IN_Pos)
1134 #define TCC_STATUS_FAULTA_Pos 12
1135 #define TCC_STATUS_FAULTA (_U_(0x1) << TCC_STATUS_FAULTA_Pos)
1136 #define TCC_STATUS_FAULTB_Pos 13
1137 #define TCC_STATUS_FAULTB (_U_(0x1) << TCC_STATUS_FAULTB_Pos)
1138 #define TCC_STATUS_FAULT0_Pos 14
1139 #define TCC_STATUS_FAULT0 (_U_(0x1) << TCC_STATUS_FAULT0_Pos)
1140 #define TCC_STATUS_FAULT1_Pos 15
1141 #define TCC_STATUS_FAULT1 (_U_(0x1) << TCC_STATUS_FAULT1_Pos)
1142 #define TCC_STATUS_CCBUFV0_Pos 16
1143 #define TCC_STATUS_CCBUFV0 (_U_(1) << TCC_STATUS_CCBUFV0_Pos)
1144 #define TCC_STATUS_CCBUFV1_Pos 17
1145 #define TCC_STATUS_CCBUFV1 (_U_(1) << TCC_STATUS_CCBUFV1_Pos)
1146 #define TCC_STATUS_CCBUFV2_Pos 18
1147 #define TCC_STATUS_CCBUFV2 (_U_(1) << TCC_STATUS_CCBUFV2_Pos)
1148 #define TCC_STATUS_CCBUFV3_Pos 19
1149 #define TCC_STATUS_CCBUFV3 (_U_(1) << TCC_STATUS_CCBUFV3_Pos)
1150 #define TCC_STATUS_CCBUFV4_Pos 20
1151 #define TCC_STATUS_CCBUFV4 (_U_(1) << TCC_STATUS_CCBUFV4_Pos)
1152 #define TCC_STATUS_CCBUFV5_Pos 21
1153 #define TCC_STATUS_CCBUFV5 (_U_(1) << TCC_STATUS_CCBUFV5_Pos)
1154 #define TCC_STATUS_CCBUFV_Pos 16
1155 #define TCC_STATUS_CCBUFV_Msk (_U_(0x3F) << TCC_STATUS_CCBUFV_Pos)
1156 #define TCC_STATUS_CCBUFV(value) (TCC_STATUS_CCBUFV_Msk & ((value) << TCC_STATUS_CCBUFV_Pos))
1157 #define TCC_STATUS_CMP0_Pos 24
1158 #define TCC_STATUS_CMP0 (_U_(1) << TCC_STATUS_CMP0_Pos)
1159 #define TCC_STATUS_CMP1_Pos 25
1160 #define TCC_STATUS_CMP1 (_U_(1) << TCC_STATUS_CMP1_Pos)
1161 #define TCC_STATUS_CMP2_Pos 26
1162 #define TCC_STATUS_CMP2 (_U_(1) << TCC_STATUS_CMP2_Pos)
1163 #define TCC_STATUS_CMP3_Pos 27
1164 #define TCC_STATUS_CMP3 (_U_(1) << TCC_STATUS_CMP3_Pos)
1165 #define TCC_STATUS_CMP4_Pos 28
1166 #define TCC_STATUS_CMP4 (_U_(1) << TCC_STATUS_CMP4_Pos)
1167 #define TCC_STATUS_CMP5_Pos 29
1168 #define TCC_STATUS_CMP5 (_U_(1) << TCC_STATUS_CMP5_Pos)
1169 #define TCC_STATUS_CMP_Pos 24
1170 #define TCC_STATUS_CMP_Msk (_U_(0x3F) << TCC_STATUS_CMP_Pos)
1171 #define TCC_STATUS_CMP(value) (TCC_STATUS_CMP_Msk & ((value) << TCC_STATUS_CMP_Pos))
1172 #define TCC_STATUS_MASK _U_(0x3F3FFFBF)
1174 /* -------- TCC_COUNT : (TCC Offset: 0x34) (R/W 32) Count -------- */
1175 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1176 typedef union {
1177  struct { // DITH4 mode
1178  uint32_t :4;
1179  uint32_t COUNT:20;
1180  uint32_t :8;
1181  } DITH4;
1182  struct { // DITH5 mode
1183  uint32_t :5;
1184  uint32_t COUNT:19;
1185  uint32_t :8;
1186  } DITH5;
1187  struct { // DITH6 mode
1188  uint32_t :6;
1189  uint32_t COUNT:18;
1190  uint32_t :8;
1191  } DITH6;
1192  struct {
1193  uint32_t COUNT:24;
1194  uint32_t :8;
1195  } bit;
1196  uint32_t reg;
1197 } TCC_COUNT_Type;
1198 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1199 
1200 #define TCC_COUNT_OFFSET 0x34
1201 #define TCC_COUNT_RESETVALUE _U_(0x00000000)
1203 // DITH4 mode
1204 #define TCC_COUNT_DITH4_COUNT_Pos 4
1205 #define TCC_COUNT_DITH4_COUNT_Msk (_U_(0xFFFFF) << TCC_COUNT_DITH4_COUNT_Pos)
1206 #define TCC_COUNT_DITH4_COUNT(value) (TCC_COUNT_DITH4_COUNT_Msk & ((value) << TCC_COUNT_DITH4_COUNT_Pos))
1207 #define TCC_COUNT_DITH4_MASK _U_(0x00FFFFF0)
1209 // DITH5 mode
1210 #define TCC_COUNT_DITH5_COUNT_Pos 5
1211 #define TCC_COUNT_DITH5_COUNT_Msk (_U_(0x7FFFF) << TCC_COUNT_DITH5_COUNT_Pos)
1212 #define TCC_COUNT_DITH5_COUNT(value) (TCC_COUNT_DITH5_COUNT_Msk & ((value) << TCC_COUNT_DITH5_COUNT_Pos))
1213 #define TCC_COUNT_DITH5_MASK _U_(0x00FFFFE0)
1215 // DITH6 mode
1216 #define TCC_COUNT_DITH6_COUNT_Pos 6
1217 #define TCC_COUNT_DITH6_COUNT_Msk (_U_(0x3FFFF) << TCC_COUNT_DITH6_COUNT_Pos)
1218 #define TCC_COUNT_DITH6_COUNT(value) (TCC_COUNT_DITH6_COUNT_Msk & ((value) << TCC_COUNT_DITH6_COUNT_Pos))
1219 #define TCC_COUNT_DITH6_MASK _U_(0x00FFFFC0)
1221 #define TCC_COUNT_COUNT_Pos 0
1222 #define TCC_COUNT_COUNT_Msk (_U_(0xFFFFFF) << TCC_COUNT_COUNT_Pos)
1223 #define TCC_COUNT_COUNT(value) (TCC_COUNT_COUNT_Msk & ((value) << TCC_COUNT_COUNT_Pos))
1224 #define TCC_COUNT_MASK _U_(0x00FFFFFF)
1226 /* -------- TCC_PATT : (TCC Offset: 0x38) (R/W 16) Pattern -------- */
1227 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1228 typedef union {
1229  struct {
1230  uint16_t PGE0:1;
1231  uint16_t PGE1:1;
1232  uint16_t PGE2:1;
1233  uint16_t PGE3:1;
1234  uint16_t PGE4:1;
1235  uint16_t PGE5:1;
1236  uint16_t PGE6:1;
1237  uint16_t PGE7:1;
1238  uint16_t PGV0:1;
1239  uint16_t PGV1:1;
1240  uint16_t PGV2:1;
1241  uint16_t PGV3:1;
1242  uint16_t PGV4:1;
1243  uint16_t PGV5:1;
1244  uint16_t PGV6:1;
1245  uint16_t PGV7:1;
1246  } bit;
1247  struct {
1248  uint16_t PGE:8;
1249  uint16_t PGV:8;
1250  } vec;
1251  uint16_t reg;
1252 } TCC_PATT_Type;
1253 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1254 
1255 #define TCC_PATT_OFFSET 0x38
1256 #define TCC_PATT_RESETVALUE _U_(0x0000)
1258 #define TCC_PATT_PGE0_Pos 0
1259 #define TCC_PATT_PGE0 (_U_(1) << TCC_PATT_PGE0_Pos)
1260 #define TCC_PATT_PGE1_Pos 1
1261 #define TCC_PATT_PGE1 (_U_(1) << TCC_PATT_PGE1_Pos)
1262 #define TCC_PATT_PGE2_Pos 2
1263 #define TCC_PATT_PGE2 (_U_(1) << TCC_PATT_PGE2_Pos)
1264 #define TCC_PATT_PGE3_Pos 3
1265 #define TCC_PATT_PGE3 (_U_(1) << TCC_PATT_PGE3_Pos)
1266 #define TCC_PATT_PGE4_Pos 4
1267 #define TCC_PATT_PGE4 (_U_(1) << TCC_PATT_PGE4_Pos)
1268 #define TCC_PATT_PGE5_Pos 5
1269 #define TCC_PATT_PGE5 (_U_(1) << TCC_PATT_PGE5_Pos)
1270 #define TCC_PATT_PGE6_Pos 6
1271 #define TCC_PATT_PGE6 (_U_(1) << TCC_PATT_PGE6_Pos)
1272 #define TCC_PATT_PGE7_Pos 7
1273 #define TCC_PATT_PGE7 (_U_(1) << TCC_PATT_PGE7_Pos)
1274 #define TCC_PATT_PGE_Pos 0
1275 #define TCC_PATT_PGE_Msk (_U_(0xFF) << TCC_PATT_PGE_Pos)
1276 #define TCC_PATT_PGE(value) (TCC_PATT_PGE_Msk & ((value) << TCC_PATT_PGE_Pos))
1277 #define TCC_PATT_PGV0_Pos 8
1278 #define TCC_PATT_PGV0 (_U_(1) << TCC_PATT_PGV0_Pos)
1279 #define TCC_PATT_PGV1_Pos 9
1280 #define TCC_PATT_PGV1 (_U_(1) << TCC_PATT_PGV1_Pos)
1281 #define TCC_PATT_PGV2_Pos 10
1282 #define TCC_PATT_PGV2 (_U_(1) << TCC_PATT_PGV2_Pos)
1283 #define TCC_PATT_PGV3_Pos 11
1284 #define TCC_PATT_PGV3 (_U_(1) << TCC_PATT_PGV3_Pos)
1285 #define TCC_PATT_PGV4_Pos 12
1286 #define TCC_PATT_PGV4 (_U_(1) << TCC_PATT_PGV4_Pos)
1287 #define TCC_PATT_PGV5_Pos 13
1288 #define TCC_PATT_PGV5 (_U_(1) << TCC_PATT_PGV5_Pos)
1289 #define TCC_PATT_PGV6_Pos 14
1290 #define TCC_PATT_PGV6 (_U_(1) << TCC_PATT_PGV6_Pos)
1291 #define TCC_PATT_PGV7_Pos 15
1292 #define TCC_PATT_PGV7 (_U_(1) << TCC_PATT_PGV7_Pos)
1293 #define TCC_PATT_PGV_Pos 8
1294 #define TCC_PATT_PGV_Msk (_U_(0xFF) << TCC_PATT_PGV_Pos)
1295 #define TCC_PATT_PGV(value) (TCC_PATT_PGV_Msk & ((value) << TCC_PATT_PGV_Pos))
1296 #define TCC_PATT_MASK _U_(0xFFFF)
1298 /* -------- TCC_WAVE : (TCC Offset: 0x3C) (R/W 32) Waveform Control -------- */
1299 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1300 typedef union {
1301  struct {
1302  uint32_t WAVEGEN:3;
1303  uint32_t :1;
1304  uint32_t RAMP:2;
1305  uint32_t :1;
1306  uint32_t CIPEREN:1;
1307  uint32_t CICCEN0:1;
1308  uint32_t CICCEN1:1;
1309  uint32_t CICCEN2:1;
1310  uint32_t CICCEN3:1;
1311  uint32_t :4;
1312  uint32_t POL0:1;
1313  uint32_t POL1:1;
1314  uint32_t POL2:1;
1315  uint32_t POL3:1;
1316  uint32_t POL4:1;
1317  uint32_t POL5:1;
1318  uint32_t :2;
1319  uint32_t SWAP0:1;
1320  uint32_t SWAP1:1;
1321  uint32_t SWAP2:1;
1322  uint32_t SWAP3:1;
1323  uint32_t :4;
1324  } bit;
1325  struct {
1326  uint32_t :8;
1327  uint32_t CICCEN:4;
1328  uint32_t :4;
1329  uint32_t POL:6;
1330  uint32_t :2;
1331  uint32_t SWAP:4;
1332  uint32_t :4;
1333  } vec;
1334  uint32_t reg;
1335 } TCC_WAVE_Type;
1336 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1337 
1338 #define TCC_WAVE_OFFSET 0x3C
1339 #define TCC_WAVE_RESETVALUE _U_(0x00000000)
1341 #define TCC_WAVE_WAVEGEN_Pos 0
1342 #define TCC_WAVE_WAVEGEN_Msk (_U_(0x7) << TCC_WAVE_WAVEGEN_Pos)
1343 #define TCC_WAVE_WAVEGEN(value) (TCC_WAVE_WAVEGEN_Msk & ((value) << TCC_WAVE_WAVEGEN_Pos))
1344 #define TCC_WAVE_WAVEGEN_NFRQ_Val _U_(0x0)
1345 #define TCC_WAVE_WAVEGEN_MFRQ_Val _U_(0x1)
1346 #define TCC_WAVE_WAVEGEN_NPWM_Val _U_(0x2)
1347 #define TCC_WAVE_WAVEGEN_DSCRITICAL_Val _U_(0x4)
1348 #define TCC_WAVE_WAVEGEN_DSBOTTOM_Val _U_(0x5)
1349 #define TCC_WAVE_WAVEGEN_DSBOTH_Val _U_(0x6)
1350 #define TCC_WAVE_WAVEGEN_DSTOP_Val _U_(0x7)
1351 #define TCC_WAVE_WAVEGEN_NFRQ (TCC_WAVE_WAVEGEN_NFRQ_Val << TCC_WAVE_WAVEGEN_Pos)
1352 #define TCC_WAVE_WAVEGEN_MFRQ (TCC_WAVE_WAVEGEN_MFRQ_Val << TCC_WAVE_WAVEGEN_Pos)
1353 #define TCC_WAVE_WAVEGEN_NPWM (TCC_WAVE_WAVEGEN_NPWM_Val << TCC_WAVE_WAVEGEN_Pos)
1354 #define TCC_WAVE_WAVEGEN_DSCRITICAL (TCC_WAVE_WAVEGEN_DSCRITICAL_Val << TCC_WAVE_WAVEGEN_Pos)
1355 #define TCC_WAVE_WAVEGEN_DSBOTTOM (TCC_WAVE_WAVEGEN_DSBOTTOM_Val << TCC_WAVE_WAVEGEN_Pos)
1356 #define TCC_WAVE_WAVEGEN_DSBOTH (TCC_WAVE_WAVEGEN_DSBOTH_Val << TCC_WAVE_WAVEGEN_Pos)
1357 #define TCC_WAVE_WAVEGEN_DSTOP (TCC_WAVE_WAVEGEN_DSTOP_Val << TCC_WAVE_WAVEGEN_Pos)
1358 #define TCC_WAVE_RAMP_Pos 4
1359 #define TCC_WAVE_RAMP_Msk (_U_(0x3) << TCC_WAVE_RAMP_Pos)
1360 #define TCC_WAVE_RAMP(value) (TCC_WAVE_RAMP_Msk & ((value) << TCC_WAVE_RAMP_Pos))
1361 #define TCC_WAVE_RAMP_RAMP1_Val _U_(0x0)
1362 #define TCC_WAVE_RAMP_RAMP2A_Val _U_(0x1)
1363 #define TCC_WAVE_RAMP_RAMP2_Val _U_(0x2)
1364 #define TCC_WAVE_RAMP_RAMP2C_Val _U_(0x3)
1365 #define TCC_WAVE_RAMP_RAMP1 (TCC_WAVE_RAMP_RAMP1_Val << TCC_WAVE_RAMP_Pos)
1366 #define TCC_WAVE_RAMP_RAMP2A (TCC_WAVE_RAMP_RAMP2A_Val << TCC_WAVE_RAMP_Pos)
1367 #define TCC_WAVE_RAMP_RAMP2 (TCC_WAVE_RAMP_RAMP2_Val << TCC_WAVE_RAMP_Pos)
1368 #define TCC_WAVE_RAMP_RAMP2C (TCC_WAVE_RAMP_RAMP2C_Val << TCC_WAVE_RAMP_Pos)
1369 #define TCC_WAVE_CIPEREN_Pos 7
1370 #define TCC_WAVE_CIPEREN (_U_(0x1) << TCC_WAVE_CIPEREN_Pos)
1371 #define TCC_WAVE_CICCEN0_Pos 8
1372 #define TCC_WAVE_CICCEN0 (_U_(1) << TCC_WAVE_CICCEN0_Pos)
1373 #define TCC_WAVE_CICCEN1_Pos 9
1374 #define TCC_WAVE_CICCEN1 (_U_(1) << TCC_WAVE_CICCEN1_Pos)
1375 #define TCC_WAVE_CICCEN2_Pos 10
1376 #define TCC_WAVE_CICCEN2 (_U_(1) << TCC_WAVE_CICCEN2_Pos)
1377 #define TCC_WAVE_CICCEN3_Pos 11
1378 #define TCC_WAVE_CICCEN3 (_U_(1) << TCC_WAVE_CICCEN3_Pos)
1379 #define TCC_WAVE_CICCEN_Pos 8
1380 #define TCC_WAVE_CICCEN_Msk (_U_(0xF) << TCC_WAVE_CICCEN_Pos)
1381 #define TCC_WAVE_CICCEN(value) (TCC_WAVE_CICCEN_Msk & ((value) << TCC_WAVE_CICCEN_Pos))
1382 #define TCC_WAVE_POL0_Pos 16
1383 #define TCC_WAVE_POL0 (_U_(1) << TCC_WAVE_POL0_Pos)
1384 #define TCC_WAVE_POL1_Pos 17
1385 #define TCC_WAVE_POL1 (_U_(1) << TCC_WAVE_POL1_Pos)
1386 #define TCC_WAVE_POL2_Pos 18
1387 #define TCC_WAVE_POL2 (_U_(1) << TCC_WAVE_POL2_Pos)
1388 #define TCC_WAVE_POL3_Pos 19
1389 #define TCC_WAVE_POL3 (_U_(1) << TCC_WAVE_POL3_Pos)
1390 #define TCC_WAVE_POL4_Pos 20
1391 #define TCC_WAVE_POL4 (_U_(1) << TCC_WAVE_POL4_Pos)
1392 #define TCC_WAVE_POL5_Pos 21
1393 #define TCC_WAVE_POL5 (_U_(1) << TCC_WAVE_POL5_Pos)
1394 #define TCC_WAVE_POL_Pos 16
1395 #define TCC_WAVE_POL_Msk (_U_(0x3F) << TCC_WAVE_POL_Pos)
1396 #define TCC_WAVE_POL(value) (TCC_WAVE_POL_Msk & ((value) << TCC_WAVE_POL_Pos))
1397 #define TCC_WAVE_SWAP0_Pos 24
1398 #define TCC_WAVE_SWAP0 (_U_(1) << TCC_WAVE_SWAP0_Pos)
1399 #define TCC_WAVE_SWAP1_Pos 25
1400 #define TCC_WAVE_SWAP1 (_U_(1) << TCC_WAVE_SWAP1_Pos)
1401 #define TCC_WAVE_SWAP2_Pos 26
1402 #define TCC_WAVE_SWAP2 (_U_(1) << TCC_WAVE_SWAP2_Pos)
1403 #define TCC_WAVE_SWAP3_Pos 27
1404 #define TCC_WAVE_SWAP3 (_U_(1) << TCC_WAVE_SWAP3_Pos)
1405 #define TCC_WAVE_SWAP_Pos 24
1406 #define TCC_WAVE_SWAP_Msk (_U_(0xF) << TCC_WAVE_SWAP_Pos)
1407 #define TCC_WAVE_SWAP(value) (TCC_WAVE_SWAP_Msk & ((value) << TCC_WAVE_SWAP_Pos))
1408 #define TCC_WAVE_MASK _U_(0x0F3F0FB7)
1410 /* -------- TCC_PER : (TCC Offset: 0x40) (R/W 32) Period -------- */
1411 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1412 typedef union {
1413  struct { // DITH4 mode
1414  uint32_t DITHER:4;
1415  uint32_t PER:20;
1416  uint32_t :8;
1417  } DITH4;
1418  struct { // DITH5 mode
1419  uint32_t DITHER:5;
1420  uint32_t PER:19;
1421  uint32_t :8;
1422  } DITH5;
1423  struct { // DITH6 mode
1424  uint32_t DITHER:6;
1425  uint32_t PER:18;
1426  uint32_t :8;
1427  } DITH6;
1428  struct {
1429  uint32_t PER:24;
1430  uint32_t :8;
1431  } bit;
1432  uint32_t reg;
1433 } TCC_PER_Type;
1434 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1435 
1436 #define TCC_PER_OFFSET 0x40
1437 #define TCC_PER_RESETVALUE _U_(0xFFFFFFFF)
1439 // DITH4 mode
1440 #define TCC_PER_DITH4_DITHER_Pos 0
1441 #define TCC_PER_DITH4_DITHER_Msk (_U_(0xF) << TCC_PER_DITH4_DITHER_Pos)
1442 #define TCC_PER_DITH4_DITHER(value) (TCC_PER_DITH4_DITHER_Msk & ((value) << TCC_PER_DITH4_DITHER_Pos))
1443 #define TCC_PER_DITH4_PER_Pos 4
1444 #define TCC_PER_DITH4_PER_Msk (_U_(0xFFFFF) << TCC_PER_DITH4_PER_Pos)
1445 #define TCC_PER_DITH4_PER(value) (TCC_PER_DITH4_PER_Msk & ((value) << TCC_PER_DITH4_PER_Pos))
1446 #define TCC_PER_DITH4_MASK _U_(0x00FFFFFF)
1448 // DITH5 mode
1449 #define TCC_PER_DITH5_DITHER_Pos 0
1450 #define TCC_PER_DITH5_DITHER_Msk (_U_(0x1F) << TCC_PER_DITH5_DITHER_Pos)
1451 #define TCC_PER_DITH5_DITHER(value) (TCC_PER_DITH5_DITHER_Msk & ((value) << TCC_PER_DITH5_DITHER_Pos))
1452 #define TCC_PER_DITH5_PER_Pos 5
1453 #define TCC_PER_DITH5_PER_Msk (_U_(0x7FFFF) << TCC_PER_DITH5_PER_Pos)
1454 #define TCC_PER_DITH5_PER(value) (TCC_PER_DITH5_PER_Msk & ((value) << TCC_PER_DITH5_PER_Pos))
1455 #define TCC_PER_DITH5_MASK _U_(0x00FFFFFF)
1457 // DITH6 mode
1458 #define TCC_PER_DITH6_DITHER_Pos 0
1459 #define TCC_PER_DITH6_DITHER_Msk (_U_(0x3F) << TCC_PER_DITH6_DITHER_Pos)
1460 #define TCC_PER_DITH6_DITHER(value) (TCC_PER_DITH6_DITHER_Msk & ((value) << TCC_PER_DITH6_DITHER_Pos))
1461 #define TCC_PER_DITH6_PER_Pos 6
1462 #define TCC_PER_DITH6_PER_Msk (_U_(0x3FFFF) << TCC_PER_DITH6_PER_Pos)
1463 #define TCC_PER_DITH6_PER(value) (TCC_PER_DITH6_PER_Msk & ((value) << TCC_PER_DITH6_PER_Pos))
1464 #define TCC_PER_DITH6_MASK _U_(0x00FFFFFF)
1466 #define TCC_PER_PER_Pos 0
1467 #define TCC_PER_PER_Msk (_U_(0xFFFFFF) << TCC_PER_PER_Pos)
1468 #define TCC_PER_PER(value) (TCC_PER_PER_Msk & ((value) << TCC_PER_PER_Pos))
1469 #define TCC_PER_MASK _U_(0x00FFFFFF)
1471 /* -------- TCC_CC : (TCC Offset: 0x44) (R/W 32) Compare and Capture -------- */
1472 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1473 typedef union {
1474  struct { // DITH4 mode
1475  uint32_t DITHER:4;
1476  uint32_t CC:20;
1477  uint32_t :8;
1478  } DITH4;
1479  struct { // DITH5 mode
1480  uint32_t DITHER:5;
1481  uint32_t CC:19;
1482  uint32_t :8;
1483  } DITH5;
1484  struct { // DITH6 mode
1485  uint32_t DITHER:6;
1486  uint32_t CC:18;
1487  uint32_t :8;
1488  } DITH6;
1489  struct {
1490  uint32_t CC:24;
1491  uint32_t :8;
1492  } bit;
1493  uint32_t reg;
1494 } TCC_CC_Type;
1495 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1496 
1497 #define TCC_CC_OFFSET 0x44
1498 #define TCC_CC_RESETVALUE _U_(0x00000000)
1500 // DITH4 mode
1501 #define TCC_CC_DITH4_DITHER_Pos 0
1502 #define TCC_CC_DITH4_DITHER_Msk (_U_(0xF) << TCC_CC_DITH4_DITHER_Pos)
1503 #define TCC_CC_DITH4_DITHER(value) (TCC_CC_DITH4_DITHER_Msk & ((value) << TCC_CC_DITH4_DITHER_Pos))
1504 #define TCC_CC_DITH4_CC_Pos 4
1505 #define TCC_CC_DITH4_CC_Msk (_U_(0xFFFFF) << TCC_CC_DITH4_CC_Pos)
1506 #define TCC_CC_DITH4_CC(value) (TCC_CC_DITH4_CC_Msk & ((value) << TCC_CC_DITH4_CC_Pos))
1507 #define TCC_CC_DITH4_MASK _U_(0x00FFFFFF)
1509 // DITH5 mode
1510 #define TCC_CC_DITH5_DITHER_Pos 0
1511 #define TCC_CC_DITH5_DITHER_Msk (_U_(0x1F) << TCC_CC_DITH5_DITHER_Pos)
1512 #define TCC_CC_DITH5_DITHER(value) (TCC_CC_DITH5_DITHER_Msk & ((value) << TCC_CC_DITH5_DITHER_Pos))
1513 #define TCC_CC_DITH5_CC_Pos 5
1514 #define TCC_CC_DITH5_CC_Msk (_U_(0x7FFFF) << TCC_CC_DITH5_CC_Pos)
1515 #define TCC_CC_DITH5_CC(value) (TCC_CC_DITH5_CC_Msk & ((value) << TCC_CC_DITH5_CC_Pos))
1516 #define TCC_CC_DITH5_MASK _U_(0x00FFFFFF)
1518 // DITH6 mode
1519 #define TCC_CC_DITH6_DITHER_Pos 0
1520 #define TCC_CC_DITH6_DITHER_Msk (_U_(0x3F) << TCC_CC_DITH6_DITHER_Pos)
1521 #define TCC_CC_DITH6_DITHER(value) (TCC_CC_DITH6_DITHER_Msk & ((value) << TCC_CC_DITH6_DITHER_Pos))
1522 #define TCC_CC_DITH6_CC_Pos 6
1523 #define TCC_CC_DITH6_CC_Msk (_U_(0x3FFFF) << TCC_CC_DITH6_CC_Pos)
1524 #define TCC_CC_DITH6_CC(value) (TCC_CC_DITH6_CC_Msk & ((value) << TCC_CC_DITH6_CC_Pos))
1525 #define TCC_CC_DITH6_MASK _U_(0x00FFFFFF)
1527 #define TCC_CC_CC_Pos 0
1528 #define TCC_CC_CC_Msk (_U_(0xFFFFFF) << TCC_CC_CC_Pos)
1529 #define TCC_CC_CC(value) (TCC_CC_CC_Msk & ((value) << TCC_CC_CC_Pos))
1530 #define TCC_CC_MASK _U_(0x00FFFFFF)
1532 /* -------- TCC_PATTBUF : (TCC Offset: 0x64) (R/W 16) Pattern Buffer -------- */
1533 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1534 typedef union {
1535  struct {
1536  uint16_t PGEB0:1;
1537  uint16_t PGEB1:1;
1538  uint16_t PGEB2:1;
1539  uint16_t PGEB3:1;
1540  uint16_t PGEB4:1;
1541  uint16_t PGEB5:1;
1542  uint16_t PGEB6:1;
1543  uint16_t PGEB7:1;
1544  uint16_t PGVB0:1;
1545  uint16_t PGVB1:1;
1546  uint16_t PGVB2:1;
1547  uint16_t PGVB3:1;
1548  uint16_t PGVB4:1;
1549  uint16_t PGVB5:1;
1550  uint16_t PGVB6:1;
1551  uint16_t PGVB7:1;
1552  } bit;
1553  struct {
1554  uint16_t PGEB:8;
1555  uint16_t PGVB:8;
1556  } vec;
1557  uint16_t reg;
1559 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1560 
1561 #define TCC_PATTBUF_OFFSET 0x64
1562 #define TCC_PATTBUF_RESETVALUE _U_(0x0000)
1564 #define TCC_PATTBUF_PGEB0_Pos 0
1565 #define TCC_PATTBUF_PGEB0 (_U_(1) << TCC_PATTBUF_PGEB0_Pos)
1566 #define TCC_PATTBUF_PGEB1_Pos 1
1567 #define TCC_PATTBUF_PGEB1 (_U_(1) << TCC_PATTBUF_PGEB1_Pos)
1568 #define TCC_PATTBUF_PGEB2_Pos 2
1569 #define TCC_PATTBUF_PGEB2 (_U_(1) << TCC_PATTBUF_PGEB2_Pos)
1570 #define TCC_PATTBUF_PGEB3_Pos 3
1571 #define TCC_PATTBUF_PGEB3 (_U_(1) << TCC_PATTBUF_PGEB3_Pos)
1572 #define TCC_PATTBUF_PGEB4_Pos 4
1573 #define TCC_PATTBUF_PGEB4 (_U_(1) << TCC_PATTBUF_PGEB4_Pos)
1574 #define TCC_PATTBUF_PGEB5_Pos 5
1575 #define TCC_PATTBUF_PGEB5 (_U_(1) << TCC_PATTBUF_PGEB5_Pos)
1576 #define TCC_PATTBUF_PGEB6_Pos 6
1577 #define TCC_PATTBUF_PGEB6 (_U_(1) << TCC_PATTBUF_PGEB6_Pos)
1578 #define TCC_PATTBUF_PGEB7_Pos 7
1579 #define TCC_PATTBUF_PGEB7 (_U_(1) << TCC_PATTBUF_PGEB7_Pos)
1580 #define TCC_PATTBUF_PGEB_Pos 0
1581 #define TCC_PATTBUF_PGEB_Msk (_U_(0xFF) << TCC_PATTBUF_PGEB_Pos)
1582 #define TCC_PATTBUF_PGEB(value) (TCC_PATTBUF_PGEB_Msk & ((value) << TCC_PATTBUF_PGEB_Pos))
1583 #define TCC_PATTBUF_PGVB0_Pos 8
1584 #define TCC_PATTBUF_PGVB0 (_U_(1) << TCC_PATTBUF_PGVB0_Pos)
1585 #define TCC_PATTBUF_PGVB1_Pos 9
1586 #define TCC_PATTBUF_PGVB1 (_U_(1) << TCC_PATTBUF_PGVB1_Pos)
1587 #define TCC_PATTBUF_PGVB2_Pos 10
1588 #define TCC_PATTBUF_PGVB2 (_U_(1) << TCC_PATTBUF_PGVB2_Pos)
1589 #define TCC_PATTBUF_PGVB3_Pos 11
1590 #define TCC_PATTBUF_PGVB3 (_U_(1) << TCC_PATTBUF_PGVB3_Pos)
1591 #define TCC_PATTBUF_PGVB4_Pos 12
1592 #define TCC_PATTBUF_PGVB4 (_U_(1) << TCC_PATTBUF_PGVB4_Pos)
1593 #define TCC_PATTBUF_PGVB5_Pos 13
1594 #define TCC_PATTBUF_PGVB5 (_U_(1) << TCC_PATTBUF_PGVB5_Pos)
1595 #define TCC_PATTBUF_PGVB6_Pos 14
1596 #define TCC_PATTBUF_PGVB6 (_U_(1) << TCC_PATTBUF_PGVB6_Pos)
1597 #define TCC_PATTBUF_PGVB7_Pos 15
1598 #define TCC_PATTBUF_PGVB7 (_U_(1) << TCC_PATTBUF_PGVB7_Pos)
1599 #define TCC_PATTBUF_PGVB_Pos 8
1600 #define TCC_PATTBUF_PGVB_Msk (_U_(0xFF) << TCC_PATTBUF_PGVB_Pos)
1601 #define TCC_PATTBUF_PGVB(value) (TCC_PATTBUF_PGVB_Msk & ((value) << TCC_PATTBUF_PGVB_Pos))
1602 #define TCC_PATTBUF_MASK _U_(0xFFFF)
1604 /* -------- TCC_PERBUF : (TCC Offset: 0x6C) (R/W 32) Period Buffer -------- */
1605 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1606 typedef union {
1607  struct { // DITH4 mode
1608  uint32_t DITHERBUF:4;
1609  uint32_t PERBUF:20;
1610  uint32_t :8;
1611  } DITH4;
1612  struct { // DITH5 mode
1613  uint32_t DITHERBUF:5;
1614  uint32_t PERBUF:19;
1615  uint32_t :8;
1616  } DITH5;
1617  struct { // DITH6 mode
1618  uint32_t DITHERBUF:6;
1619  uint32_t PERBUF:18;
1620  uint32_t :8;
1621  } DITH6;
1622  struct {
1623  uint32_t PERBUF:24;
1624  uint32_t :8;
1625  } bit;
1626  uint32_t reg;
1627 } TCC_PERBUF_Type;
1628 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1629 
1630 #define TCC_PERBUF_OFFSET 0x6C
1631 #define TCC_PERBUF_RESETVALUE _U_(0xFFFFFFFF)
1633 // DITH4 mode
1634 #define TCC_PERBUF_DITH4_DITHERBUF_Pos 0
1635 #define TCC_PERBUF_DITH4_DITHERBUF_Msk (_U_(0xF) << TCC_PERBUF_DITH4_DITHERBUF_Pos)
1636 #define TCC_PERBUF_DITH4_DITHERBUF(value) (TCC_PERBUF_DITH4_DITHERBUF_Msk & ((value) << TCC_PERBUF_DITH4_DITHERBUF_Pos))
1637 #define TCC_PERBUF_DITH4_PERBUF_Pos 4
1638 #define TCC_PERBUF_DITH4_PERBUF_Msk (_U_(0xFFFFF) << TCC_PERBUF_DITH4_PERBUF_Pos)
1639 #define TCC_PERBUF_DITH4_PERBUF(value) (TCC_PERBUF_DITH4_PERBUF_Msk & ((value) << TCC_PERBUF_DITH4_PERBUF_Pos))
1640 #define TCC_PERBUF_DITH4_MASK _U_(0x00FFFFFF)
1642 // DITH5 mode
1643 #define TCC_PERBUF_DITH5_DITHERBUF_Pos 0
1644 #define TCC_PERBUF_DITH5_DITHERBUF_Msk (_U_(0x1F) << TCC_PERBUF_DITH5_DITHERBUF_Pos)
1645 #define TCC_PERBUF_DITH5_DITHERBUF(value) (TCC_PERBUF_DITH5_DITHERBUF_Msk & ((value) << TCC_PERBUF_DITH5_DITHERBUF_Pos))
1646 #define TCC_PERBUF_DITH5_PERBUF_Pos 5
1647 #define TCC_PERBUF_DITH5_PERBUF_Msk (_U_(0x7FFFF) << TCC_PERBUF_DITH5_PERBUF_Pos)
1648 #define TCC_PERBUF_DITH5_PERBUF(value) (TCC_PERBUF_DITH5_PERBUF_Msk & ((value) << TCC_PERBUF_DITH5_PERBUF_Pos))
1649 #define TCC_PERBUF_DITH5_MASK _U_(0x00FFFFFF)
1651 // DITH6 mode
1652 #define TCC_PERBUF_DITH6_DITHERBUF_Pos 0
1653 #define TCC_PERBUF_DITH6_DITHERBUF_Msk (_U_(0x3F) << TCC_PERBUF_DITH6_DITHERBUF_Pos)
1654 #define TCC_PERBUF_DITH6_DITHERBUF(value) (TCC_PERBUF_DITH6_DITHERBUF_Msk & ((value) << TCC_PERBUF_DITH6_DITHERBUF_Pos))
1655 #define TCC_PERBUF_DITH6_PERBUF_Pos 6
1656 #define TCC_PERBUF_DITH6_PERBUF_Msk (_U_(0x3FFFF) << TCC_PERBUF_DITH6_PERBUF_Pos)
1657 #define TCC_PERBUF_DITH6_PERBUF(value) (TCC_PERBUF_DITH6_PERBUF_Msk & ((value) << TCC_PERBUF_DITH6_PERBUF_Pos))
1658 #define TCC_PERBUF_DITH6_MASK _U_(0x00FFFFFF)
1660 #define TCC_PERBUF_PERBUF_Pos 0
1661 #define TCC_PERBUF_PERBUF_Msk (_U_(0xFFFFFF) << TCC_PERBUF_PERBUF_Pos)
1662 #define TCC_PERBUF_PERBUF(value) (TCC_PERBUF_PERBUF_Msk & ((value) << TCC_PERBUF_PERBUF_Pos))
1663 #define TCC_PERBUF_MASK _U_(0x00FFFFFF)
1665 /* -------- TCC_CCBUF : (TCC Offset: 0x70) (R/W 32) Compare and Capture Buffer -------- */
1666 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1667 typedef union {
1668  struct { // DITH4 mode
1669  uint32_t CCBUF:4;
1670  uint32_t DITHERBUF:20;
1671  uint32_t :8;
1672  } DITH4;
1673  struct { // DITH5 mode
1674  uint32_t DITHERBUF:5;
1675  uint32_t CCBUF:19;
1676  uint32_t :8;
1677  } DITH5;
1678  struct { // DITH6 mode
1679  uint32_t DITHERBUF:6;
1680  uint32_t CCBUF:18;
1681  uint32_t :8;
1682  } DITH6;
1683  struct {
1684  uint32_t CCBUF:24;
1685  uint32_t :8;
1686  } bit;
1687  uint32_t reg;
1688 } TCC_CCBUF_Type;
1689 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1690 
1691 #define TCC_CCBUF_OFFSET 0x70
1692 #define TCC_CCBUF_RESETVALUE _U_(0x00000000)
1694 // DITH4 mode
1695 #define TCC_CCBUF_DITH4_CCBUF_Pos 0
1696 #define TCC_CCBUF_DITH4_CCBUF_Msk (_U_(0xF) << TCC_CCBUF_DITH4_CCBUF_Pos)
1697 #define TCC_CCBUF_DITH4_CCBUF(value) (TCC_CCBUF_DITH4_CCBUF_Msk & ((value) << TCC_CCBUF_DITH4_CCBUF_Pos))
1698 #define TCC_CCBUF_DITH4_DITHERBUF_Pos 4
1699 #define TCC_CCBUF_DITH4_DITHERBUF_Msk (_U_(0xFFFFF) << TCC_CCBUF_DITH4_DITHERBUF_Pos)
1700 #define TCC_CCBUF_DITH4_DITHERBUF(value) (TCC_CCBUF_DITH4_DITHERBUF_Msk & ((value) << TCC_CCBUF_DITH4_DITHERBUF_Pos))
1701 #define TCC_CCBUF_DITH4_MASK _U_(0x00FFFFFF)
1703 // DITH5 mode
1704 #define TCC_CCBUF_DITH5_DITHERBUF_Pos 0
1705 #define TCC_CCBUF_DITH5_DITHERBUF_Msk (_U_(0x1F) << TCC_CCBUF_DITH5_DITHERBUF_Pos)
1706 #define TCC_CCBUF_DITH5_DITHERBUF(value) (TCC_CCBUF_DITH5_DITHERBUF_Msk & ((value) << TCC_CCBUF_DITH5_DITHERBUF_Pos))
1707 #define TCC_CCBUF_DITH5_CCBUF_Pos 5
1708 #define TCC_CCBUF_DITH5_CCBUF_Msk (_U_(0x7FFFF) << TCC_CCBUF_DITH5_CCBUF_Pos)
1709 #define TCC_CCBUF_DITH5_CCBUF(value) (TCC_CCBUF_DITH5_CCBUF_Msk & ((value) << TCC_CCBUF_DITH5_CCBUF_Pos))
1710 #define TCC_CCBUF_DITH5_MASK _U_(0x00FFFFFF)
1712 // DITH6 mode
1713 #define TCC_CCBUF_DITH6_DITHERBUF_Pos 0
1714 #define TCC_CCBUF_DITH6_DITHERBUF_Msk (_U_(0x3F) << TCC_CCBUF_DITH6_DITHERBUF_Pos)
1715 #define TCC_CCBUF_DITH6_DITHERBUF(value) (TCC_CCBUF_DITH6_DITHERBUF_Msk & ((value) << TCC_CCBUF_DITH6_DITHERBUF_Pos))
1716 #define TCC_CCBUF_DITH6_CCBUF_Pos 6
1717 #define TCC_CCBUF_DITH6_CCBUF_Msk (_U_(0x3FFFF) << TCC_CCBUF_DITH6_CCBUF_Pos)
1718 #define TCC_CCBUF_DITH6_CCBUF(value) (TCC_CCBUF_DITH6_CCBUF_Msk & ((value) << TCC_CCBUF_DITH6_CCBUF_Pos))
1719 #define TCC_CCBUF_DITH6_MASK _U_(0x00FFFFFF)
1721 #define TCC_CCBUF_CCBUF_Pos 0
1722 #define TCC_CCBUF_CCBUF_Msk (_U_(0xFFFFFF) << TCC_CCBUF_CCBUF_Pos)
1723 #define TCC_CCBUF_CCBUF(value) (TCC_CCBUF_CCBUF_Msk & ((value) << TCC_CCBUF_CCBUF_Pos))
1724 #define TCC_CCBUF_MASK _U_(0x00FFFFFF)
1727 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
1728 typedef struct {
1732  RoReg8 Reserved1[0x2];
1738  RoReg8 Reserved2[0x2];
1740  RoReg8 Reserved3[0x1];
1748  RoReg8 Reserved4[0x2];
1751  __IO TCC_CC_Type CC[6];
1752  RoReg8 Reserved5[0x8];
1754  RoReg8 Reserved6[0x6];
1756  __IO TCC_CCBUF_Type CCBUF[6];
1757 } Tcc;
1758 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
1759 
1762 #endif /* _SAME54_TCC_COMPONENT_ */
Tcc::INTFLAG
__IO TCC_INTFLAG_Type INTFLAG
Offset: 0x2C (R/W 32) Interrupt Flag Status and Clear.
Definition: tcc.h:1744
TCC_INTFLAG_Type::MC
__I uint32_t MC
Definition: tcc.h:1016
TCC_CCBUF_Type
Definition: tcc.h:1667
TCC_INTFLAG_Type::FAULT1
__I uint32_t FAULT1
Definition: tcc.h:1005
TCC_PATT_Type::PGE5
uint16_t PGE5
Definition: tcc.h:1235
TCC_CTRLBCLR_Type
Definition: tcc.h:148
TCC_INTFLAG_Type::FAULT0
__I uint32_t FAULT0
Definition: tcc.h:1004
TCC_PERBUF_Type::reg
uint32_t reg
Definition: tcc.h:1626
TCC_PER_Type::reg
uint32_t reg
Definition: tcc.h:1432
TCC_CTRLA_Type::DMAOS
uint32_t DMAOS
Definition: tcc.h:57
TCC_DBGCTRL_Type::reg
uint8_t reg
Definition: tcc.h:687
TCC_WAVE_Type::POL
uint32_t POL
Definition: tcc.h:1329
TCC_CC_Type::DITHER
uint32_t DITHER
Definition: tcc.h:1475
TCC_SYNCBUSY_Type::CC2
uint32_t CC2
Definition: tcc.h:262
TCC_EVCTRL_Type::EVACT1
uint32_t EVACT1
Definition: tcc.h:705
TCC_CTRLBCLR_Type::IDXCMD
uint8_t IDXCMD
Definition: tcc.h:153
TCC_INTFLAG_Type
Definition: tcc.h:993
TCC_INTFLAG_Type::reg
uint32_t reg
Definition: tcc.h:1019
TCC_FCTRLA_Type::QUAL
uint32_t QUAL
Definition: tcc.h:320
TCC_INTENCLR_Type::ERR
uint32_t ERR
Definition: tcc.h:854
TCC_EVCTRL_Type::MCEI1
uint32_t MCEI1
Definition: tcc.h:716
TCC_PATT_Type::PGV3
uint16_t PGV3
Definition: tcc.h:1241
TCC_INTENSET_Type::FAULT1
uint32_t FAULT1
Definition: tcc.h:933
TCC_STATUS_Type::CMP1
uint32_t CMP1
Definition: tcc.h:1091
TCC_STATUS_Type::CCBUFV0
uint32_t CCBUFV0
Definition: tcc.h:1083
TCC_PATT_Type::PGV7
uint16_t PGV7
Definition: tcc.h:1245
TCC_WAVE_Type::CICCEN0
uint32_t CICCEN0
Definition: tcc.h:1307
TCC_FCTRLB_Type::FILTERVAL
uint32_t FILTERVAL
Definition: tcc.h:432
TCC_STATUS_Type::CMP0
uint32_t CMP0
Definition: tcc.h:1090
TCC_PATT_Type::reg
uint16_t reg
Definition: tcc.h:1251
TCC_INTFLAG_Type::FAULTA
__I uint32_t FAULTA
Definition: tcc.h:1002
TCC_CTRLA_Type::RUNSTDBY
uint32_t RUNSTDBY
Definition: tcc.h:52
TCC_INTENSET_Type::reg
uint32_t reg
Definition: tcc.h:947
TCC_EVCTRL_Type
Definition: tcc.h:702
TCC_STATUS_Type::DFS
uint32_t DFS
Definition: tcc.h:1070
TCC_INTFLAG_Type::FAULTB
__I uint32_t FAULTB
Definition: tcc.h:1003
TCC_INTENSET_Type::MC
uint32_t MC
Definition: tcc.h:944
TCC_CTRLBCLR_Type::ONESHOT
uint8_t ONESHOT
Definition: tcc.h:152
TCC_STATUS_Type::PERBUFV
uint32_t PERBUFV
Definition: tcc.h:1074
TCC_STATUS_Type::CMP
uint32_t CMP
Definition: tcc.h:1102
TCC_INTENSET_Type::ERR
uint32_t ERR
Definition: tcc.h:926
TCC_CTRLBSET_Type::IDXCMD
uint8_t IDXCMD
Definition: tcc.h:204
TCC_PATT_Type::PGV6
uint16_t PGV6
Definition: tcc.h:1244
TCC_PATT_Type
Definition: tcc.h:1228
TCC_DBGCTRL_Type::DBGRUN
uint8_t DBGRUN
Definition: tcc.h:682
TCC_CC_Type::reg
uint32_t reg
Definition: tcc.h:1493
TCC_PATTBUF_Type::PGVB6
uint16_t PGVB6
Definition: tcc.h:1550
TCC_PATT_Type::PGV1
uint16_t PGV1
Definition: tcc.h:1239
TCC_WEXCTRL_Type::DTLS
uint32_t DTLS
Definition: tcc.h:532
TCC_CTRLA_Type::CPTEN0
uint32_t CPTEN0
Definition: tcc.h:58
TCC_FCTRLA_Type::reg
uint32_t reg
Definition: tcc.h:331
TCC_CTRLBCLR_Type::LUPD
uint8_t LUPD
Definition: tcc.h:151
TCC_DRVCTRL_Type::NRE5
uint32_t NRE5
Definition: tcc.h:578
TCC_SYNCBUSY_Type::CC1
uint32_t CC1
Definition: tcc.h:261
TCC_DRVCTRL_Type::NRV0
uint32_t NRV0
Definition: tcc.h:581
TCC_WAVE_Type::CICCEN3
uint32_t CICCEN3
Definition: tcc.h:1310
TCC_EVCTRL_Type::CNTEO
uint32_t CNTEO
Definition: tcc.h:709
TCC_WAVE_Type::SWAP0
uint32_t SWAP0
Definition: tcc.h:1319
TCC_WEXCTRL_Type
Definition: tcc.h:523
TCC_STATUS_Type::CCBUFV2
uint32_t CCBUFV2
Definition: tcc.h:1085
TCC_EVCTRL_Type::TCINV
uint32_t TCINV
Definition: tcc.h:732
TCC_DRVCTRL_Type::NRE4
uint32_t NRE4
Definition: tcc.h:577
TCC_WEXCTRL_Type::DTIEN1
uint32_t DTIEN1
Definition: tcc.h:528
TCC_STATUS_Type::CCBUFV3
uint32_t CCBUFV3
Definition: tcc.h:1086
TCC_SYNCBUSY_Type::PATT
uint32_t PATT
Definition: tcc.h:257
TCC_CTRLBCLR_Type::DIR
uint8_t DIR
Definition: tcc.h:150
TCC_STATUS_Type::FAULT0
uint32_t FAULT0
Definition: tcc.h:1081
Tcc::COUNT
__IO TCC_COUNT_Type COUNT
Offset: 0x34 (R/W 32) Count.
Definition: tcc.h:1746
Tcc::INTENSET
__IO TCC_INTENSET_Type INTENSET
Offset: 0x28 (R/W 32) Interrupt Enable Set.
Definition: tcc.h:1743
TCC_WAVE_Type::RAMP
uint32_t RAMP
Definition: tcc.h:1304
TCC_CCBUF_Type::CCBUF
uint32_t CCBUF
Definition: tcc.h:1669
TCC_PATTBUF_Type::PGVB4
uint16_t PGVB4
Definition: tcc.h:1548
TCC_PATTBUF_Type::PGEB
uint16_t PGEB
Definition: tcc.h:1554
TCC_SYNCBUSY_Type::CC3
uint32_t CC3
Definition: tcc.h:263
Tcc::WAVE
__IO TCC_WAVE_Type WAVE
Offset: 0x3C (R/W 32) Waveform Control.
Definition: tcc.h:1749
TCC_FCTRLA_Type::CAPTURE
uint32_t CAPTURE
Definition: tcc.h:325
TCC_WAVE_Type::CICCEN
uint32_t CICCEN
Definition: tcc.h:1327
TCC_PATTBUF_Type::PGEB0
uint16_t PGEB0
Definition: tcc.h:1536
TCC_CTRLA_Type::CPTEN
uint32_t CPTEN
Definition: tcc.h:68
TCC_EVCTRL_Type::TCINV0
uint32_t TCINV0
Definition: tcc.h:711
TCC_WAVE_Type::POL0
uint32_t POL0
Definition: tcc.h:1312
TCC_WAVE_Type
Definition: tcc.h:1300
TCC_FCTRLA_Type::BLANK
uint32_t BLANK
Definition: tcc.h:321
TCC_DRVCTRL_Type::NRE
uint32_t NRE
Definition: tcc.h:601
TCC_INTFLAG_Type::MC5
__I uint32_t MC5
Definition: tcc.h:1011
TCC_PATTBUF_Type::PGEB7
uint16_t PGEB7
Definition: tcc.h:1543
TCC_EVCTRL_Type::MCEI0
uint32_t MCEI0
Definition: tcc.h:715
TCC_WAVE_Type::WAVEGEN
uint32_t WAVEGEN
Definition: tcc.h:1302
TCC_STATUS_Type::CCBUFV
uint32_t CCBUFV
Definition: tcc.h:1100
TCC_INTENSET_Type::MC1
uint32_t MC1
Definition: tcc.h:935
TCC_DRVCTRL_Type::NRV6
uint32_t NRV6
Definition: tcc.h:587
TCC_CTRLBSET_Type::DIR
uint8_t DIR
Definition: tcc.h:201
TCC_PATTBUF_Type::PGVB3
uint16_t PGVB3
Definition: tcc.h:1547
Tcc::SYNCBUSY
__I TCC_SYNCBUSY_Type SYNCBUSY
Offset: 0x08 (R/ 32) Synchronization Busy.
Definition: tcc.h:1733
TCC_DRVCTRL_Type::NRV3
uint32_t NRV3
Definition: tcc.h:584
TCC_EVCTRL_Type::MCEI2
uint32_t MCEI2
Definition: tcc.h:717
TCC_COUNT_Type
Definition: tcc.h:1176
TCC_STATUS_Type::FAULTBIN
uint32_t FAULTBIN
Definition: tcc.h:1076
TCC_STATUS_Type::CCBUFV4
uint32_t CCBUFV4
Definition: tcc.h:1087
TCC_PER_Type
Definition: tcc.h:1412
TCC_WAVE_Type::reg
uint32_t reg
Definition: tcc.h:1334
TCC_WAVE_Type::SWAP
uint32_t SWAP
Definition: tcc.h:1331
TCC_FCTRLB_Type::CHSEL
uint32_t CHSEL
Definition: tcc.h:428
TCC_EVCTRL_Type::TRGEO
uint32_t TRGEO
Definition: tcc.h:708
TCC_EVCTRL_Type::MCEO3
uint32_t MCEO3
Definition: tcc.h:725
TCC_DRVCTRL_Type::NRE0
uint32_t NRE0
Definition: tcc.h:573
TCC_INTENSET_Type::TRG
uint32_t TRG
Definition: tcc.h:924
TCC_INTENSET_Type::MC2
uint32_t MC2
Definition: tcc.h:936
TCC_EVCTRL_Type::MCEO
uint32_t MCEO
Definition: tcc.h:736
TCC_INTFLAG_Type::OVF
__I uint32_t OVF
Definition: tcc.h:995
TCC_WAVE_Type::POL2
uint32_t POL2
Definition: tcc.h:1314
TCC_DBGCTRL_Type
Definition: tcc.h:680
TCC_STATUS_Type::FAULT1
uint32_t FAULT1
Definition: tcc.h:1082
TCC_FCTRLB_Type::RESTART
uint32_t RESTART
Definition: tcc.h:426
TCC_INTFLAG_Type::MC0
__I uint32_t MC0
Definition: tcc.h:1006
TCC_EVCTRL_Type::reg
uint32_t reg
Definition: tcc.h:739
TCC_STATUS_Type
Definition: tcc.h:1065
TCC_CTRLA_Type::CPTEN3
uint32_t CPTEN3
Definition: tcc.h:61
TCC_PERBUF_Type::DITHERBUF
uint32_t DITHERBUF
Definition: tcc.h:1608
TCC_WAVE_Type::POL5
uint32_t POL5
Definition: tcc.h:1317
TCC_CTRLBCLR_Type::CMD
uint8_t CMD
Definition: tcc.h:154
TCC_PATT_Type::PGV4
uint16_t PGV4
Definition: tcc.h:1242
TCC_CC_Type::CC
uint32_t CC
Definition: tcc.h:1476
TCC_INTFLAG_Type::ERR
__I uint32_t ERR
Definition: tcc.h:998
TCC_INTFLAG_Type::uint32_t
__I uint32_t
Definition: tcc.h:999
TCC_FCTRLB_Type::KEEP
uint32_t KEEP
Definition: tcc.h:423
Tcc::DRVCTRL
__IO TCC_DRVCTRL_Type DRVCTRL
Offset: 0x18 (R/W 32) Driver Control.
Definition: tcc.h:1737
TCC_STATUS_Type::CMP5
uint32_t CMP5
Definition: tcc.h:1095
TCC_WAVE_Type::SWAP2
uint32_t SWAP2
Definition: tcc.h:1321
TCC_CTRLBCLR_Type::reg
uint8_t reg
Definition: tcc.h:156
TCC_FCTRLA_Type::BLANKPRESC
uint32_t BLANKPRESC
Definition: tcc.h:326
TCC_SYNCBUSY_Type::reg
uint32_t reg
Definition: tcc.h:273
TCC_DRVCTRL_Type::NRV1
uint32_t NRV1
Definition: tcc.h:582
TCC_PERBUF_Type::PERBUF
uint32_t PERBUF
Definition: tcc.h:1609
TCC_WAVE_Type::SWAP3
uint32_t SWAP3
Definition: tcc.h:1322
TCC_STATUS_Type::STOP
uint32_t STOP
Definition: tcc.h:1067
TCC_STATUS_Type::FAULTAIN
uint32_t FAULTAIN
Definition: tcc.h:1075
TCC_WEXCTRL_Type::DTIEN3
uint32_t DTIEN3
Definition: tcc.h:530
TCC_EVCTRL_Type::MCEO0
uint32_t MCEO0
Definition: tcc.h:722
TCC_WAVE_Type::POL1
uint32_t POL1
Definition: tcc.h:1313
Tcc::FCTRLA
__IO TCC_FCTRLA_Type FCTRLA
Offset: 0x0C (R/W 32) Recoverable Fault A Configuration.
Definition: tcc.h:1734
TCC_CTRLA_Type::SWRST
uint32_t SWRST
Definition: tcc.h:46
TCC_INTFLAG_Type::CNT
__I uint32_t CNT
Definition: tcc.h:997
TCC_INTENSET_Type::MC5
uint32_t MC5
Definition: tcc.h:939
TCC_PATT_Type::PGE
uint16_t PGE
Definition: tcc.h:1248
TCC_EVCTRL_Type::TCINV1
uint32_t TCINV1
Definition: tcc.h:712
TCC_INTENCLR_Type::MC
uint32_t MC
Definition: tcc.h:872
TCC_INTENCLR_Type::MC4
uint32_t MC4
Definition: tcc.h:866
TCC_DRVCTRL_Type::INVEN4
uint32_t INVEN4
Definition: tcc.h:593
TCC_FCTRLA_Type::FILTERVAL
uint32_t FILTERVAL
Definition: tcc.h:328
TCC_INTENCLR_Type::FAULT1
uint32_t FAULT1
Definition: tcc.h:861
TCC_DRVCTRL_Type::NRV5
uint32_t NRV5
Definition: tcc.h:586
TCC_CTRLA_Type::PRESCSYNC
uint32_t PRESCSYNC
Definition: tcc.h:53
TCC_PATTBUF_Type::PGVB0
uint16_t PGVB0
Definition: tcc.h:1544
TCC_PATT_Type::PGV
uint16_t PGV
Definition: tcc.h:1249
TCC_INTENSET_Type::MC4
uint32_t MC4
Definition: tcc.h:938
Tcc::PATT
__IO TCC_PATT_Type PATT
Offset: 0x38 (R/W 16) Pattern.
Definition: tcc.h:1747
TCC_DRVCTRL_Type::INVEN2
uint32_t INVEN2
Definition: tcc.h:591
TCC_PATT_Type::PGE6
uint16_t PGE6
Definition: tcc.h:1236
TCC_PATTBUF_Type::PGVB2
uint16_t PGVB2
Definition: tcc.h:1546
TCC_DRVCTRL_Type::INVEN3
uint32_t INVEN3
Definition: tcc.h:592
TCC_CTRLA_Type::CPTEN1
uint32_t CPTEN1
Definition: tcc.h:59
TCC_INTENCLR_Type::MC3
uint32_t MC3
Definition: tcc.h:865
TCC_DRVCTRL_Type::NRV4
uint32_t NRV4
Definition: tcc.h:585
TCC_FCTRLA_Type::BLANKVAL
uint32_t BLANKVAL
Definition: tcc.h:327
TCC_EVCTRL_Type::TCEI0
uint32_t TCEI0
Definition: tcc.h:713
TCC_DRVCTRL_Type::NRE3
uint32_t NRE3
Definition: tcc.h:576
TCC_INTENSET_Type::FAULT0
uint32_t FAULT0
Definition: tcc.h:932
TCC_WEXCTRL_Type::OTMX
uint32_t OTMX
Definition: tcc.h:525
Tcc::WEXCTRL
__IO TCC_WEXCTRL_Type WEXCTRL
Offset: 0x14 (R/W 32) Waveform Extension Configuration.
Definition: tcc.h:1736
TCC_PATT_Type::PGE0
uint16_t PGE0
Definition: tcc.h:1230
Tcc::CTRLBCLR
__IO TCC_CTRLBCLR_Type CTRLBCLR
Offset: 0x04 (R/W 8) Control B Clear.
Definition: tcc.h:1730
TCC_EVCTRL_Type::EVACT0
uint32_t EVACT0
Definition: tcc.h:704
TCC_INTENSET_Type::CNT
uint32_t CNT
Definition: tcc.h:925
TCC_CTRLA_Type::CPTEN2
uint32_t CPTEN2
Definition: tcc.h:60
TCC_COUNT_Type::COUNT
uint32_t COUNT
Definition: tcc.h:1179
TCC_SYNCBUSY_Type::CC0
uint32_t CC0
Definition: tcc.h:260
TCC_PATTBUF_Type::PGEB1
uint16_t PGEB1
Definition: tcc.h:1537
TCC_EVCTRL_Type::MCEO4
uint32_t MCEO4
Definition: tcc.h:726
TCC_WAVE_Type::CICCEN1
uint32_t CICCEN1
Definition: tcc.h:1308
Tcc::PERBUF
__IO TCC_PERBUF_Type PERBUF
Offset: 0x6C (R/W 32) Period Buffer.
Definition: tcc.h:1755
TCC_INTENCLR_Type::UFS
uint32_t UFS
Definition: tcc.h:856
TCC_STATUS_Type::IDX
uint32_t IDX
Definition: tcc.h:1068
TCC_EVCTRL_Type::TCEI
uint32_t TCEI
Definition: tcc.h:733
TCC_SYNCBUSY_Type::COUNT
uint32_t COUNT
Definition: tcc.h:256
TCC_FCTRLA_Type::HALT
uint32_t HALT
Definition: tcc.h:323
TCC_INTENCLR_Type::OVF
uint32_t OVF
Definition: tcc.h:851
TCC_EVCTRL_Type::MCEI5
uint32_t MCEI5
Definition: tcc.h:720
Tcc::DBGCTRL
__IO TCC_DBGCTRL_Type DBGCTRL
Offset: 0x1E (R/W 8) Debug Control.
Definition: tcc.h:1739
TCC_DRVCTRL_Type::NRE6
uint32_t NRE6
Definition: tcc.h:579
TCC_INTFLAG_Type::UFS
__I uint32_t UFS
Definition: tcc.h:1000
TCC_CCBUF_Type::DITHERBUF
uint32_t DITHERBUF
Definition: tcc.h:1670
TCC_CTRLA_Type::CPTEN5
uint32_t CPTEN5
Definition: tcc.h:63
Tcc::CTRLBSET
__IO TCC_CTRLBSET_Type CTRLBSET
Offset: 0x05 (R/W 8) Control B Set.
Definition: tcc.h:1731
TCC_FCTRLB_Type::SRC
uint32_t SRC
Definition: tcc.h:421
TCC_WAVE_Type::SWAP1
uint32_t SWAP1
Definition: tcc.h:1320
TCC_FCTRLB_Type::BLANKVAL
uint32_t BLANKVAL
Definition: tcc.h:431
Tcc::STATUS
__IO TCC_STATUS_Type STATUS
Offset: 0x30 (R/W 32) Status.
Definition: tcc.h:1745
TCC_STATUS_Type::FAULT0IN
uint32_t FAULT0IN
Definition: tcc.h:1077
TCC_DRVCTRL_Type::INVEN
uint32_t INVEN
Definition: tcc.h:603
TCC_SYNCBUSY_Type::STATUS
uint32_t STATUS
Definition: tcc.h:255
TCC_INTENSET_Type::FAULTA
uint32_t FAULTA
Definition: tcc.h:930
TCC_PATTBUF_Type::PGVB7
uint16_t PGVB7
Definition: tcc.h:1551
TCC_CCBUF_Type::reg
uint32_t reg
Definition: tcc.h:1687
TCC_PER_Type::PER
uint32_t PER
Definition: tcc.h:1415
TCC_INTENSET_Type::OVF
uint32_t OVF
Definition: tcc.h:923
TCC_DRVCTRL_Type::INVEN5
uint32_t INVEN5
Definition: tcc.h:594
TCC_WAVE_Type::POL3
uint32_t POL3
Definition: tcc.h:1315
TCC_WAVE_Type::CIPEREN
uint32_t CIPEREN
Definition: tcc.h:1306
TCC_STATUS_Type::SLAVE
uint32_t SLAVE
Definition: tcc.h:1071
TCC_DRVCTRL_Type::reg
uint32_t reg
Definition: tcc.h:606
TCC_INTENCLR_Type::FAULTA
uint32_t FAULTA
Definition: tcc.h:858
TCC_INTENCLR_Type::FAULTB
uint32_t FAULTB
Definition: tcc.h:859
TCC_INTENCLR_Type::DFS
uint32_t DFS
Definition: tcc.h:857
TCC_INTENCLR_Type::FAULT0
uint32_t FAULT0
Definition: tcc.h:860
TCC_INTFLAG_Type::TRG
__I uint32_t TRG
Definition: tcc.h:996
TCC_WEXCTRL_Type::DTIEN0
uint32_t DTIEN0
Definition: tcc.h:527
TCC_FCTRLA_Type::CHSEL
uint32_t CHSEL
Definition: tcc.h:324
TCC_DRVCTRL_Type::INVEN7
uint32_t INVEN7
Definition: tcc.h:596
TCC_FCTRLB_Type::HALT
uint32_t HALT
Definition: tcc.h:427
Tcc::PER
__IO TCC_PER_Type PER
Offset: 0x40 (R/W 32) Period.
Definition: tcc.h:1750
TCC_FCTRLA_Type
Definition: tcc.h:315
TCC_INTENCLR_Type::CNT
uint32_t CNT
Definition: tcc.h:853
TCC_PATTBUF_Type::PGEB3
uint16_t PGEB3
Definition: tcc.h:1539
TCC_CTRLBSET_Type::LUPD
uint8_t LUPD
Definition: tcc.h:202
TCC_INTENCLR_Type::MC1
uint32_t MC1
Definition: tcc.h:863
TCC_INTENCLR_Type::reg
uint32_t reg
Definition: tcc.h:875
TCC_DRVCTRL_Type::NRE2
uint32_t NRE2
Definition: tcc.h:575
TCC_INTENSET_Type::DFS
uint32_t DFS
Definition: tcc.h:929
TCC_PATT_Type::PGE2
uint16_t PGE2
Definition: tcc.h:1232
TCC_DRVCTRL_Type::NRV2
uint32_t NRV2
Definition: tcc.h:583
TCC_CTRLA_Type::reg
uint32_t reg
Definition: tcc.h:71
TCC_DRVCTRL_Type::NRV
uint32_t NRV
Definition: tcc.h:602
TCC_DBGCTRL_Type::FDDBD
uint8_t FDDBD
Definition: tcc.h:684
TCC_EVCTRL_Type::MCEO1
uint32_t MCEO1
Definition: tcc.h:723
TCC_DRVCTRL_Type::FILTERVAL1
uint32_t FILTERVAL1
Definition: tcc.h:598
TCC_CTRLA_Type::RESOLUTION
uint32_t RESOLUTION
Definition: tcc.h:49
TCC_PATT_Type::PGE3
uint16_t PGE3
Definition: tcc.h:1233
TCC_PATTBUF_Type::PGVB
uint16_t PGVB
Definition: tcc.h:1555
TCC_PER_Type::DITHER
uint32_t DITHER
Definition: tcc.h:1414
TCC_SYNCBUSY_Type::WAVE
uint32_t WAVE
Definition: tcc.h:258
TCC_STATUS_Type::CMP2
uint32_t CMP2
Definition: tcc.h:1092
TCC_DRVCTRL_Type::INVEN6
uint32_t INVEN6
Definition: tcc.h:595
TCC_CTRLA_Type::ENABLE
uint32_t ENABLE
Definition: tcc.h:47
TCC_INTFLAG_Type::MC2
__I uint32_t MC2
Definition: tcc.h:1008
TCC_PERBUF_Type
Definition: tcc.h:1606
TCC_INTFLAG_Type::MC1
__I uint32_t MC1
Definition: tcc.h:1007
TCC_FCTRLB_Type
Definition: tcc.h:419
TCC_PATTBUF_Type::PGVB1
uint16_t PGVB1
Definition: tcc.h:1545
TCC_INTENSET_Type::UFS
uint32_t UFS
Definition: tcc.h:928
TCC_INTFLAG_Type::DFS
__I uint32_t DFS
Definition: tcc.h:1001
TCC_FCTRLA_Type::SRC
uint32_t SRC
Definition: tcc.h:317
TCC_WEXCTRL_Type::DTHS
uint32_t DTHS
Definition: tcc.h:533
TCC_DRVCTRL_Type::NRV7
uint32_t NRV7
Definition: tcc.h:588
TCC_CTRLBSET_Type
Definition: tcc.h:199
TCC_FCTRLB_Type::QUAL
uint32_t QUAL
Definition: tcc.h:424
TCC_INTENCLR_Type::TRG
uint32_t TRG
Definition: tcc.h:852
TCC_FCTRLA_Type::KEEP
uint32_t KEEP
Definition: tcc.h:319
TCC_CTRLA_Type
Definition: tcc.h:44
TCC_EVCTRL_Type::OVFEO
uint32_t OVFEO
Definition: tcc.h:707
TCC_EVCTRL_Type::TCEI1
uint32_t TCEI1
Definition: tcc.h:714
TCC_SYNCBUSY_Type::ENABLE
uint32_t ENABLE
Definition: tcc.h:253
TCC_PATT_Type::PGV5
uint16_t PGV5
Definition: tcc.h:1243
TCC_FCTRLB_Type::reg
uint32_t reg
Definition: tcc.h:435
TCC_PATT_Type::PGV2
uint16_t PGV2
Definition: tcc.h:1240
TCC_WEXCTRL_Type::DTIEN
uint32_t DTIEN
Definition: tcc.h:537
TCC_SYNCBUSY_Type::CC
uint32_t CC
Definition: tcc.h:270
Tcc::FCTRLB
__IO TCC_FCTRLB_Type FCTRLB
Offset: 0x10 (R/W 32) Recoverable Fault B Configuration.
Definition: tcc.h:1735
TCC_FCTRLB_Type::BLANKPRESC
uint32_t BLANKPRESC
Definition: tcc.h:430
TCC_PATTBUF_Type::PGEB2
uint16_t PGEB2
Definition: tcc.h:1538
TCC_INTENCLR_Type::MC0
uint32_t MC0
Definition: tcc.h:862
TCC_INTENCLR_Type
Definition: tcc.h:849
TCC_WEXCTRL_Type::reg
uint32_t reg
Definition: tcc.h:540
TCC_STATUS_Type::CCBUFV1
uint32_t CCBUFV1
Definition: tcc.h:1084
TCC_PATTBUF_Type
Definition: tcc.h:1534
TCC_DRVCTRL_Type::NRE1
uint32_t NRE1
Definition: tcc.h:574
TCC_STATUS_Type::reg
uint32_t reg
Definition: tcc.h:1105
TCC_INTENSET_Type
Definition: tcc.h:921
TCC_EVCTRL_Type::CNTSEL
uint32_t CNTSEL
Definition: tcc.h:706
TCC_DRVCTRL_Type
Definition: tcc.h:571
TCC_EVCTRL_Type::MCEI3
uint32_t MCEI3
Definition: tcc.h:718
TCC_EVCTRL_Type::MCEI
uint32_t MCEI
Definition: tcc.h:734
TCC_STATUS_Type::CCBUFV5
uint32_t CCBUFV5
Definition: tcc.h:1088
TCC_PATTBUF_Type::PGVB5
uint16_t PGVB5
Definition: tcc.h:1549
TCC_INTFLAG_Type::MC3
__I uint32_t MC3
Definition: tcc.h:1009
TCC_INTENSET_Type::FAULTB
uint32_t FAULTB
Definition: tcc.h:931
TCC_SYNCBUSY_Type::CC4
uint32_t CC4
Definition: tcc.h:264
TCC_INTENSET_Type::MC0
uint32_t MC0
Definition: tcc.h:934
RoReg8
volatile const uint8_t RoReg8
Definition: same54n19a.h:53
Tcc::PATTBUF
__IO TCC_PATTBUF_Type PATTBUF
Offset: 0x64 (R/W 16) Pattern Buffer.
Definition: tcc.h:1753
TCC_STATUS_Type::CMP4
uint32_t CMP4
Definition: tcc.h:1094
TCC_STATUS_Type::PATTBUFV
uint32_t PATTBUFV
Definition: tcc.h:1072
TCC_INTENCLR_Type::MC2
uint32_t MC2
Definition: tcc.h:864
Tcc::INTENCLR
__IO TCC_INTENCLR_Type INTENCLR
Offset: 0x24 (R/W 32) Interrupt Enable Clear.
Definition: tcc.h:1742
TCC_INTENSET_Type::MC3
uint32_t MC3
Definition: tcc.h:937
TCC_DRVCTRL_Type::FILTERVAL0
uint32_t FILTERVAL0
Definition: tcc.h:597
TCC_WEXCTRL_Type::DTIEN2
uint32_t DTIEN2
Definition: tcc.h:529
TCC_DRVCTRL_Type::INVEN0
uint32_t INVEN0
Definition: tcc.h:589
TCC_SYNCBUSY_Type::CTRLB
uint32_t CTRLB
Definition: tcc.h:254
TCC_CTRLA_Type::MSYNC
uint32_t MSYNC
Definition: tcc.h:55
TCC_DRVCTRL_Type::INVEN1
uint32_t INVEN1
Definition: tcc.h:590
TCC_CTRLA_Type::PRESCALER
uint32_t PRESCALER
Definition: tcc.h:51
TCC_CTRLBSET_Type::ONESHOT
uint8_t ONESHOT
Definition: tcc.h:203
TCC_EVCTRL_Type::MCEI4
uint32_t MCEI4
Definition: tcc.h:719
TCC_STATUS_Type::FAULT1IN
uint32_t FAULT1IN
Definition: tcc.h:1078
TCC_INTENCLR_Type::MC5
uint32_t MC5
Definition: tcc.h:867
TCC_STATUS_Type::FAULTB
uint32_t FAULTB
Definition: tcc.h:1080
Tcc
TCC hardware registers.
Definition: tcc.h:1728
TCC_FCTRLA_Type::RESTART
uint32_t RESTART
Definition: tcc.h:322
TCC_FCTRLB_Type::CAPTURE
uint32_t CAPTURE
Definition: tcc.h:429
Tcc::EVCTRL
__IO TCC_EVCTRL_Type EVCTRL
Offset: 0x20 (R/W 32) Event Control.
Definition: tcc.h:1741
TCC_FCTRLB_Type::BLANK
uint32_t BLANK
Definition: tcc.h:425
TCC_CTRLA_Type::CPTEN4
uint32_t CPTEN4
Definition: tcc.h:62
TCC_SYNCBUSY_Type::CC5
uint32_t CC5
Definition: tcc.h:265
TCC_STATUS_Type::CMP3
uint32_t CMP3
Definition: tcc.h:1093
TCC_EVCTRL_Type::MCEO2
uint32_t MCEO2
Definition: tcc.h:724
TCC_STATUS_Type::UFS
uint32_t UFS
Definition: tcc.h:1069
TCC_CC_Type
Definition: tcc.h:1473
TCC_PATTBUF_Type::PGEB5
uint16_t PGEB5
Definition: tcc.h:1541
TCC_PATT_Type::PGV0
uint16_t PGV0
Definition: tcc.h:1238
TCC_DRVCTRL_Type::NRE7
uint32_t NRE7
Definition: tcc.h:580
TCC_PATT_Type::PGE4
uint16_t PGE4
Definition: tcc.h:1234
TCC_CTRLA_Type::ALOCK
uint32_t ALOCK
Definition: tcc.h:54
TCC_PATTBUF_Type::PGEB6
uint16_t PGEB6
Definition: tcc.h:1542
TCC_CTRLBSET_Type::CMD
uint8_t CMD
Definition: tcc.h:205
TCC_PATT_Type::PGE1
uint16_t PGE1
Definition: tcc.h:1231
TCC_SYNCBUSY_Type
Definition: tcc.h:250
TCC_PATT_Type::PGE7
uint16_t PGE7
Definition: tcc.h:1237
TCC_PATTBUF_Type::PGEB4
uint16_t PGEB4
Definition: tcc.h:1540
TCC_COUNT_Type::reg
uint32_t reg
Definition: tcc.h:1196
TCC_WAVE_Type::CICCEN2
uint32_t CICCEN2
Definition: tcc.h:1309
TCC_WAVE_Type::POL4
uint32_t POL4
Definition: tcc.h:1316
TCC_EVCTRL_Type::MCEO5
uint32_t MCEO5
Definition: tcc.h:727
TCC_SYNCBUSY_Type::PER
uint32_t PER
Definition: tcc.h:259
TCC_INTFLAG_Type::MC4
__I uint32_t MC4
Definition: tcc.h:1010
TCC_STATUS_Type::FAULTA
uint32_t FAULTA
Definition: tcc.h:1079
TCC_CTRLBSET_Type::reg
uint8_t reg
Definition: tcc.h:207
Tcc::CTRLA
__IO TCC_CTRLA_Type CTRLA
Offset: 0x00 (R/W 32) Control A.
Definition: tcc.h:1729
TCC_SYNCBUSY_Type::SWRST
uint32_t SWRST
Definition: tcc.h:252
TCC_PATTBUF_Type::reg
uint16_t reg
Definition: tcc.h:1557