PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
dstc.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (C) 2013 Spansion LLC. All Rights Reserved.
3 *
4 * This software is owned and published by:
5 * Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion").
6 *
7 * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
8 * BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
9 *
10 * This software contains source code for use with Spansion
11 * components. This software is licensed by Spansion to be adapted only
12 * for use in systems utilizing Spansion components. Spansion shall not be
13 * responsible for misuse or illegal use of this software for devices not
14 * supported herein. Spansion is providing this software "AS IS" and will
15 * not be responsible for issues arising from incorrect user implementation
16 * of the software.
17 *
18 * SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE,
19 * REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS),
20 * ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING,
21 * WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED
22 * WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED
23 * WARRANTY OF NONINFRINGEMENT.
24 * SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT,
25 * NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT
26 * LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
27 * LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR
28 * INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT,
29 * INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA,
30 * SAVINGS OR PROFITS,
31 * EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32 * YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR
33 * INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED
34 * FROM, THE SOFTWARE.
35 *
36 * This software may be replicated in part or whole for the licensed use,
37 * with the restriction that this Disclaimer and Copyright notice must be
38 * included with each copy of this software, whether used in part or whole,
39 * at all times.
40 */
41 /******************************************************************************/
51 #ifndef __DSTC_H__
52 #define __DSTC_H__
53 
54 /******************************************************************************/
55 /* Include files */
56 /******************************************************************************/
57 #include "pdl.h"
58 
59 #if (defined(PDL_PERIPHERAL_DSTC_ACTIVE))
60 
61 /* C binding of definitions if building with C++ compiler */
62 #ifdef __cplusplus
63 extern "C"
64 {
65 #endif
66 
139 
140 /******************************************************************************/
141 /* Global pre-processor symbols/macros ('#define') */
142 /******************************************************************************/
143 #define DSTC_TRANSITION_TIMEOUT 100000u
144 
145 
146 #define DSTC_PCHK_CALC(x) ((((x) & 0x0F000000ul) >> 24u) ^ \
147  (((x) & 0x00F00000ul) >> 20u) ^ \
148  (((x) & 0x000F0000ul) >> 16u) ^ \
149  (((x) & 0x0000F000ul) >> 12u) ^ \
150  (((x) & 0x00000F00ul) >> 8u) ^ \
151  (((x) & 0x000000F0ul) >> 4u))
152 
154 #define DSTC_IRQ_NUMBER_ADC0_PRIO 110u
155 #define DSTC_IRQ_NUMBER_ADC0_SCAN 111u
156 #define DSTC_IRQ_NUMBER_ADC1_PRIO 112u
157 #define DSTC_IRQ_NUMBER_ADC1_SCAN 113u
158 #define DSTC_IRQ_NUMBER_ADC2_PRIO 114u
159 #define DSTC_IRQ_NUMBER_ADC2_SCAN 115u
160 #define DSTC_IRQ_NUMBER_BT0_IRQ0 16u
161 #define DSTC_IRQ_NUMBER_BT0_IRQ1 17u
162 #define DSTC_IRQ_NUMBER_BT10_IRQ0 148u
163 #define DSTC_IRQ_NUMBER_BT10_IRQ1 149u
164 #define DSTC_IRQ_NUMBER_BT11_IRQ0 150u
165 #define DSTC_IRQ_NUMBER_BT11_IRQ1 151u
166 #define DSTC_IRQ_NUMBER_BT12_IRQ0 152u
167 #define DSTC_IRQ_NUMBER_BT12_IRQ1 153u
168 #define DSTC_IRQ_NUMBER_BT13_IRQ0 154u
169 #define DSTC_IRQ_NUMBER_BT13_IRQ1 155u
170 #define DSTC_IRQ_NUMBER_BT14_IRQ0 156u
171 #define DSTC_IRQ_NUMBER_BT14_IRQ1 157u
172 #define DSTC_IRQ_NUMBER_BT15_IRQ0 158u
173 #define DSTC_IRQ_NUMBER_BT15_IRQ1 159u
174 #define DSTC_IRQ_NUMBER_BT1_IRQ0 18u
175 #define DSTC_IRQ_NUMBER_BT1_IRQ1 19u
176 #define DSTC_IRQ_NUMBER_BT2_IRQ0 20u
177 #define DSTC_IRQ_NUMBER_BT2_IRQ1 21u
178 #define DSTC_IRQ_NUMBER_BT3_IRQ0 22u
179 #define DSTC_IRQ_NUMBER_BT3_IRQ1 23u
180 #define DSTC_IRQ_NUMBER_BT4_IRQ0 24u
181 #define DSTC_IRQ_NUMBER_BT4_IRQ1 25u
182 #define DSTC_IRQ_NUMBER_BT5_IRQ0 26u
183 #define DSTC_IRQ_NUMBER_BT5_IRQ1 27u
184 #define DSTC_IRQ_NUMBER_BT6_IRQ0 28u
185 #define DSTC_IRQ_NUMBER_BT6_IRQ1 29u
186 #define DSTC_IRQ_NUMBER_BT7_IRQ0 30u
187 #define DSTC_IRQ_NUMBER_BT7_IRQ1 31u
188 #define DSTC_IRQ_NUMBER_BT8_IRQ0 144u
189 #define DSTC_IRQ_NUMBER_BT8_IRQ1 145u
190 #define DSTC_IRQ_NUMBER_BT9_IRQ0 146u
191 #define DSTC_IRQ_NUMBER_BT9_IRQ1 147u
192 #define DSTC_IRQ_NUMBER_EXTINT0 0u
193 #define DSTC_IRQ_NUMBER_EXTINT1 1u
194 #define DSTC_IRQ_NUMBER_EXTINT10 10u
195 #define DSTC_IRQ_NUMBER_EXTINT11 11u
196 #define DSTC_IRQ_NUMBER_EXTINT12 12u
197 #define DSTC_IRQ_NUMBER_EXTINT13 13u
198 #define DSTC_IRQ_NUMBER_EXTINT14 14u
199 #define DSTC_IRQ_NUMBER_EXTINT15 15u
200 #define DSTC_IRQ_NUMBER_EXTINT16 128u
201 #define DSTC_IRQ_NUMBER_EXTINT17 129u
202 #define DSTC_IRQ_NUMBER_EXTINT18 130u
203 #define DSTC_IRQ_NUMBER_EXTINT19 131u
204 #define DSTC_IRQ_NUMBER_EXTINT2 2u
205 #define DSTC_IRQ_NUMBER_EXTINT20 132u
206 #define DSTC_IRQ_NUMBER_EXTINT21 133u
207 #define DSTC_IRQ_NUMBER_EXTINT22 134u
208 #define DSTC_IRQ_NUMBER_EXTINT23 135u
209 #define DSTC_IRQ_NUMBER_EXTINT24 136u
210 #define DSTC_IRQ_NUMBER_EXTINT25 137u
211 #define DSTC_IRQ_NUMBER_EXTINT26 138u
212 #define DSTC_IRQ_NUMBER_EXTINT27 139u
213 #define DSTC_IRQ_NUMBER_EXTINT28 140u
214 #define DSTC_IRQ_NUMBER_EXTINT29 141u
215 #define DSTC_IRQ_NUMBER_EXTINT3 3u
216 #define DSTC_IRQ_NUMBER_EXTINT30 142u
217 #define DSTC_IRQ_NUMBER_EXTINT31 143u
218 #define DSTC_IRQ_NUMBER_EXTINT4 4u
219 #define DSTC_IRQ_NUMBER_EXTINT5 5u
220 #define DSTC_IRQ_NUMBER_EXTINT6 6u
221 #define DSTC_IRQ_NUMBER_EXTINT7 7u
222 #define DSTC_IRQ_NUMBER_EXTINT8 8u
223 #define DSTC_IRQ_NUMBER_EXTINT9 9u
224 #define DSTC_IRQ_NUMBER_MFS0_RX 89u
225 #define DSTC_IRQ_NUMBER_MFS0_TX 90u
226 #define DSTC_IRQ_NUMBER_MFS10_RX 198u
227 #define DSTC_IRQ_NUMBER_MFS10_TX 199u
228 #define DSTC_IRQ_NUMBER_MFS11_RX 200u
229 #define DSTC_IRQ_NUMBER_MFS11_TX 201u
230 #define DSTC_IRQ_NUMBER_MFS12_RX 209u
231 #define DSTC_IRQ_NUMBER_MFS12_TX 210u
232 #define DSTC_IRQ_NUMBER_MFS13_RX 211u
233 #define DSTC_IRQ_NUMBER_MFS13_TX 212u
234 #define DSTC_IRQ_NUMBER_MFS14_RX 213u
235 #define DSTC_IRQ_NUMBER_MFS14_TX 214u
236 #define DSTC_IRQ_NUMBER_MFS15_RX 215u
237 #define DSTC_IRQ_NUMBER_MFS15_TX 216u
238 #define DSTC_IRQ_NUMBER_MFS1_RX 91u
239 #define DSTC_IRQ_NUMBER_MFS1_TX 92u
240 #define DSTC_IRQ_NUMBER_MFS2_RX 93u
241 #define DSTC_IRQ_NUMBER_MFS2_TX 94u
242 #define DSTC_IRQ_NUMBER_MFS3_RX 95u
243 #define DSTC_IRQ_NUMBER_MFS3_TX 96u
244 #define DSTC_IRQ_NUMBER_MFS4_RX 97u
245 #define DSTC_IRQ_NUMBER_MFS4_TX 98u
246 #define DSTC_IRQ_NUMBER_MFS5_RX 99u
247 #define DSTC_IRQ_NUMBER_MFS5_TX 100u
248 #define DSTC_IRQ_NUMBER_MFS6_RX 101u
249 #define DSTC_IRQ_NUMBER_MFS6_TX 102u
250 #define DSTC_IRQ_NUMBER_MFS7_RX 103u
251 #define DSTC_IRQ_NUMBER_MFS7_TX 104u
252 #define DSTC_IRQ_NUMBER_MFS8_RX 194u
253 #define DSTC_IRQ_NUMBER_MFS8_TX 195u
254 #define DSTC_IRQ_NUMBER_MFS9_RX 196u
255 #define DSTC_IRQ_NUMBER_MFS9_TX 197u
256 #define DSTC_IRQ_NUMBER_MFT0_FRT0_PEAK 35u
257 #define DSTC_IRQ_NUMBER_MFT0_FRT0_ZERO 38u
258 #define DSTC_IRQ_NUMBER_MFT0_FRT1_PEAK 36u
259 #define DSTC_IRQ_NUMBER_MFT0_FRT1_ZERO 39u
260 #define DSTC_IRQ_NUMBER_MFT0_FRT2_PEAK 37u
261 #define DSTC_IRQ_NUMBER_MFT0_FRT2_ZERO 40u
262 #define DSTC_IRQ_NUMBER_MFT0_ICU0 41u
263 #define DSTC_IRQ_NUMBER_MFT0_ICU1 42u
264 #define DSTC_IRQ_NUMBER_MFT0_ICU2 43u
265 #define DSTC_IRQ_NUMBER_MFT0_ICU3 44u
266 #define DSTC_IRQ_NUMBER_MFT0_OCU0 45u
267 #define DSTC_IRQ_NUMBER_MFT0_OCU1 46u
268 #define DSTC_IRQ_NUMBER_MFT0_OCU2 47u
269 #define DSTC_IRQ_NUMBER_MFT0_OCU3 48u
270 #define DSTC_IRQ_NUMBER_MFT0_OCU4 49u
271 #define DSTC_IRQ_NUMBER_MFT0_OCU5 50u
272 #define DSTC_IRQ_NUMBER_MFT0_WFG10 32u
273 #define DSTC_IRQ_NUMBER_MFT0_WFG32 33u
274 #define DSTC_IRQ_NUMBER_MFT0_WFG54 34u
275 #define DSTC_IRQ_NUMBER_MFT1_FRT0_PEAK 54u
276 #define DSTC_IRQ_NUMBER_MFT1_FRT0_ZERO 57u
277 #define DSTC_IRQ_NUMBER_MFT1_FRT1_PEAK 55u
278 #define DSTC_IRQ_NUMBER_MFT1_FRT1_ZERO 58u
279 #define DSTC_IRQ_NUMBER_MFT1_FRT2_PEAK 56u
280 #define DSTC_IRQ_NUMBER_MFT1_FRT2_ZERO 59u
281 #define DSTC_IRQ_NUMBER_MFT1_ICU0 60u
282 #define DSTC_IRQ_NUMBER_MFT1_ICU1 61u
283 #define DSTC_IRQ_NUMBER_MFT1_ICU2 62u
284 #define DSTC_IRQ_NUMBER_MFT1_ICU3 63u
285 #define DSTC_IRQ_NUMBER_MFT1_OCU0 64u
286 #define DSTC_IRQ_NUMBER_MFT1_OCU1 65u
287 #define DSTC_IRQ_NUMBER_MFT1_OCU2 66u
288 #define DSTC_IRQ_NUMBER_MFT1_OCU3 67u
289 #define DSTC_IRQ_NUMBER_MFT1_OCU4 68u
290 #define DSTC_IRQ_NUMBER_MFT1_OCU5 69u
291 #define DSTC_IRQ_NUMBER_MFT1_WFG10 51u
292 #define DSTC_IRQ_NUMBER_MFT1_WFG32 52u
293 #define DSTC_IRQ_NUMBER_MFT1_WFG54 53u
294 #define DSTC_IRQ_NUMBER_MFT2_FRT0_PEAK 163u
295 #define DSTC_IRQ_NUMBER_MFT2_FRT0_ZERO 166u
296 #define DSTC_IRQ_NUMBER_MFT2_FRT1_PEAK 164u
297 #define DSTC_IRQ_NUMBER_MFT2_FRT1_ZERO 167u
298 #define DSTC_IRQ_NUMBER_MFT2_FRT2_PEAK 165u
299 #define DSTC_IRQ_NUMBER_MFT2_FRT2_ZERO 168u
300 #define DSTC_IRQ_NUMBER_MFT2_ICU0 169u
301 #define DSTC_IRQ_NUMBER_MFT2_ICU1 170u
302 #define DSTC_IRQ_NUMBER_MFT2_ICU2 171u
303 #define DSTC_IRQ_NUMBER_MFT2_ICU3 172u
304 #define DSTC_IRQ_NUMBER_MFT2_OCU0 173u
305 #define DSTC_IRQ_NUMBER_MFT2_OCU1 174u
306 #define DSTC_IRQ_NUMBER_MFT2_OCU2 175u
307 #define DSTC_IRQ_NUMBER_MFT2_OCU3 176u
308 #define DSTC_IRQ_NUMBER_MFT2_OCU4 177u
309 #define DSTC_IRQ_NUMBER_MFT2_OCU5 178u
310 #define DSTC_IRQ_NUMBER_MFT2_WFG10 160u
311 #define DSTC_IRQ_NUMBER_MFT2_WFG32 161u
312 #define DSTC_IRQ_NUMBER_MFT2_WFG54 162u
313 #define DSTC_IRQ_NUMBER_PPG0 70u
314 #define DSTC_IRQ_NUMBER_PPG10 74u
315 #define DSTC_IRQ_NUMBER_PPG12 75u
316 #define DSTC_IRQ_NUMBER_PPG16 179u
317 #define DSTC_IRQ_NUMBER_PPG18 180u
318 #define DSTC_IRQ_NUMBER_PPG2 71u
319 #define DSTC_IRQ_NUMBER_PPG20 181u
320 #define DSTC_IRQ_NUMBER_PPG4 72u
321 #define DSTC_IRQ_NUMBER_PPG8 73u
322 #define DSTC_IRQ_NUMBER_QPRC0_COUNT_INVERSION 79u
323 #define DSTC_IRQ_NUMBER_QPRC0_OUT_OF_RANGE 80u
324 #define DSTC_IRQ_NUMBER_QPRC0_PC_MATCH 76u
325 #define DSTC_IRQ_NUMBER_QPRC0_PC_MATCH_RC_MATCH 81u
326 #define DSTC_IRQ_NUMBER_QPRC0_PC_RC_MATCH 77u
327 #define DSTC_IRQ_NUMBER_QPRC0_UFL_OFL_Z 78u
328 #define DSTC_IRQ_NUMBER_QPRC1_COUNT_INVERSION 85u
329 #define DSTC_IRQ_NUMBER_QPRC1_OUT_OF_RANGE 86u
330 #define DSTC_IRQ_NUMBER_QPRC1_PC_MATCH 82u
331 #define DSTC_IRQ_NUMBER_QPRC1_PC_MATCH_RC_MATCH 87u
332 #define DSTC_IRQ_NUMBER_QPRC1_PC_RC_MATCH 83u
333 #define DSTC_IRQ_NUMBER_QPRC1_UFL_OFL_Z 84u
334 #define DSTC_IRQ_NUMBER_QPRC2_COUNT_INVERSION 185u
335 #define DSTC_IRQ_NUMBER_QPRC2_OUT_OF_RANGE 186u
336 #define DSTC_IRQ_NUMBER_QPRC2_PC_MATCH 182u
337 #define DSTC_IRQ_NUMBER_QPRC2_PC_MATCH_RC_MATCH 187u
338 #define DSTC_IRQ_NUMBER_QPRC2_PC_RC_MATCH 183u
339 #define DSTC_IRQ_NUMBER_QPRC2_UFL_OFL_Z 184u
340 #define DSTC_IRQ_NUMBER_QPRC3_COUNT_INVERSION 191u
341 #define DSTC_IRQ_NUMBER_QPRC3_OUT_OF_RANGE 192u
342 #define DSTC_IRQ_NUMBER_QPRC3_PC_MATCH 188u
343 #define DSTC_IRQ_NUMBER_QPRC3_PC_MATCH_RC_MATCH 193u
344 #define DSTC_IRQ_NUMBER_QPRC3_PC_RC_MATCH 189u
345 #define DSTC_IRQ_NUMBER_QPRC3_UFL_OFL_Z 190u
346 #define DSTC_IRQ_NUMBER_USB0_EP1 105u
347 #define DSTC_IRQ_NUMBER_USB0_EP2 106u
348 #define DSTC_IRQ_NUMBER_USB0_EP3 107u
349 #define DSTC_IRQ_NUMBER_USB0_EP4 108u
350 #define DSTC_IRQ_NUMBER_USB0_EP5 109u
351 #define DSTC_IRQ_NUMBER_USB1_EP1 202u
352 #define DSTC_IRQ_NUMBER_USB1_EP2 203u
353 #define DSTC_IRQ_NUMBER_USB1_EP3 204u
354 #define DSTC_IRQ_NUMBER_USB1_EP4 205u
355 #define DSTC_IRQ_NUMBER_USB1_EP5 206u
356 #define DSTC_IRQ_NUMBER_WC 88u
357 
358 
359 /******************************************************************************
360  * Global type definitions
361  ******************************************************************************/
362 
367 typedef enum en_dstc_cmd
368 {
371  CmdSwclr = 2u,
372  CmdErclr = 3u,
373  CmdRbclr = 4u,
374  CmdMkclr = 5u
375 } en_dstc_cmd_t;
376 
381 typedef enum en_dstc_swpr
382 {
384  Priority1_2 = 1u,
385  Priority1_3 = 2u,
386  Priority1_7 = 3u,
392 
397 typedef enum en_dstc_est_error
398 {
399  NoError = 0u,
407 
412 typedef void (*func_ptr_dstc_args_t)(en_dstc_est_error_t enEstError,
413  uint16_t u16ErrorChannel,
414  uint16_t u16ErrorDesPointer,
415  boolean_t bSoftwareError,
416  boolean_t bDoubleError,
417  boolean_t bErrorStop);
418 
423 typedef struct stc_dstc_dreqenb
424 {
425  uint32_t u32Dreqenb0;
426  uint32_t u32Dreqenb1;
427  uint32_t u32Dreqenb2;
428  uint32_t u32Dreqenb3;
429  uint32_t u32Dreqenb4;
430  uint32_t u32Dreqenb5;
431  uint32_t u32Dreqenb6;
432  uint32_t u32Dreqenb7;
434 
439 typedef struct stc_dstc_hwint
440 {
441  uint32_t u32Hwint0;
442  uint32_t u32Hwint1;
443  uint32_t u32Hwint2;
444  uint32_t u32Hwint3;
445  uint32_t u32Hwint4;
446  uint32_t u32Hwint5;
447  uint32_t u32Hwint6;
448  uint32_t u32Hwint7;
450 
455 typedef struct stc_dstc_hwintclr
456 {
457  uint32_t u32Hwintclr0;
458  uint32_t u32Hwintclr1;
459  uint32_t u32Hwintclr2;
460  uint32_t u32Hwintclr3;
461  uint32_t u32Hwintclr4;
462  uint32_t u32Hwintclr5;
463  uint32_t u32Hwintclr6;
464  uint32_t u32Hwintclr7;
466 
471 typedef struct stc_dstc_dqmsk
472 {
473  uint32_t u32Dqmsk0;
474  uint32_t u32Dqmsk1;
475  uint32_t u32Dqmsk2;
476  uint32_t u32Dqmsk3;
477  uint32_t u32Dqmsk4;
478  uint32_t u32Dqmsk5;
479  uint32_t u32Dqmsk6;
480  uint32_t u32Dqmsk7;
482 
487 typedef struct stc_dstc_dqmskclr
488 {
489  uint32_t u32Dqmskclr0;
490  uint32_t u32Dqmskclr1;
491  uint32_t u32Dqmskclr2;
492  uint32_t u32Dqmskclr3;
493  uint32_t u32Dqmskclr4;
494  uint32_t u32Dqmskclr5;
495  uint32_t u32Dqmskclr6;
496  uint32_t u32Dqmskclr7;
498 
503 typedef struct stc_dstc_des0
504 {
505  uint32_t DV : 2;
506  uint32_t ST : 2;
507  uint32_t MODE : 1;
508  uint32_t ORL : 3;
509  uint32_t TW : 2;
510  uint32_t SAC : 3;
511  uint32_t DAC : 3;
512  uint32_t CHRS : 6;
513  uint32_t DMSET : 1;
514  uint32_t CHLK : 1;
515  uint32_t ACK : 2;
516  uint32_t RESERVED : 2;
517  uint32_t PCHK : 4;
519 
524 typedef struct stc_dstc_des1_mode0
525 {
526  uint32_t IIN : 16;
527  uint32_t ORM : 16;
529 
534 typedef struct stc_dstc_des1_mode1
535 {
536  uint32_t IIN : 8;
537  uint32_t IRM : 8;
538  uint32_t ORM : 16;
540 
545 typedef struct stc_dstc_des0123
546 {
547  union
548  {
549  uint32_t u32DES0; // Needed for PCHK calculation
550  stc_dstc_des0_t DES0; // Transfer basic setting
551  };
552  union
553  {
554  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
555  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
556  };
557  uint32_t DES2; // Source Address
558  uint32_t DES3; // Destination Address
560 
565 typedef struct stc_dstc_des01234
566 {
567  union
568  {
569  uint32_t u32DES0; // Needed for PCHK calculation
570  stc_dstc_des0_t DES0; // Transfer basic setting
571  };
572  union
573  {
574  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
575  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
576  };
577  uint32_t DES2; // Source Address
578  uint32_t DES3; // Destination Address
579  union
580  {
581  stc_dstc_des1_mode0_t DES4_mode0; // Number of Transfers in Mode 0 for OuterReload (copied in DES1 Mode 0)
582  stc_dstc_des1_mode1_t DES4_mode1; // Number of Transfers in Mode 1 for OuterReload (copied in DES1 Mode 1)
583  };
585 
590 typedef struct stc_dstc_des012345
591 {
592  union
593  {
594  uint32_t u32DES0; // Needed for PCHK calculation
595  stc_dstc_des0_t DES0; // Transfer basic setting
596  };
597  union
598  {
599  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
600  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
601  };
602  uint32_t DES2; // Source Address
603  uint32_t DES3; // Destination Address
604  union
605  {
606  stc_dstc_des1_mode0_t DES4_mode0; // Number of Transfers in Mode 0 for OuterReload (copied in DES1 Mode 0)
607  stc_dstc_des1_mode1_t DES4_mode1; // Number of Transfers in Mode 1 for OuterReload (copied in DES1 Mode 1)
608  };
609  uint32_t DES5; // Source Address in OuterReload (copied in DES2)
611 
616 typedef struct stc_dstc_des0123456
617 {
618  union
619  {
620  uint32_t u32DES0; // Needed for PCHK calculation
621  stc_dstc_des0_t DES0; // Transfer basic setting
622  };
623  union
624  {
625  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
626  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
627  };
628  uint32_t DES2; // Source Address
629  uint32_t DES3; // Destination Address
630  union
631  {
632  stc_dstc_des1_mode0_t DES4_mode0; // Number of Transfers in Mode 0 for OuterReload (copied in DES1 Mode 0)
633  stc_dstc_des1_mode1_t DES4_mode1; // Number of Transfers in Mode 1 for OuterReload (copied in DES1 Mode 1)
634  };
635  uint32_t DES5; // Source Address in OuterReload (copied in DES2)
636  uint32_t DES6; // Destination Address in OuterReload (copied in DES3)
638 
643 typedef struct stc_dstc_des01235
644 {
645  union
646  {
647  uint32_t u32DES0; // Needed for PCHK calculation
648  stc_dstc_des0_t DES0; // Transfer basic setting
649  };
650  union
651  {
652  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
653  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
654  };
655  uint32_t DES2; // Source Address
656  uint32_t DES3; // Destination Address
657  uint32_t DES5; // Source Address in OuterReload (copied in DES2)
659 
664 typedef struct stc_dstc_des01236
665 {
666  union
667  {
668  uint32_t u32DES0; // Needed for PCHK calculation
669  stc_dstc_des0_t DES0; // Transfer basic setting
670  };
671  union
672  {
673  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
674  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
675  };
676  uint32_t DES2; // Source Address
677  uint32_t DES3; // Destination Address
678  uint32_t DES6; // Destination Address in OuterReload (copied in DES3)
680 
685 typedef struct stc_dstc_des012346
686 {
687  union
688  {
689  uint32_t u32DES0; // Needed for PCHK calculation
690  stc_dstc_des0_t DES0; // Transfer basic setting
691  };
692  union
693  {
694  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
695  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
696  };
697  uint32_t DES2; // Source Address
698  uint32_t DES3; // Destination Address
699  union
700  {
701  stc_dstc_des1_mode0_t DES4_mode0; // Number of Transfers in Mode 0 for OuterReload (copied in DES1 Mode 0)
702  stc_dstc_des1_mode1_t DES4_mode1; // Number of Transfers in Mode 1 for OuterReload (copied in DES1 Mode 1)
703  };
704  uint32_t DES6; // Destination Address in OuterReload (copied in DES3)
706 
711 typedef struct stc_dstc_des012356
712 {
713  union
714  {
715  uint32_t u32DES0; // Needed for PCHK calculation
716  stc_dstc_des0_t DES0; // Transfer basic setting
717  };
718  union
719  {
720  stc_dstc_des1_mode0_t DES1_mode0; // Number of Transfers in Mode 0
721  stc_dstc_des1_mode1_t DES1_mode1; // Number of Transfers in Mode 1
722  };
723  uint32_t DES2; // Source Address
724  uint32_t DES3; // Destination Address
725  uint32_t DES5; // Source Address in OuterReload (copied in DES2)
726  uint32_t DES6; // Destination Address in OuterReload (copied in DES3)
728 
733 typedef struct stc_dstc_config
734 {
735  uint32_t u32Destp;
743 
744 #if (PDL_ON == PDL_DSTC_ENABLE_ADC0_PRIO)
746 #endif
747 #if (PDL_ON == PDL_DSTC_ENABLE_ADC0_SCAN)
749 #endif
750 #if (PDL_ON == PDL_DSTC_ENABLE_ADC1_PRIO)
752 #endif
753 #if (PDL_ON == PDL_DSTC_ENABLE_ADC1_SCAN)
755 #endif
756 #if (PDL_ON == PDL_DSTC_ENABLE_ADC2_PRIO)
758 #endif
759 #if (PDL_ON == PDL_DSTC_ENABLE_ADC2_SCAN)
761 #endif
762 #if (PDL_ON == PDL_DSTC_ENABLE_BT0_IRQ0)
764 #endif
765 #if (PDL_ON == PDL_DSTC_ENABLE_BT0_IRQ1)
767 #endif
768 #if (PDL_ON == PDL_DSTC_ENABLE_BT1_IRQ0)
770 #endif
771 #if (PDL_ON == PDL_DSTC_ENABLE_BT1_IRQ1)
773 #endif
774 #if (PDL_ON == PDL_DSTC_ENABLE_BT2_IRQ0)
776 #endif
777 #if (PDL_ON == PDL_DSTC_ENABLE_BT2_IRQ1)
779 #endif
780 #if (PDL_ON == PDL_DSTC_ENABLE_BT3_IRQ0)
782 #endif
783 #if (PDL_ON == PDL_DSTC_ENABLE_BT3_IRQ1)
785 #endif
786 #if (PDL_ON == PDL_DSTC_ENABLE_BT4_IRQ0)
788 #endif
789 #if (PDL_ON == PDL_DSTC_ENABLE_BT4_IRQ1)
791 #endif
792 #if (PDL_ON == PDL_DSTC_ENABLE_BT5_IRQ0)
794 #endif
795 #if (PDL_ON == PDL_DSTC_ENABLE_BT5_IRQ1)
797 #endif
798 #if (PDL_ON == PDL_DSTC_ENABLE_BT6_IRQ0)
800 #endif
801 #if (PDL_ON == PDL_DSTC_ENABLE_BT6_IRQ1)
803 #endif
804 #if (PDL_ON == PDL_DSTC_ENABLE_BT7_IRQ0)
806 #endif
807 #if (PDL_ON == PDL_DSTC_ENABLE_BT7_IRQ1)
809 #endif
810 #if (PDL_ON == PDL_DSTC_ENABLE_BT8_IRQ0)
812 #endif
813 #if (PDL_ON == PDL_DSTC_ENABLE_BT8_IRQ1)
815 #endif
816 #if (PDL_ON == PDL_DSTC_ENABLE_BT9_IRQ0)
818 #endif
819 #if (PDL_ON == PDL_DSTC_ENABLE_BT9_IRQ1)
821 #endif
822 #if (PDL_ON == PDL_DSTC_ENABLE_BT10_IRQ0)
824 #endif
825 #if (PDL_ON == PDL_DSTC_ENABLE_BT10_IRQ1)
827 #endif
828 #if (PDL_ON == PDL_DSTC_ENABLE_BT11_IRQ0)
830 #endif
831 #if (PDL_ON == PDL_DSTC_ENABLE_BT11_IRQ1)
833 #endif
834 #if (PDL_ON == PDL_DSTC_ENABLE_BT12_IRQ0)
836 #endif
837 #if (PDL_ON == PDL_DSTC_ENABLE_BT12_IRQ1)
839 #endif
840 #if (PDL_ON == PDL_DSTC_ENABLE_BT13_IRQ0)
842 #endif
843 #if (PDL_ON == PDL_DSTC_ENABLE_BT13_IRQ1)
845 #endif
846 #if (PDL_ON == PDL_DSTC_ENABLE_BT14_IRQ0)
848 #endif
849 #if (PDL_ON == PDL_DSTC_ENABLE_BT14_IRQ1)
851 #endif
852 #if (PDL_ON == PDL_DSTC_ENABLE_BT15_IRQ0)
854 #endif
855 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT0)
857 #endif
858 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT1)
860 #endif
861 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT2)
863 #endif
864 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT3)
866 #endif
867 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT4)
869 #endif
870 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT5)
872 #endif
873 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT6)
875 #endif
876 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT7)
878 #endif
879 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT8)
881 #endif
882 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT9)
884 #endif
885 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT10)
887 #endif
888 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT11)
890 #endif
891 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT12)
893 #endif
894 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT13)
896 #endif
897 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT14)
899 #endif
900 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT15)
902 #endif
903 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT16)
905 #endif
906 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT17)
908 #endif
909 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT18)
911 #endif
912 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT19)
914 #endif
915 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT20)
917 #endif
918 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT21)
920 #endif
921 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT22)
923 #endif
924 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT23)
926 #endif
927 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT24)
929 #endif
930 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT25)
932 #endif
933 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT26)
935 #endif
936 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT27)
938 #endif
939 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT28)
941 #endif
942 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT29)
944 #endif
945 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT30)
947 #endif
948 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT31)
950 #endif
951 #if (PDL_ON == PDL_DSTC_ENABLE_MFS0_RX)
953 #endif
954 #if (PDL_ON == PDL_DSTC_ENABLE_MFS0_TX)
956 #endif
957 #if (PDL_ON == PDL_DSTC_ENABLE_MFS1_RX)
959 #endif
960 #if (PDL_ON == PDL_DSTC_ENABLE_MFS1_TX)
962 #endif
963 #if (PDL_ON == PDL_DSTC_ENABLE_MFS2_RX)
965 #endif
966 #if (PDL_ON == PDL_DSTC_ENABLE_MFS2_TX)
968 #endif
969 #if (PDL_ON == PDL_DSTC_ENABLE_MFS3_RX)
971 #endif
972 #if (PDL_ON == PDL_DSTC_ENABLE_MFS3_TX)
974 #endif
975 #if (PDL_ON == PDL_DSTC_ENABLE_MFS4_RX)
977 #endif
978 #if (PDL_ON == PDL_DSTC_ENABLE_MFS4_TX)
980 #endif
981 #if (PDL_ON == PDL_DSTC_ENABLE_MFS5_RX)
983 #endif
984 #if (PDL_ON == PDL_DSTC_ENABLE_MFS5_TX)
986 #endif
987 #if (PDL_ON == PDL_DSTC_ENABLE_MFS6_RX)
989 #endif
990 #if (PDL_ON == PDL_DSTC_ENABLE_MFS6_TX)
992 #endif
993 #if (PDL_ON == PDL_DSTC_ENABLE_MFS7_RX)
995 #endif
996 #if (PDL_ON == PDL_DSTC_ENABLE_MFS7_TX)
998 #endif
999 #if (PDL_ON == PDL_DSTC_ENABLE_MFS8_RX)
1001 #endif
1002 #if (PDL_ON == PDL_DSTC_ENABLE_MFS8_TX)
1004 #endif
1005 #if (PDL_ON == PDL_DSTC_ENABLE_MFS9_RX)
1007 #endif
1008 #if (PDL_ON == PDL_DSTC_ENABLE_MFS9_TX)
1010 #endif
1011 #if (PDL_ON == PDL_DSTC_ENABLE_MFS10_RX)
1013 #endif
1014 #if (PDL_ON == PDL_DSTC_ENABLE_MFS10_TX)
1016 #endif
1017 #if (PDL_ON == PDL_DSTC_ENABLE_MFS11_RX)
1019 #endif
1020 #if (PDL_ON == PDL_DSTC_ENABLE_MFS11_TX)
1022 #endif
1023 #if (PDL_ON == PDL_DSTC_ENABLE_MFS12_RX)
1025 #endif
1026 #if (PDL_ON == PDL_DSTC_ENABLE_MFS12_TX)
1028 #endif
1029 #if (PDL_ON == PDL_DSTC_ENABLE_MFS13_RX)
1031 #endif
1032 #if (PDL_ON == PDL_DSTC_ENABLE_MFS13_TX)
1034 #endif
1035 #if (PDL_ON == PDL_DSTC_ENABLE_MFS14_RX)
1037 #endif
1038 #if (PDL_ON == PDL_DSTC_ENABLE_MFS14_TX)
1040 #endif
1041 #if (PDL_ON == PDL_DSTC_ENABLE_MFS15_RX)
1043 #endif
1044 #if (PDL_ON == PDL_DSTC_ENABLE_MFS15_TX)
1046 #endif
1047 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT0_PEAK)
1049 #endif
1050 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT0_ZERO)
1052 #endif
1053 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT1_PEAK)
1055 #endif
1056 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT1_ZERO)
1058 #endif
1059 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT2_PEAK)
1061 #endif
1062 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT2_ZERO)
1064 #endif
1065 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU0)
1067 #endif
1068 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU1)
1070 #endif
1071 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU2)
1073 #endif
1074 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU3)
1076 #endif
1077 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU0)
1079 #endif
1080 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU1)
1082 #endif
1083 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU2)
1085 #endif
1086 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU3)
1088 #endif
1089 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU4)
1091 #endif
1092 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU5)
1094 #endif
1095 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG10)
1097 #endif
1098 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG32)
1100 #endif
1101 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG54)
1103 #endif
1104 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT0_PEAK)
1106 #endif
1107 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT0_ZERO)
1109 #endif
1110 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT1_PEAK)
1112 #endif
1113 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT1_ZERO)
1115 #endif
1116 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT2_PEAK)
1118 #endif
1119 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT2_ZERO)
1121 #endif
1122 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU0)
1124 #endif
1125 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU1)
1127 #endif
1128 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU2)
1130 #endif
1131 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU3)
1133 #endif
1134 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU0)
1136 #endif
1137 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU1)
1139 #endif
1140 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU2)
1142 #endif
1143 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU3)
1145 #endif
1146 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU4)
1148 #endif
1149 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU5)
1151 #endif
1152 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG10)
1154 #endif
1155 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG32)
1157 #endif
1158 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG54)
1160 #endif
1161 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT0_PEAK)
1163 #endif
1164 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT0_ZERO)
1166 #endif
1167 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT1_PEAK)
1169 #endif
1170 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT1_ZERO)
1172 #endif
1173 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT2_PEAK)
1175 #endif
1176 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT2_ZERO)
1178 #endif
1179 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU0)
1181 #endif
1182 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU1)
1184 #endif
1185 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU2)
1187 #endif
1188 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU3)
1190 #endif
1191 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU0)
1193 #endif
1194 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU1)
1196 #endif
1197 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU2)
1199 #endif
1200 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU3)
1202 #endif
1203 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU4)
1205 #endif
1206 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU5)
1208 #endif
1209 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG10)
1211 #endif
1212 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG32)
1214 #endif
1215 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG54)
1217 #endif
1218 #if (PDL_ON == PDL_DSTC_ENABLE_PPG0)
1220 #endif
1221 #if (PDL_ON == PDL_DSTC_ENABLE_PPG2)
1223 #endif
1224 #if (PDL_ON == PDL_DSTC_ENABLE_PPG4)
1226 #endif
1227 #if (PDL_ON == PDL_DSTC_ENABLE_PPG8)
1229 #endif
1230 #if (PDL_ON == PDL_DSTC_ENABLE_PPG10)
1232 #endif
1233 #if (PDL_ON == PDL_DSTC_ENABLE_PPG12)
1235 #endif
1236 #if (PDL_ON == PDL_DSTC_ENABLE_PPG16)
1238 #endif
1239 #if (PDL_ON == PDL_DSTC_ENABLE_PPG18)
1241 #endif
1242 #if (PDL_ON == PDL_DSTC_ENABLE_PPG20)
1244 #endif
1245 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_COUNT_INVERSION)
1247 #endif
1248 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_OUT_OF_RANGE)
1250 #endif
1251 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_MATCH)
1253 #endif
1254 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_MATCH_RC_MATCH)
1256 #endif
1257 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_RC_MATCH)
1259 #endif
1260 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_UFL_OFL_Z)
1262 #endif
1263 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_COUNT_INVERSION)
1265 #endif
1266 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_OUT_OF_RANGE)
1268 #endif
1269 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_MATCH)
1271 #endif
1272 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_MATCH_RC_MATCH)
1274 #endif
1275 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_RC_MATCH)
1277 #endif
1278 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_UFL_OFL_Z)
1280 #endif
1281 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_COUNT_INVERSION)
1283 #endif
1284 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_OUT_OF_RANGE)
1286 #endif
1287 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_MATCH)
1289 #endif
1290 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_MATCH_RC_MATCH)
1292 #endif
1293 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_RC_MATCH)
1295 #endif
1296 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_UFL_OFL_Z)
1298 #endif
1299 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_COUNT_INVERSION)
1301 #endif
1302 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_OUT_OF_RANGE)
1304 #endif
1305 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_PC_MATCH)
1307 #endif
1308 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_PC_MATCH_RC_MATCH)
1310 #endif
1311 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_PC_RC_MATCH)
1313 #endif
1314 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_UFL_OFL_Z)
1316 #endif
1317 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP1)
1319 #endif
1320 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP2)
1322 #endif
1323 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP3)
1325 #endif
1326 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP4)
1328 #endif
1329 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP5)
1331 #endif
1332 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP1)
1334 #endif
1335 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP2)
1337 #endif
1338 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP3)
1340 #endif
1341 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP4)
1343 #endif
1344 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP5)
1346 #endif
1347 #if (PDL_ON == PDL_DSTC_ENABLE_WC)
1349 #endif
1351 
1353 typedef struct stc_dstc_intern_data
1354 {
1357 
1358 #if (PDL_ON == PDL_DSTC_ENABLE_ADC0_PRIO)
1360 #endif
1361 #if (PDL_ON == PDL_DSTC_ENABLE_ADC0_SCAN)
1363 #endif
1364 #if (PDL_ON == PDL_DSTC_ENABLE_ADC1_PRIO)
1366 #endif
1367 #if (PDL_ON == PDL_DSTC_ENABLE_ADC1_SCAN)
1369 #endif
1370 #if (PDL_ON == PDL_DSTC_ENABLE_ADC2_PRIO)
1372 #endif
1373 #if (PDL_ON == PDL_DSTC_ENABLE_ADC2_SCAN)
1375 #endif
1376 #if (PDL_ON == PDL_DSTC_ENABLE_BT0_IRQ0)
1378 #endif
1379 #if (PDL_ON == PDL_DSTC_ENABLE_BT0_IRQ1)
1381 #endif
1382 #if (PDL_ON == PDL_DSTC_ENABLE_BT1_IRQ0)
1384 #endif
1385 #if (PDL_ON == PDL_DSTC_ENABLE_BT1_IRQ1)
1387 #endif
1388 #if (PDL_ON == PDL_DSTC_ENABLE_BT2_IRQ0)
1390 #endif
1391 #if (PDL_ON == PDL_DSTC_ENABLE_BT2_IRQ1)
1393 #endif
1394 #if (PDL_ON == PDL_DSTC_ENABLE_BT3_IRQ0)
1396 #endif
1397 #if (PDL_ON == PDL_DSTC_ENABLE_BT3_IRQ1)
1399 #endif
1400 #if (PDL_ON == PDL_DSTC_ENABLE_BT4_IRQ0)
1402 #endif
1403 #if (PDL_ON == PDL_DSTC_ENABLE_BT4_IRQ1)
1405 #endif
1406 #if (PDL_ON == PDL_DSTC_ENABLE_BT5_IRQ0)
1408 #endif
1409 #if (PDL_ON == PDL_DSTC_ENABLE_BT5_IRQ1)
1411 #endif
1412 #if (PDL_ON == PDL_DSTC_ENABLE_BT6_IRQ0)
1414 #endif
1415 #if (PDL_ON == PDL_DSTC_ENABLE_BT6_IRQ1)
1417 #endif
1418 #if (PDL_ON == PDL_DSTC_ENABLE_BT7_IRQ0)
1420 #endif
1421 #if (PDL_ON == PDL_DSTC_ENABLE_BT7_IRQ1)
1423 #endif
1424 #if (PDL_ON == PDL_DSTC_ENABLE_BT8_IRQ0)
1426 #endif
1427 #if (PDL_ON == PDL_DSTC_ENABLE_BT8_IRQ1)
1429 #endif
1430 #if (PDL_ON == PDL_DSTC_ENABLE_BT9_IRQ0)
1432 #endif
1433 #if (PDL_ON == PDL_DSTC_ENABLE_BT9_IRQ1)
1435 #endif
1436 #if (PDL_ON == PDL_DSTC_ENABLE_BT10_IRQ0)
1438 #endif
1439 #if (PDL_ON == PDL_DSTC_ENABLE_BT10_IRQ1)
1441 #endif
1442 #if (PDL_ON == PDL_DSTC_ENABLE_BT11_IRQ0)
1444 #endif
1445 #if (PDL_ON == PDL_DSTC_ENABLE_BT11_IRQ1)
1447 #endif
1448 #if (PDL_ON == PDL_DSTC_ENABLE_BT12_IRQ0)
1450 #endif
1451 #if (PDL_ON == PDL_DSTC_ENABLE_BT12_IRQ1)
1453 #endif
1454 #if (PDL_ON == PDL_DSTC_ENABLE_BT13_IRQ0)
1456 #endif
1457 #if (PDL_ON == PDL_DSTC_ENABLE_BT13_IRQ1)
1459 #endif
1460 #if (PDL_ON == PDL_DSTC_ENABLE_BT14_IRQ0)
1462 #endif
1463 #if (PDL_ON == PDL_DSTC_ENABLE_BT14_IRQ1)
1465 #endif
1466 #if (PDL_ON == PDL_DSTC_ENABLE_BT15_IRQ0)
1468 #endif
1469 #if (PDL_ON == PDL_DSTC_ENABLE_BT15_IRQ1)
1471 #endif
1472 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT0)
1474 #endif
1475 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT1)
1477 #endif
1478 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT2)
1480 #endif
1481 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT3)
1483 #endif
1484 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT4)
1486 #endif
1487 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT5)
1489 #endif
1490 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT6)
1492 #endif
1493 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT7)
1495 #endif
1496 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT8)
1498 #endif
1499 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT9)
1501 #endif
1502 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT10)
1504 #endif
1505 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT11)
1507 #endif
1508 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT12)
1510 #endif
1511 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT13)
1513 #endif
1514 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT14)
1516 #endif
1517 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT15)
1519 #endif
1520 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT16)
1522 #endif
1523 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT17)
1525 #endif
1526 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT18)
1528 #endif
1529 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT19)
1531 #endif
1532 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT20)
1534 #endif
1535 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT21)
1537 #endif
1538 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT22)
1540 #endif
1541 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT23)
1543 #endif
1544 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT24)
1546 #endif
1547 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT25)
1549 #endif
1550 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT26)
1552 #endif
1553 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT27)
1555 #endif
1556 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT28)
1558 #endif
1559 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT29)
1561 #endif
1562 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT30)
1564 #endif
1565 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT31)
1567 #endif
1568 #if (PDL_ON == PDL_DSTC_ENABLE_MFS0_RX)
1570 #endif
1571 #if (PDL_ON == PDL_DSTC_ENABLE_MFS0_TX)
1573 #endif
1574 #if (PDL_ON == PDL_DSTC_ENABLE_MFS1_RX)
1576 #endif
1577 #if (PDL_ON == PDL_DSTC_ENABLE_MFS1_TX)
1579 #endif
1580 #if (PDL_ON == PDL_DSTC_ENABLE_MFS2_RX)
1582 #endif
1583 #if (PDL_ON == PDL_DSTC_ENABLE_MFS2_TX)
1585 #endif
1586 #if (PDL_ON == PDL_DSTC_ENABLE_MFS3_RX)
1588 #endif
1589 #if (PDL_ON == PDL_DSTC_ENABLE_MFS3_TX)
1591 #endif
1592 #if (PDL_ON == PDL_DSTC_ENABLE_MFS4_RX)
1594 #endif
1595 #if (PDL_ON == PDL_DSTC_ENABLE_MFS4_TX)
1597 #endif
1598 #if (PDL_ON == PDL_DSTC_ENABLE_MFS5_RX)
1600 #endif
1601 #if (PDL_ON == PDL_DSTC_ENABLE_MFS5_TX)
1603 #endif
1604 #if (PDL_ON == PDL_DSTC_ENABLE_MFS6_RX)
1606 #endif
1607 #if (PDL_ON == PDL_DSTC_ENABLE_MFS6_TX)
1609 #endif
1610 #if (PDL_ON == PDL_DSTC_ENABLE_MFS7_RX)
1612 #endif
1613 #if (PDL_ON == PDL_DSTC_ENABLE_MFS7_TX)
1615 #endif
1616 #if (PDL_ON == PDL_DSTC_ENABLE_MFS8_RX)
1618 #endif
1619 #if (PDL_ON == PDL_DSTC_ENABLE_MFS8_TX)
1621 #endif
1622 #if (PDL_ON == PDL_DSTC_ENABLE_MFS9_RX)
1624 #endif
1625 #if (PDL_ON == PDL_DSTC_ENABLE_MFS9_TX)
1627 #endif
1628 #if (PDL_ON == PDL_DSTC_ENABLE_MFS10_RX)
1630 #endif
1631 #if (PDL_ON == PDL_DSTC_ENABLE_MFS10_TX)
1633 #endif
1634 #if (PDL_ON == PDL_DSTC_ENABLE_MFS11_RX)
1636 #endif
1637 #if (PDL_ON == PDL_DSTC_ENABLE_MFS11_TX)
1639 #endif
1640 #if (PDL_ON == PDL_DSTC_ENABLE_MFS12_RX)
1642 #endif
1643 #if (PDL_ON == PDL_DSTC_ENABLE_MFS12_TX)
1645 #endif
1646 #if (PDL_ON == PDL_DSTC_ENABLE_MFS13_RX)
1648 #endif
1649 #if (PDL_ON == PDL_DSTC_ENABLE_MFS13_TX)
1651 #endif
1652 #if (PDL_ON == PDL_DSTC_ENABLE_MFS14_RX)
1654 #endif
1655 #if (PDL_ON == PDL_DSTC_ENABLE_MFS14_TX)
1657 #endif
1658 #if (PDL_ON == PDL_DSTC_ENABLE_MFS15_RX)
1660 #endif
1661 #if (PDL_ON == PDL_DSTC_ENABLE_MFS15_TX)
1663 #endif
1664 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT0_PEAK)
1666 #endif
1667 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT0_ZERO)
1669 #endif
1670 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT1_PEAK)
1672 #endif
1673 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT1_ZERO)
1675 #endif
1676 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT2_PEAK)
1678 #endif
1679 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT2_ZERO)
1681 #endif
1682 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU0)
1684 #endif
1685 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU1)
1687 #endif
1688 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU2)
1690 #endif
1691 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU3)
1693 #endif
1694 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU0)
1696 #endif
1697 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU1)
1699 #endif
1700 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU2)
1702 #endif
1703 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU3)
1705 #endif
1706 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU4)
1708 #endif
1709 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU5)
1711 #endif
1712 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG10)
1714 #endif
1715 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG32)
1717 #endif
1718 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG54)
1720 #endif
1721 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT0_PEAK)
1723 #endif
1724 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT0_ZERO)
1726 #endif
1727 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT1_PEAK)
1729 #endif
1730 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT1_ZERO)
1732 #endif
1733 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT2_PEAK)
1735 #endif
1736 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT2_ZERO)
1738 #endif
1739 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU0)
1741 #endif
1742 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU1)
1744 #endif
1745 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU2)
1747 #endif
1748 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU3)
1750 #endif
1751 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU0)
1753 #endif
1754 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU1)
1756 #endif
1757 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU2)
1759 #endif
1760 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU3)
1762 #endif
1763 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU4)
1765 #endif
1766 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU5)
1768 #endif
1769 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG10)
1771 #endif
1772 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG32)
1774 #endif
1775 #if (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG54)
1777 #endif
1778 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT0_PEAK)
1780 #endif
1781 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT0_ZERO)
1783 #endif
1784 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT1_PEAK)
1786 #endif
1787 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT1_ZERO)
1789 #endif
1790 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT2_PEAK)
1792 #endif
1793 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT2_ZERO)
1795 #endif
1796 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU0)
1798 #endif
1799 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU1)
1801 #endif
1802 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU2)
1804 #endif
1805 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU3)
1807 #endif
1808 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU0)
1810 #endif
1811 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU1)
1813 #endif
1814 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU2)
1816 #endif
1817 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU3)
1819 #endif
1820 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU4)
1822 #endif
1823 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU5)
1825 #endif
1826 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG10)
1828 #endif
1829 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG32)
1831 #endif
1832 #if (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG54)
1834 #endif
1835 #if (PDL_ON == PDL_DSTC_ENABLE_PPG0)
1837 #endif
1838 #if (PDL_ON == PDL_DSTC_ENABLE_PPG2)
1840 #endif
1841 #if (PDL_ON == PDL_DSTC_ENABLE_PPG4)
1843 #endif
1844 #if (PDL_ON == PDL_DSTC_ENABLE_PPG8)
1846 #endif
1847 #if (PDL_ON == PDL_DSTC_ENABLE_PPG10)
1849 #endif
1850 #if (PDL_ON == PDL_DSTC_ENABLE_PPG12)
1852 #endif
1853 #if (PDL_ON == PDL_DSTC_ENABLE_PPG16)
1855 #endif
1856 #if (PDL_ON == PDL_DSTC_ENABLE_PPG18)
1858 #endif
1859 #if (PDL_ON == PDL_DSTC_ENABLE_PPG20)
1861 #endif
1862 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_COUNT_INVERSION)
1864 #endif
1865 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_OUT_OF_RANGE)
1867 #endif
1868 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_MATCH)
1870 #endif
1871 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_MATCH_RC_MATCH)
1873 #endif
1874 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_RC_MATCH)
1876 #endif
1877 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_UFL_OFL_Z)
1879 #endif
1880 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_COUNT_INVERSION)
1882 #endif
1883 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_OUT_OF_RANGE)
1885 #endif
1886 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_MATCH)
1888 #endif
1889 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_MATCH_RC_MATCH)
1891 #endif
1892 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_RC_MATCH)
1894 #endif
1895 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC1_UFL_OFL_Z)
1897 #endif
1898 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_COUNT_INVERSION)
1900 #endif
1901 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_OUT_OF_RANGE)
1903 #endif
1904 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_MATCH)
1906 #endif
1907 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_MATCH_RC_MATCH)
1909 #endif
1910 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_RC_MATCH)
1912 #endif
1913 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC2_UFL_OFL_Z)
1915 #endif
1916 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_COUNT_INVERSION)
1918 #endif
1919 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_OUT_OF_RANGE)
1921 #endif
1922 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_PC_MATCH)
1924 #endif
1925 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_PC_MATCH_RC_MATCH)
1927 #endif
1928 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_PC_RC_MATCH)
1930 #endif
1931 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC3_UFL_OFL_Z)
1933 #endif
1934 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP1)
1936 #endif
1937 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP2)
1939 #endif
1940 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP3)
1942 #endif
1943 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP4)
1945 #endif
1946 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP5)
1948 #endif
1949 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP1)
1951 #endif
1952 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP2)
1954 #endif
1955 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP3)
1957 #endif
1958 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP4)
1960 #endif
1961 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP5)
1963 #endif
1964 #if (PDL_ON == PDL_DSTC_ENABLE_WC)
1966 #endif
1968 
1969 /******************************************************************************/
1970 /* Global function prototypes ('extern', definition in C source) */
1971 /******************************************************************************/
1972 // extern en_result_t Dsctc_InitDescriptors( uint32_t u32Des0, ... );
1973 extern void Dstc_IrqHandler( void );
1974 extern en_result_t Dstc_ReleaseStandBy(void);
1975 extern en_result_t Dstc_Init( stc_dstc_config_t* pstcConfig );
1976 extern en_result_t Dstc_DeInit(void);
1977 extern en_result_t Dstc_SetHwdesp( uint8_t u8Channel,
1978  uint16_t u16HwDesp );
1979 extern uint16_t Dstc_ReadHwdesp( uint8_t u8Channel );
1980 extern en_result_t Dstc_SetCommand( en_dstc_cmd_t enCommand );
1981 extern en_result_t Dstc_SwTrigger( uint16_t u16SwDesPointer );
1983 extern en_result_t Dstc_SetDreqenb( stc_dstc_dreqenb_t* pstcDreqenb );
1984 extern en_result_t Dstc_ReadDreqenb( stc_dstc_dreqenb_t* pstcDreqenb );
1985 extern en_result_t Dstc_SetDreqenbBit( uint8_t u8BitPos );
1986 extern en_result_t Dstc_ClearDreqenbBit( uint8_t u8BitPos );
1987 extern en_result_t Dstc_ReadHwint( stc_dstc_hwint_t* pstcHwint );
1988 extern en_result_t Dstc_SetHwintclr( stc_dstc_hwintclr_t* pstcHwintclr );
1989 extern boolean_t Dstc_ReadHwintBit( uint8_t u8BitPos );
1990 extern en_result_t Dstc_SetHwintclrBit( uint8_t u8BitPos );
1991 extern en_result_t Dstc_ReadDqmsk( stc_dstc_dqmsk_t* pstcDqmsk );
1992 extern en_result_t Dstc_SetDqmskclr( stc_dstc_dqmskclr_t* pstcDqmskclr );
1993 extern en_result_t Dstc_SetDqmskclrBit( uint8_t u8BitPos );
1994 
1995 #if (PDL_ON == PDL_DSTC_ENABLE_ADC0_PRIO) || (PDL_ON == PDL_DSTC_ENABLE_ADC0_SCAN) || \
1996  (PDL_ON == PDL_DSTC_ENABLE_ADC1_PRIO) || (PDL_ON == PDL_DSTC_ENABLE_ADC1_SCAN) || \
1997  (PDL_ON == PDL_DSTC_ENABLE_ADC2_PRIO) || (PDL_ON == PDL_DSTC_ENABLE_ADC2_SCAN)
1998 extern void Dstc_AdcIrqHandler(uint8_t u8IrqChannel0, uint8_t u8IrqChannel1);
1999 #endif
2000 
2001 #if (PDL_ON == PDL_DSTC_ENABLE_BT0_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT0_IRQ1) || \
2002  (PDL_ON == PDL_DSTC_ENABLE_BT1_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT1_IRQ1) || \
2003  (PDL_ON == PDL_DSTC_ENABLE_BT2_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT2_IRQ1) || \
2004  (PDL_ON == PDL_DSTC_ENABLE_BT3_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT3_IRQ1) || \
2005  (PDL_ON == PDL_DSTC_ENABLE_BT4_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT4_IRQ1) || \
2006  (PDL_ON == PDL_DSTC_ENABLE_BT5_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT5_IRQ1) || \
2007  (PDL_ON == PDL_DSTC_ENABLE_BT6_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT6_IRQ1) || \
2008  (PDL_ON == PDL_DSTC_ENABLE_BT7_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT7_IRQ1) || \
2009  (PDL_ON == PDL_DSTC_ENABLE_BT8_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT8_IRQ1) || \
2010  (PDL_ON == PDL_DSTC_ENABLE_BT9_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT9_IRQ1) || \
2011  (PDL_ON == PDL_DSTC_ENABLE_BT10_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT10_IRQ1) || \
2012  (PDL_ON == PDL_DSTC_ENABLE_BT11_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT11_IRQ1) || \
2013  (PDL_ON == PDL_DSTC_ENABLE_BT12_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT12_IRQ1) || \
2014  (PDL_ON == PDL_DSTC_ENABLE_BT13_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT13_IRQ1) || \
2015  (PDL_ON == PDL_DSTC_ENABLE_BT14_IRQ0) || (PDL_ON == PDL_DSTC_ENABLE_BT14_IRQ1)
2016 extern void Dstc_BtIrqHandler(uint8_t u8IrqChannel0, uint8_t u8IrqChannel1);
2017 #endif
2018 
2019 #if (PDL_ON == PDL_DSTC_ENABLE_EXINT0) || (PDL_ON == PDL_DSTC_ENABLE_EXINT1) || \
2020  (PDL_ON == PDL_DSTC_ENABLE_EXINT2) || (PDL_ON == PDL_DSTC_ENABLE_EXINT3) || \
2021  (PDL_ON == PDL_DSTC_ENABLE_EXINT4) || (PDL_ON == PDL_DSTC_ENABLE_EXINT5) || \
2022  (PDL_ON == PDL_DSTC_ENABLE_EXINT6) || (PDL_ON == PDL_DSTC_ENABLE_EXINT7) || \
2023  (PDL_ON == PDL_DSTC_ENABLE_EXINT8) || (PDL_ON == PDL_DSTC_ENABLE_EXINT9) || \
2024  (PDL_ON == PDL_DSTC_ENABLE_EXINT10) || (PDL_ON == PDL_DSTC_ENABLE_EXINT11) || \
2025  (PDL_ON == PDL_DSTC_ENABLE_EXINT12) || (PDL_ON == PDL_DSTC_ENABLE_EXINT13) || \
2026  (PDL_ON == PDL_DSTC_ENABLE_EXINT14) || (PDL_ON == PDL_DSTC_ENABLE_EXINT15) || \
2027  (PDL_ON == PDL_DSTC_ENABLE_EXINT16) || (PDL_ON == PDL_DSTC_ENABLE_EXINT17) || \
2028  (PDL_ON == PDL_DSTC_ENABLE_EXINT18) || (PDL_ON == PDL_DSTC_ENABLE_EXINT19) || \
2029  (PDL_ON == PDL_DSTC_ENABLE_EXINT20) || (PDL_ON == PDL_DSTC_ENABLE_EXINT21) || \
2030  (PDL_ON == PDL_DSTC_ENABLE_EXINT22) || (PDL_ON == PDL_DSTC_ENABLE_EXINT23) || \
2031  (PDL_ON == PDL_DSTC_ENABLE_EXINT24) || (PDL_ON == PDL_DSTC_ENABLE_EXINT25) || \
2032  (PDL_ON == PDL_DSTC_ENABLE_EXINT26) || (PDL_ON == PDL_DSTC_ENABLE_EXINT27) || \
2033  (PDL_ON == PDL_DSTC_ENABLE_EXINT28) || (PDL_ON == PDL_DSTC_ENABLE_EXINT29) || \
2034  (PDL_ON == PDL_DSTC_ENABLE_EXINT30) || (PDL_ON == PDL_DSTC_ENABLE_EXINT31)
2035 extern void Dstc_ExintIrqHandler(uint8_t u8IrqChannel);
2036 #endif
2037 
2038 #if (PDL_ON == PDL_DSTC_ENABLE_MFS0_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS1_RX) || \
2039  (PDL_ON == PDL_DSTC_ENABLE_MFS2_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS3_RX) || \
2040  (PDL_ON == PDL_DSTC_ENABLE_MFS4_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS5_RX) || \
2041  (PDL_ON == PDL_DSTC_ENABLE_MFS6_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS7_RX) || \
2042  (PDL_ON == PDL_DSTC_ENABLE_MFS8_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS9_RX) || \
2043  (PDL_ON == PDL_DSTC_ENABLE_MFS10_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS11_RX) || \
2044  (PDL_ON == PDL_DSTC_ENABLE_MFS12_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS13_RX) || \
2045  (PDL_ON == PDL_DSTC_ENABLE_MFS14_RX) || (PDL_ON == PDL_DSTC_ENABLE_MFS15_RX)
2046 extern void Dstc_MfsRxIrqHandler(uint8_t u8IrqChannel);
2047 #endif
2048 
2049 #if (PDL_ON == PDL_DSTC_ENABLE_MFS0_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS1_TX) || \
2050  (PDL_ON == PDL_DSTC_ENABLE_MFS2_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS3_TX) || \
2051  (PDL_ON == PDL_DSTC_ENABLE_MFS4_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS5_TX) || \
2052  (PDL_ON == PDL_DSTC_ENABLE_MFS6_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS7_TX) || \
2053  (PDL_ON == PDL_DSTC_ENABLE_MFS8_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS9_TX) || \
2054  (PDL_ON == PDL_DSTC_ENABLE_MFS10_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS11_TX) || \
2055  (PDL_ON == PDL_DSTC_ENABLE_MFS12_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS13_TX) || \
2056  (PDL_ON == PDL_DSTC_ENABLE_MFS14_TX) || (PDL_ON == PDL_DSTC_ENABLE_MFS15_TX)
2057 extern void Dstc_MfsTxIrqHandler(uint8_t u8IrqChannel);
2058 #endif
2059 
2060 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT0_PEAK) || \
2061  (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT1_PEAK) || \
2062  (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT2_PEAK) || \
2063  (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT0_PEAK) || \
2064  (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT1_PEAK) || \
2065  (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT2_PEAK) || \
2066  (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT0_PEAK) || \
2067  (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT1_PEAK) || \
2068  (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT2_PEAK)
2069 extern void Dstc_MftFrtPeakIrqHandler(uint8_t u8IrqChannel);
2070 #endif
2071 
2072 
2073 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT0_ZERO) || \
2074  (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT1_ZERO) || \
2075  (PDL_ON == PDL_DSTC_ENABLE_MFT0_FRT2_ZERO) || \
2076  (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT0_ZERO) || \
2077  (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT1_ZERO) || \
2078  (PDL_ON == PDL_DSTC_ENABLE_MFT1_FRT2_ZERO) || \
2079  (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT0_ZERO) || \
2080  (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT1_ZERO) || \
2081  (PDL_ON == PDL_DSTC_ENABLE_MFT2_FRT2_ZERO)
2082 extern void Dstc_MftFrtZeroIrqHandler(uint8_t u8IrqChannel);
2083 #endif
2084 
2085 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU0) || (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU1) || \
2086  (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU2) || (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU3) || \
2087  (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU4) || (PDL_ON == PDL_DSTC_ENABLE_MFT0_OCU5) || \
2088  (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU0) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU1) || \
2089  (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU2) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU3) || \
2090  (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU4) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_OCU5) || \
2091  (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU0) || (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU1) || \
2092  (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU2) || (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU3) || \
2093  (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU4) || (PDL_ON == PDL_DSTC_ENABLE_MFT2_OCU5)
2094 extern void Dstc_MftOcuIrqHandler(uint8_t u8IrqChannel);
2095 #endif
2096 
2097 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG10) || (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG32) || \
2098  (PDL_ON == PDL_DSTC_ENABLE_MFT0_WFG54) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG10) || \
2099  (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG32) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_WFG54) || \
2100  (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG10) || (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG32) || \
2101  (PDL_ON == PDL_DSTC_ENABLE_MFT2_WFG54)
2102 extern void Dstc_MftWfgIrqHandler(uint8_t u8IrqChannel);
2103 #endif
2104 
2105 #if (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU0) || (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU1) || \
2106  (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU2) || (PDL_ON == PDL_DSTC_ENABLE_MFT0_ICU3) || \
2107  (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU0) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU1) || \
2108  (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU2) || (PDL_ON == PDL_DSTC_ENABLE_MFT1_ICU3) || \
2109  (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU0) || (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU1) || \
2110  (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU2) || (PDL_ON == PDL_DSTC_ENABLE_MFT2_ICU3)
2111 extern void Dstc_MftIcuIrqHandler(uint8_t u8IrqChannel);
2112 #endif
2113 
2114 #if (PDL_ON == PDL_DSTC_ENABLE_PPG0) || (PDL_ON == PDL_DSTC_ENABLE_PPG2) || \
2115  (PDL_ON == PDL_DSTC_ENABLE_PPG4) || (PDL_ON == PDL_DSTC_ENABLE_PPG8) || \
2116  (PDL_ON == PDL_DSTC_ENABLE_PPG4) || (PDL_ON == PDL_DSTC_ENABLE_PPG8) || \
2117  (PDL_ON == PDL_DSTC_ENABLE_PPG10) || (PDL_ON == PDL_DSTC_ENABLE_PPG12) || \
2118  (PDL_ON == PDL_DSTC_ENABLE_PPG16) || (PDL_ON == PDL_DSTC_ENABLE_PPG18) || \
2119  (PDL_ON == PDL_DSTC_ENABLE_PPG20)
2120 extern void Dstc_PpgIrqHandler(uint8_t u8IrqChannel);
2121 #endif
2122 
2123 #if (PDL_ON == PDL_DSTC_ENABLE_QPRC0_COUNT_INVERSION) || \
2124  (PDL_ON == PDL_DSTC_ENABLE_QPRC0_OUT_OF_RANGE) || \
2125  (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_MATCH) || \
2126  (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_MATCH_RC_MATCH) || \
2127  (PDL_ON == PDL_DSTC_ENABLE_QPRC0_PC_RC_MATCH) || \
2128  (PDL_ON == PDL_DSTC_ENABLE_QPRC0_UFL_OFL_Z) || \
2129  (PDL_ON == PDL_DSTC_ENABLE_QPRC1_COUNT_INVERSION) || \
2130  (PDL_ON == PDL_DSTC_ENABLE_QPRC1_OUT_OF_RANGE) || \
2131  (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_MATCH) || \
2132  (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_MATCH_RC_MATCH) || \
2133  (PDL_ON == PDL_DSTC_ENABLE_QPRC1_PC_RC_MATCH) || \
2134  (PDL_ON == PDL_DSTC_ENABLE_QPRC1_UFL_OFL_Z) || \
2135  (PDL_ON == PDL_DSTC_ENABLE_QPRC2_COUNT_INVERSION) || \
2136  (PDL_ON == PDL_DSTC_ENABLE_QPRC2_OUT_OF_RANGE) || \
2137  (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_MATCH) || \
2138  (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_MATCH_RC_MATCH) || \
2139  (PDL_ON == PDL_DSTC_ENABLE_QPRC2_PC_RC_MATCH) || \
2140  (PDL_ON == PDL_DSTC_ENABLE_QPRC2_UFL_OFL_Z)
2141 extern void Dstc_QprcIrqHandler(uint8_t u8IrqChannel);
2142 #endif
2143 
2144 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP1)
2145  #error USB0 EP1 DSTC function not implemented yet!
2146 #endif
2147 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP2)
2148  #error USB0 EP2 DSTC function not implemented yet!
2149 #endif
2150 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP3)
2151  #error US0B EP3 DSTC function not implemented yet!
2152 #endif
2153 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP4)
2154  #error USB0 EP4 DSTC function not implemented yet!
2155 #endif
2156 #if (PDL_ON == PDL_DSTC_ENABLE_USB0_EP5)
2157  #error USB0 EP5 DSTC function not implemented yet!
2158 #endif
2159 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP1)
2160  #error USB1 EP1 DSTC function not implemented yet!
2161 #endif
2162 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP2)
2163  #error USB1 EP2 DSTC function not implemented yet!
2164 #endif
2165 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP3)
2166  #error USB1 EP3 DSTC function not implemented yet!
2167 #endif
2168 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP4)
2169  #error USB1 EP4 DSTC function not implemented yet!
2170 #endif
2171 #if (PDL_ON == PDL_DSTC_ENABLE_USB1_EP5)
2172  #error USB1 EP5 DSTC function not implemented yet!
2173 #endif
2174 
2175 #if (PDL_ON == PDL_DSTC_ENABLE_WC)
2176 extern void Dstc_WcIrqHandler(void);
2177 #endif
2178 
2180 
2181 #ifdef __cplusplus
2182 }
2183 #endif
2184 
2185 #endif // #if (defined(PDL_PERIPHERAL_DSTC_ACTIVE))
2186 
2187 #endif /* __DSTC_H__ */
2188 /******************************************************************************/
2189 /* EOF (not truncated) */
2190 /******************************************************************************/