EZR32 Wonder Gecko Software Documentation
ezr32wg-doc-5.1.2
Main Page
Modules
Files
Documentation Home
silabs.com
File List
ezr32wg_pcnt.h
Go to the documentation of this file.
1
/**************************************************************************/
32
/**************************************************************************/
36
/**************************************************************************/
41
typedef
struct
42
{
43
__IOM uint32_t
CTRL
;
44
__IOM uint32_t
CMD
;
45
__IM uint32_t
STATUS
;
46
__IM uint32_t
CNT
;
47
__IM uint32_t
TOP
;
48
__IOM uint32_t
TOPB
;
49
__IM uint32_t
IF
;
50
__IOM uint32_t
IFS
;
51
__IOM uint32_t
IFC
;
52
__IOM uint32_t
IEN
;
53
__IOM uint32_t
ROUTE
;
55
__IOM uint32_t
FREEZE
;
56
__IM uint32_t
SYNCBUSY
;
58
uint32_t RESERVED0[1];
59
__IOM uint32_t
AUXCNT
;
60
__IOM uint32_t
INPUT
;
61
}
PCNT_TypeDef
;
63
/**************************************************************************/
68
/* Bit fields for PCNT CTRL */
69
#define _PCNT_CTRL_RESETVALUE 0x00000000UL
70
#define _PCNT_CTRL_MASK 0x0000CF3FUL
71
#define _PCNT_CTRL_MODE_SHIFT 0
72
#define _PCNT_CTRL_MODE_MASK 0x3UL
73
#define _PCNT_CTRL_MODE_DEFAULT 0x00000000UL
74
#define _PCNT_CTRL_MODE_DISABLE 0x00000000UL
75
#define _PCNT_CTRL_MODE_OVSSINGLE 0x00000001UL
76
#define _PCNT_CTRL_MODE_EXTCLKSINGLE 0x00000002UL
77
#define _PCNT_CTRL_MODE_EXTCLKQUAD 0x00000003UL
78
#define PCNT_CTRL_MODE_DEFAULT (_PCNT_CTRL_MODE_DEFAULT << 0)
79
#define PCNT_CTRL_MODE_DISABLE (_PCNT_CTRL_MODE_DISABLE << 0)
80
#define PCNT_CTRL_MODE_OVSSINGLE (_PCNT_CTRL_MODE_OVSSINGLE << 0)
81
#define PCNT_CTRL_MODE_EXTCLKSINGLE (_PCNT_CTRL_MODE_EXTCLKSINGLE << 0)
82
#define PCNT_CTRL_MODE_EXTCLKQUAD (_PCNT_CTRL_MODE_EXTCLKQUAD << 0)
83
#define PCNT_CTRL_CNTDIR (0x1UL << 2)
84
#define _PCNT_CTRL_CNTDIR_SHIFT 2
85
#define _PCNT_CTRL_CNTDIR_MASK 0x4UL
86
#define _PCNT_CTRL_CNTDIR_DEFAULT 0x00000000UL
87
#define _PCNT_CTRL_CNTDIR_UP 0x00000000UL
88
#define _PCNT_CTRL_CNTDIR_DOWN 0x00000001UL
89
#define PCNT_CTRL_CNTDIR_DEFAULT (_PCNT_CTRL_CNTDIR_DEFAULT << 2)
90
#define PCNT_CTRL_CNTDIR_UP (_PCNT_CTRL_CNTDIR_UP << 2)
91
#define PCNT_CTRL_CNTDIR_DOWN (_PCNT_CTRL_CNTDIR_DOWN << 2)
92
#define PCNT_CTRL_EDGE (0x1UL << 3)
93
#define _PCNT_CTRL_EDGE_SHIFT 3
94
#define _PCNT_CTRL_EDGE_MASK 0x8UL
95
#define _PCNT_CTRL_EDGE_DEFAULT 0x00000000UL
96
#define _PCNT_CTRL_EDGE_POS 0x00000000UL
97
#define _PCNT_CTRL_EDGE_NEG 0x00000001UL
98
#define PCNT_CTRL_EDGE_DEFAULT (_PCNT_CTRL_EDGE_DEFAULT << 3)
99
#define PCNT_CTRL_EDGE_POS (_PCNT_CTRL_EDGE_POS << 3)
100
#define PCNT_CTRL_EDGE_NEG (_PCNT_CTRL_EDGE_NEG << 3)
101
#define PCNT_CTRL_FILT (0x1UL << 4)
102
#define _PCNT_CTRL_FILT_SHIFT 4
103
#define _PCNT_CTRL_FILT_MASK 0x10UL
104
#define _PCNT_CTRL_FILT_DEFAULT 0x00000000UL
105
#define PCNT_CTRL_FILT_DEFAULT (_PCNT_CTRL_FILT_DEFAULT << 4)
106
#define PCNT_CTRL_RSTEN (0x1UL << 5)
107
#define _PCNT_CTRL_RSTEN_SHIFT 5
108
#define _PCNT_CTRL_RSTEN_MASK 0x20UL
109
#define _PCNT_CTRL_RSTEN_DEFAULT 0x00000000UL
110
#define PCNT_CTRL_RSTEN_DEFAULT (_PCNT_CTRL_RSTEN_DEFAULT << 5)
111
#define PCNT_CTRL_HYST (0x1UL << 8)
112
#define _PCNT_CTRL_HYST_SHIFT 8
113
#define _PCNT_CTRL_HYST_MASK 0x100UL
114
#define _PCNT_CTRL_HYST_DEFAULT 0x00000000UL
115
#define PCNT_CTRL_HYST_DEFAULT (_PCNT_CTRL_HYST_DEFAULT << 8)
116
#define PCNT_CTRL_S1CDIR (0x1UL << 9)
117
#define _PCNT_CTRL_S1CDIR_SHIFT 9
118
#define _PCNT_CTRL_S1CDIR_MASK 0x200UL
119
#define _PCNT_CTRL_S1CDIR_DEFAULT 0x00000000UL
120
#define PCNT_CTRL_S1CDIR_DEFAULT (_PCNT_CTRL_S1CDIR_DEFAULT << 9)
121
#define _PCNT_CTRL_CNTEV_SHIFT 10
122
#define _PCNT_CTRL_CNTEV_MASK 0xC00UL
123
#define _PCNT_CTRL_CNTEV_DEFAULT 0x00000000UL
124
#define _PCNT_CTRL_CNTEV_BOTH 0x00000000UL
125
#define _PCNT_CTRL_CNTEV_UP 0x00000001UL
126
#define _PCNT_CTRL_CNTEV_DOWN 0x00000002UL
127
#define _PCNT_CTRL_CNTEV_NONE 0x00000003UL
128
#define PCNT_CTRL_CNTEV_DEFAULT (_PCNT_CTRL_CNTEV_DEFAULT << 10)
129
#define PCNT_CTRL_CNTEV_BOTH (_PCNT_CTRL_CNTEV_BOTH << 10)
130
#define PCNT_CTRL_CNTEV_UP (_PCNT_CTRL_CNTEV_UP << 10)
131
#define PCNT_CTRL_CNTEV_DOWN (_PCNT_CTRL_CNTEV_DOWN << 10)
132
#define PCNT_CTRL_CNTEV_NONE (_PCNT_CTRL_CNTEV_NONE << 10)
133
#define _PCNT_CTRL_AUXCNTEV_SHIFT 14
134
#define _PCNT_CTRL_AUXCNTEV_MASK 0xC000UL
135
#define _PCNT_CTRL_AUXCNTEV_DEFAULT 0x00000000UL
136
#define _PCNT_CTRL_AUXCNTEV_NONE 0x00000000UL
137
#define _PCNT_CTRL_AUXCNTEV_UP 0x00000001UL
138
#define _PCNT_CTRL_AUXCNTEV_DOWN 0x00000002UL
139
#define _PCNT_CTRL_AUXCNTEV_BOTH 0x00000003UL
140
#define PCNT_CTRL_AUXCNTEV_DEFAULT (_PCNT_CTRL_AUXCNTEV_DEFAULT << 14)
141
#define PCNT_CTRL_AUXCNTEV_NONE (_PCNT_CTRL_AUXCNTEV_NONE << 14)
142
#define PCNT_CTRL_AUXCNTEV_UP (_PCNT_CTRL_AUXCNTEV_UP << 14)
143
#define PCNT_CTRL_AUXCNTEV_DOWN (_PCNT_CTRL_AUXCNTEV_DOWN << 14)
144
#define PCNT_CTRL_AUXCNTEV_BOTH (_PCNT_CTRL_AUXCNTEV_BOTH << 14)
146
/* Bit fields for PCNT CMD */
147
#define _PCNT_CMD_RESETVALUE 0x00000000UL
148
#define _PCNT_CMD_MASK 0x00000003UL
149
#define PCNT_CMD_LCNTIM (0x1UL << 0)
150
#define _PCNT_CMD_LCNTIM_SHIFT 0
151
#define _PCNT_CMD_LCNTIM_MASK 0x1UL
152
#define _PCNT_CMD_LCNTIM_DEFAULT 0x00000000UL
153
#define PCNT_CMD_LCNTIM_DEFAULT (_PCNT_CMD_LCNTIM_DEFAULT << 0)
154
#define PCNT_CMD_LTOPBIM (0x1UL << 1)
155
#define _PCNT_CMD_LTOPBIM_SHIFT 1
156
#define _PCNT_CMD_LTOPBIM_MASK 0x2UL
157
#define _PCNT_CMD_LTOPBIM_DEFAULT 0x00000000UL
158
#define PCNT_CMD_LTOPBIM_DEFAULT (_PCNT_CMD_LTOPBIM_DEFAULT << 1)
160
/* Bit fields for PCNT STATUS */
161
#define _PCNT_STATUS_RESETVALUE 0x00000000UL
162
#define _PCNT_STATUS_MASK 0x00000001UL
163
#define PCNT_STATUS_DIR (0x1UL << 0)
164
#define _PCNT_STATUS_DIR_SHIFT 0
165
#define _PCNT_STATUS_DIR_MASK 0x1UL
166
#define _PCNT_STATUS_DIR_DEFAULT 0x00000000UL
167
#define _PCNT_STATUS_DIR_UP 0x00000000UL
168
#define _PCNT_STATUS_DIR_DOWN 0x00000001UL
169
#define PCNT_STATUS_DIR_DEFAULT (_PCNT_STATUS_DIR_DEFAULT << 0)
170
#define PCNT_STATUS_DIR_UP (_PCNT_STATUS_DIR_UP << 0)
171
#define PCNT_STATUS_DIR_DOWN (_PCNT_STATUS_DIR_DOWN << 0)
173
/* Bit fields for PCNT CNT */
174
#define _PCNT_CNT_RESETVALUE 0x00000000UL
175
#define _PCNT_CNT_MASK 0x0000FFFFUL
176
#define _PCNT_CNT_CNT_SHIFT 0
177
#define _PCNT_CNT_CNT_MASK 0xFFFFUL
178
#define _PCNT_CNT_CNT_DEFAULT 0x00000000UL
179
#define PCNT_CNT_CNT_DEFAULT (_PCNT_CNT_CNT_DEFAULT << 0)
181
/* Bit fields for PCNT TOP */
182
#define _PCNT_TOP_RESETVALUE 0x000000FFUL
183
#define _PCNT_TOP_MASK 0x0000FFFFUL
184
#define _PCNT_TOP_TOP_SHIFT 0
185
#define _PCNT_TOP_TOP_MASK 0xFFFFUL
186
#define _PCNT_TOP_TOP_DEFAULT 0x000000FFUL
187
#define PCNT_TOP_TOP_DEFAULT (_PCNT_TOP_TOP_DEFAULT << 0)
189
/* Bit fields for PCNT TOPB */
190
#define _PCNT_TOPB_RESETVALUE 0x000000FFUL
191
#define _PCNT_TOPB_MASK 0x0000FFFFUL
192
#define _PCNT_TOPB_TOPB_SHIFT 0
193
#define _PCNT_TOPB_TOPB_MASK 0xFFFFUL
194
#define _PCNT_TOPB_TOPB_DEFAULT 0x000000FFUL
195
#define PCNT_TOPB_TOPB_DEFAULT (_PCNT_TOPB_TOPB_DEFAULT << 0)
197
/* Bit fields for PCNT IF */
198
#define _PCNT_IF_RESETVALUE 0x00000000UL
199
#define _PCNT_IF_MASK 0x0000000FUL
200
#define PCNT_IF_UF (0x1UL << 0)
201
#define _PCNT_IF_UF_SHIFT 0
202
#define _PCNT_IF_UF_MASK 0x1UL
203
#define _PCNT_IF_UF_DEFAULT 0x00000000UL
204
#define PCNT_IF_UF_DEFAULT (_PCNT_IF_UF_DEFAULT << 0)
205
#define PCNT_IF_OF (0x1UL << 1)
206
#define _PCNT_IF_OF_SHIFT 1
207
#define _PCNT_IF_OF_MASK 0x2UL
208
#define _PCNT_IF_OF_DEFAULT 0x00000000UL
209
#define PCNT_IF_OF_DEFAULT (_PCNT_IF_OF_DEFAULT << 1)
210
#define PCNT_IF_DIRCNG (0x1UL << 2)
211
#define _PCNT_IF_DIRCNG_SHIFT 2
212
#define _PCNT_IF_DIRCNG_MASK 0x4UL
213
#define _PCNT_IF_DIRCNG_DEFAULT 0x00000000UL
214
#define PCNT_IF_DIRCNG_DEFAULT (_PCNT_IF_DIRCNG_DEFAULT << 2)
215
#define PCNT_IF_AUXOF (0x1UL << 3)
216
#define _PCNT_IF_AUXOF_SHIFT 3
217
#define _PCNT_IF_AUXOF_MASK 0x8UL
218
#define _PCNT_IF_AUXOF_DEFAULT 0x00000000UL
219
#define PCNT_IF_AUXOF_DEFAULT (_PCNT_IF_AUXOF_DEFAULT << 3)
221
/* Bit fields for PCNT IFS */
222
#define _PCNT_IFS_RESETVALUE 0x00000000UL
223
#define _PCNT_IFS_MASK 0x0000000FUL
224
#define PCNT_IFS_UF (0x1UL << 0)
225
#define _PCNT_IFS_UF_SHIFT 0
226
#define _PCNT_IFS_UF_MASK 0x1UL
227
#define _PCNT_IFS_UF_DEFAULT 0x00000000UL
228
#define PCNT_IFS_UF_DEFAULT (_PCNT_IFS_UF_DEFAULT << 0)
229
#define PCNT_IFS_OF (0x1UL << 1)
230
#define _PCNT_IFS_OF_SHIFT 1
231
#define _PCNT_IFS_OF_MASK 0x2UL
232
#define _PCNT_IFS_OF_DEFAULT 0x00000000UL
233
#define PCNT_IFS_OF_DEFAULT (_PCNT_IFS_OF_DEFAULT << 1)
234
#define PCNT_IFS_DIRCNG (0x1UL << 2)
235
#define _PCNT_IFS_DIRCNG_SHIFT 2
236
#define _PCNT_IFS_DIRCNG_MASK 0x4UL
237
#define _PCNT_IFS_DIRCNG_DEFAULT 0x00000000UL
238
#define PCNT_IFS_DIRCNG_DEFAULT (_PCNT_IFS_DIRCNG_DEFAULT << 2)
239
#define PCNT_IFS_AUXOF (0x1UL << 3)
240
#define _PCNT_IFS_AUXOF_SHIFT 3
241
#define _PCNT_IFS_AUXOF_MASK 0x8UL
242
#define _PCNT_IFS_AUXOF_DEFAULT 0x00000000UL
243
#define PCNT_IFS_AUXOF_DEFAULT (_PCNT_IFS_AUXOF_DEFAULT << 3)
245
/* Bit fields for PCNT IFC */
246
#define _PCNT_IFC_RESETVALUE 0x00000000UL
247
#define _PCNT_IFC_MASK 0x0000000FUL
248
#define PCNT_IFC_UF (0x1UL << 0)
249
#define _PCNT_IFC_UF_SHIFT 0
250
#define _PCNT_IFC_UF_MASK 0x1UL
251
#define _PCNT_IFC_UF_DEFAULT 0x00000000UL
252
#define PCNT_IFC_UF_DEFAULT (_PCNT_IFC_UF_DEFAULT << 0)
253
#define PCNT_IFC_OF (0x1UL << 1)
254
#define _PCNT_IFC_OF_SHIFT 1
255
#define _PCNT_IFC_OF_MASK 0x2UL
256
#define _PCNT_IFC_OF_DEFAULT 0x00000000UL
257
#define PCNT_IFC_OF_DEFAULT (_PCNT_IFC_OF_DEFAULT << 1)
258
#define PCNT_IFC_DIRCNG (0x1UL << 2)
259
#define _PCNT_IFC_DIRCNG_SHIFT 2
260
#define _PCNT_IFC_DIRCNG_MASK 0x4UL
261
#define _PCNT_IFC_DIRCNG_DEFAULT 0x00000000UL
262
#define PCNT_IFC_DIRCNG_DEFAULT (_PCNT_IFC_DIRCNG_DEFAULT << 2)
263
#define PCNT_IFC_AUXOF (0x1UL << 3)
264
#define _PCNT_IFC_AUXOF_SHIFT 3
265
#define _PCNT_IFC_AUXOF_MASK 0x8UL
266
#define _PCNT_IFC_AUXOF_DEFAULT 0x00000000UL
267
#define PCNT_IFC_AUXOF_DEFAULT (_PCNT_IFC_AUXOF_DEFAULT << 3)
269
/* Bit fields for PCNT IEN */
270
#define _PCNT_IEN_RESETVALUE 0x00000000UL
271
#define _PCNT_IEN_MASK 0x0000000FUL
272
#define PCNT_IEN_UF (0x1UL << 0)
273
#define _PCNT_IEN_UF_SHIFT 0
274
#define _PCNT_IEN_UF_MASK 0x1UL
275
#define _PCNT_IEN_UF_DEFAULT 0x00000000UL
276
#define PCNT_IEN_UF_DEFAULT (_PCNT_IEN_UF_DEFAULT << 0)
277
#define PCNT_IEN_OF (0x1UL << 1)
278
#define _PCNT_IEN_OF_SHIFT 1
279
#define _PCNT_IEN_OF_MASK 0x2UL
280
#define _PCNT_IEN_OF_DEFAULT 0x00000000UL
281
#define PCNT_IEN_OF_DEFAULT (_PCNT_IEN_OF_DEFAULT << 1)
282
#define PCNT_IEN_DIRCNG (0x1UL << 2)
283
#define _PCNT_IEN_DIRCNG_SHIFT 2
284
#define _PCNT_IEN_DIRCNG_MASK 0x4UL
285
#define _PCNT_IEN_DIRCNG_DEFAULT 0x00000000UL
286
#define PCNT_IEN_DIRCNG_DEFAULT (_PCNT_IEN_DIRCNG_DEFAULT << 2)
287
#define PCNT_IEN_AUXOF (0x1UL << 3)
288
#define _PCNT_IEN_AUXOF_SHIFT 3
289
#define _PCNT_IEN_AUXOF_MASK 0x8UL
290
#define _PCNT_IEN_AUXOF_DEFAULT 0x00000000UL
291
#define PCNT_IEN_AUXOF_DEFAULT (_PCNT_IEN_AUXOF_DEFAULT << 3)
293
/* Bit fields for PCNT ROUTE */
294
#define _PCNT_ROUTE_RESETVALUE 0x00000000UL
295
#define _PCNT_ROUTE_MASK 0x00000700UL
296
#define _PCNT_ROUTE_LOCATION_SHIFT 8
297
#define _PCNT_ROUTE_LOCATION_MASK 0x700UL
298
#define _PCNT_ROUTE_LOCATION_LOC0 0x00000000UL
299
#define _PCNT_ROUTE_LOCATION_DEFAULT 0x00000000UL
300
#define _PCNT_ROUTE_LOCATION_LOC1 0x00000001UL
301
#define _PCNT_ROUTE_LOCATION_LOC2 0x00000002UL
302
#define _PCNT_ROUTE_LOCATION_LOC3 0x00000003UL
303
#define PCNT_ROUTE_LOCATION_LOC0 (_PCNT_ROUTE_LOCATION_LOC0 << 8)
304
#define PCNT_ROUTE_LOCATION_DEFAULT (_PCNT_ROUTE_LOCATION_DEFAULT << 8)
305
#define PCNT_ROUTE_LOCATION_LOC1 (_PCNT_ROUTE_LOCATION_LOC1 << 8)
306
#define PCNT_ROUTE_LOCATION_LOC2 (_PCNT_ROUTE_LOCATION_LOC2 << 8)
307
#define PCNT_ROUTE_LOCATION_LOC3 (_PCNT_ROUTE_LOCATION_LOC3 << 8)
309
/* Bit fields for PCNT FREEZE */
310
#define _PCNT_FREEZE_RESETVALUE 0x00000000UL
311
#define _PCNT_FREEZE_MASK 0x00000001UL
312
#define PCNT_FREEZE_REGFREEZE (0x1UL << 0)
313
#define _PCNT_FREEZE_REGFREEZE_SHIFT 0
314
#define _PCNT_FREEZE_REGFREEZE_MASK 0x1UL
315
#define _PCNT_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
316
#define _PCNT_FREEZE_REGFREEZE_UPDATE 0x00000000UL
317
#define _PCNT_FREEZE_REGFREEZE_FREEZE 0x00000001UL
318
#define PCNT_FREEZE_REGFREEZE_DEFAULT (_PCNT_FREEZE_REGFREEZE_DEFAULT << 0)
319
#define PCNT_FREEZE_REGFREEZE_UPDATE (_PCNT_FREEZE_REGFREEZE_UPDATE << 0)
320
#define PCNT_FREEZE_REGFREEZE_FREEZE (_PCNT_FREEZE_REGFREEZE_FREEZE << 0)
322
/* Bit fields for PCNT SYNCBUSY */
323
#define _PCNT_SYNCBUSY_RESETVALUE 0x00000000UL
324
#define _PCNT_SYNCBUSY_MASK 0x00000007UL
325
#define PCNT_SYNCBUSY_CTRL (0x1UL << 0)
326
#define _PCNT_SYNCBUSY_CTRL_SHIFT 0
327
#define _PCNT_SYNCBUSY_CTRL_MASK 0x1UL
328
#define _PCNT_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
329
#define PCNT_SYNCBUSY_CTRL_DEFAULT (_PCNT_SYNCBUSY_CTRL_DEFAULT << 0)
330
#define PCNT_SYNCBUSY_CMD (0x1UL << 1)
331
#define _PCNT_SYNCBUSY_CMD_SHIFT 1
332
#define _PCNT_SYNCBUSY_CMD_MASK 0x2UL
333
#define _PCNT_SYNCBUSY_CMD_DEFAULT 0x00000000UL
334
#define PCNT_SYNCBUSY_CMD_DEFAULT (_PCNT_SYNCBUSY_CMD_DEFAULT << 1)
335
#define PCNT_SYNCBUSY_TOPB (0x1UL << 2)
336
#define _PCNT_SYNCBUSY_TOPB_SHIFT 2
337
#define _PCNT_SYNCBUSY_TOPB_MASK 0x4UL
338
#define _PCNT_SYNCBUSY_TOPB_DEFAULT 0x00000000UL
339
#define PCNT_SYNCBUSY_TOPB_DEFAULT (_PCNT_SYNCBUSY_TOPB_DEFAULT << 2)
341
/* Bit fields for PCNT AUXCNT */
342
#define _PCNT_AUXCNT_RESETVALUE 0x00000000UL
343
#define _PCNT_AUXCNT_MASK 0x0000FFFFUL
344
#define _PCNT_AUXCNT_AUXCNT_SHIFT 0
345
#define _PCNT_AUXCNT_AUXCNT_MASK 0xFFFFUL
346
#define _PCNT_AUXCNT_AUXCNT_DEFAULT 0x00000000UL
347
#define PCNT_AUXCNT_AUXCNT_DEFAULT (_PCNT_AUXCNT_AUXCNT_DEFAULT << 0)
349
/* Bit fields for PCNT INPUT */
350
#define _PCNT_INPUT_RESETVALUE 0x00000000UL
351
#define _PCNT_INPUT_MASK 0x000007DFUL
352
#define _PCNT_INPUT_S0PRSSEL_SHIFT 0
353
#define _PCNT_INPUT_S0PRSSEL_MASK 0xFUL
354
#define _PCNT_INPUT_S0PRSSEL_DEFAULT 0x00000000UL
355
#define _PCNT_INPUT_S0PRSSEL_PRSCH0 0x00000000UL
356
#define _PCNT_INPUT_S0PRSSEL_PRSCH1 0x00000001UL
357
#define _PCNT_INPUT_S0PRSSEL_PRSCH2 0x00000002UL
358
#define _PCNT_INPUT_S0PRSSEL_PRSCH3 0x00000003UL
359
#define _PCNT_INPUT_S0PRSSEL_PRSCH4 0x00000004UL
360
#define _PCNT_INPUT_S0PRSSEL_PRSCH5 0x00000005UL
361
#define _PCNT_INPUT_S0PRSSEL_PRSCH6 0x00000006UL
362
#define _PCNT_INPUT_S0PRSSEL_PRSCH7 0x00000007UL
363
#define _PCNT_INPUT_S0PRSSEL_PRSCH8 0x00000008UL
364
#define _PCNT_INPUT_S0PRSSEL_PRSCH9 0x00000009UL
365
#define _PCNT_INPUT_S0PRSSEL_PRSCH10 0x0000000AUL
366
#define _PCNT_INPUT_S0PRSSEL_PRSCH11 0x0000000BUL
367
#define PCNT_INPUT_S0PRSSEL_DEFAULT (_PCNT_INPUT_S0PRSSEL_DEFAULT << 0)
368
#define PCNT_INPUT_S0PRSSEL_PRSCH0 (_PCNT_INPUT_S0PRSSEL_PRSCH0 << 0)
369
#define PCNT_INPUT_S0PRSSEL_PRSCH1 (_PCNT_INPUT_S0PRSSEL_PRSCH1 << 0)
370
#define PCNT_INPUT_S0PRSSEL_PRSCH2 (_PCNT_INPUT_S0PRSSEL_PRSCH2 << 0)
371
#define PCNT_INPUT_S0PRSSEL_PRSCH3 (_PCNT_INPUT_S0PRSSEL_PRSCH3 << 0)
372
#define PCNT_INPUT_S0PRSSEL_PRSCH4 (_PCNT_INPUT_S0PRSSEL_PRSCH4 << 0)
373
#define PCNT_INPUT_S0PRSSEL_PRSCH5 (_PCNT_INPUT_S0PRSSEL_PRSCH5 << 0)
374
#define PCNT_INPUT_S0PRSSEL_PRSCH6 (_PCNT_INPUT_S0PRSSEL_PRSCH6 << 0)
375
#define PCNT_INPUT_S0PRSSEL_PRSCH7 (_PCNT_INPUT_S0PRSSEL_PRSCH7 << 0)
376
#define PCNT_INPUT_S0PRSSEL_PRSCH8 (_PCNT_INPUT_S0PRSSEL_PRSCH8 << 0)
377
#define PCNT_INPUT_S0PRSSEL_PRSCH9 (_PCNT_INPUT_S0PRSSEL_PRSCH9 << 0)
378
#define PCNT_INPUT_S0PRSSEL_PRSCH10 (_PCNT_INPUT_S0PRSSEL_PRSCH10 << 0)
379
#define PCNT_INPUT_S0PRSSEL_PRSCH11 (_PCNT_INPUT_S0PRSSEL_PRSCH11 << 0)
380
#define PCNT_INPUT_S0PRSEN (0x1UL << 4)
381
#define _PCNT_INPUT_S0PRSEN_SHIFT 4
382
#define _PCNT_INPUT_S0PRSEN_MASK 0x10UL
383
#define _PCNT_INPUT_S0PRSEN_DEFAULT 0x00000000UL
384
#define PCNT_INPUT_S0PRSEN_DEFAULT (_PCNT_INPUT_S0PRSEN_DEFAULT << 4)
385
#define _PCNT_INPUT_S1PRSSEL_SHIFT 6
386
#define _PCNT_INPUT_S1PRSSEL_MASK 0x3C0UL
387
#define _PCNT_INPUT_S1PRSSEL_DEFAULT 0x00000000UL
388
#define _PCNT_INPUT_S1PRSSEL_PRSCH0 0x00000000UL
389
#define _PCNT_INPUT_S1PRSSEL_PRSCH1 0x00000001UL
390
#define _PCNT_INPUT_S1PRSSEL_PRSCH2 0x00000002UL
391
#define _PCNT_INPUT_S1PRSSEL_PRSCH3 0x00000003UL
392
#define _PCNT_INPUT_S1PRSSEL_PRSCH4 0x00000004UL
393
#define _PCNT_INPUT_S1PRSSEL_PRSCH5 0x00000005UL
394
#define _PCNT_INPUT_S1PRSSEL_PRSCH6 0x00000006UL
395
#define _PCNT_INPUT_S1PRSSEL_PRSCH7 0x00000007UL
396
#define _PCNT_INPUT_S1PRSSEL_PRSCH8 0x00000008UL
397
#define _PCNT_INPUT_S1PRSSEL_PRSCH9 0x00000009UL
398
#define _PCNT_INPUT_S1PRSSEL_PRSCH10 0x0000000AUL
399
#define _PCNT_INPUT_S1PRSSEL_PRSCH11 0x0000000BUL
400
#define PCNT_INPUT_S1PRSSEL_DEFAULT (_PCNT_INPUT_S1PRSSEL_DEFAULT << 6)
401
#define PCNT_INPUT_S1PRSSEL_PRSCH0 (_PCNT_INPUT_S1PRSSEL_PRSCH0 << 6)
402
#define PCNT_INPUT_S1PRSSEL_PRSCH1 (_PCNT_INPUT_S1PRSSEL_PRSCH1 << 6)
403
#define PCNT_INPUT_S1PRSSEL_PRSCH2 (_PCNT_INPUT_S1PRSSEL_PRSCH2 << 6)
404
#define PCNT_INPUT_S1PRSSEL_PRSCH3 (_PCNT_INPUT_S1PRSSEL_PRSCH3 << 6)
405
#define PCNT_INPUT_S1PRSSEL_PRSCH4 (_PCNT_INPUT_S1PRSSEL_PRSCH4 << 6)
406
#define PCNT_INPUT_S1PRSSEL_PRSCH5 (_PCNT_INPUT_S1PRSSEL_PRSCH5 << 6)
407
#define PCNT_INPUT_S1PRSSEL_PRSCH6 (_PCNT_INPUT_S1PRSSEL_PRSCH6 << 6)
408
#define PCNT_INPUT_S1PRSSEL_PRSCH7 (_PCNT_INPUT_S1PRSSEL_PRSCH7 << 6)
409
#define PCNT_INPUT_S1PRSSEL_PRSCH8 (_PCNT_INPUT_S1PRSSEL_PRSCH8 << 6)
410
#define PCNT_INPUT_S1PRSSEL_PRSCH9 (_PCNT_INPUT_S1PRSSEL_PRSCH9 << 6)
411
#define PCNT_INPUT_S1PRSSEL_PRSCH10 (_PCNT_INPUT_S1PRSSEL_PRSCH10 << 6)
412
#define PCNT_INPUT_S1PRSSEL_PRSCH11 (_PCNT_INPUT_S1PRSSEL_PRSCH11 << 6)
413
#define PCNT_INPUT_S1PRSEN (0x1UL << 10)
414
#define _PCNT_INPUT_S1PRSEN_SHIFT 10
415
#define _PCNT_INPUT_S1PRSEN_MASK 0x400UL
416
#define _PCNT_INPUT_S1PRSEN_DEFAULT 0x00000000UL
417
#define PCNT_INPUT_S1PRSEN_DEFAULT (_PCNT_INPUT_S1PRSEN_DEFAULT << 10)
PCNT_TypeDef::TOP
__IM uint32_t TOP
Definition:
ezr32wg_pcnt.h:47
PCNT_TypeDef::INPUT
__IOM uint32_t INPUT
Definition:
ezr32wg_pcnt.h:60
PCNT_TypeDef::ROUTE
__IOM uint32_t ROUTE
Definition:
ezr32wg_pcnt.h:53
PCNT_TypeDef::IFC
__IOM uint32_t IFC
Definition:
ezr32wg_pcnt.h:51
PCNT_TypeDef
Definition:
ezr32wg_pcnt.h:41
PCNT_TypeDef::CMD
__IOM uint32_t CMD
Definition:
ezr32wg_pcnt.h:44
PCNT_TypeDef::SYNCBUSY
__IM uint32_t SYNCBUSY
Definition:
ezr32wg_pcnt.h:56
PCNT_TypeDef::STATUS
__IM uint32_t STATUS
Definition:
ezr32wg_pcnt.h:45
PCNT_TypeDef::IF
__IM uint32_t IF
Definition:
ezr32wg_pcnt.h:49
PCNT_TypeDef::TOPB
__IOM uint32_t TOPB
Definition:
ezr32wg_pcnt.h:48
PCNT_TypeDef::CNT
__IM uint32_t CNT
Definition:
ezr32wg_pcnt.h:46
PCNT_TypeDef::CTRL
__IOM uint32_t CTRL
Definition:
ezr32wg_pcnt.h:43
PCNT_TypeDef::AUXCNT
__IOM uint32_t AUXCNT
Definition:
ezr32wg_pcnt.h:59
PCNT_TypeDef::FREEZE
__IOM uint32_t FREEZE
Definition:
ezr32wg_pcnt.h:55
PCNT_TypeDef::IFS
__IOM uint32_t IFS
Definition:
ezr32wg_pcnt.h:50
PCNT_TypeDef::IEN
__IOM uint32_t IEN
Definition:
ezr32wg_pcnt.h:52
platform
Device
SiliconLabs
EZR32WG
Include
ezr32wg_pcnt.h
Generated on Thu Mar 9 2017 20:47:49 for EZR32 Wonder Gecko Software Documentation by
1.8.10