EFM32 Zero Gecko Software Documentation
efm32zg-doc-5.1.2
Main Page
Modules
Files
Documentation Home
silabs.com
File List
efm32zg_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 0x7ECCCF7FUL
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_AUXCNTRSTEN (0x1UL << 6)
112
#define _PCNT_CTRL_AUXCNTRSTEN_SHIFT 6
113
#define _PCNT_CTRL_AUXCNTRSTEN_MASK 0x40UL
114
#define _PCNT_CTRL_AUXCNTRSTEN_DEFAULT 0x00000000UL
115
#define PCNT_CTRL_AUXCNTRSTEN_DEFAULT (_PCNT_CTRL_AUXCNTRSTEN_DEFAULT << 6)
116
#define PCNT_CTRL_HYST (0x1UL << 8)
117
#define _PCNT_CTRL_HYST_SHIFT 8
118
#define _PCNT_CTRL_HYST_MASK 0x100UL
119
#define _PCNT_CTRL_HYST_DEFAULT 0x00000000UL
120
#define PCNT_CTRL_HYST_DEFAULT (_PCNT_CTRL_HYST_DEFAULT << 8)
121
#define PCNT_CTRL_S1CDIR (0x1UL << 9)
122
#define _PCNT_CTRL_S1CDIR_SHIFT 9
123
#define _PCNT_CTRL_S1CDIR_MASK 0x200UL
124
#define _PCNT_CTRL_S1CDIR_DEFAULT 0x00000000UL
125
#define PCNT_CTRL_S1CDIR_DEFAULT (_PCNT_CTRL_S1CDIR_DEFAULT << 9)
126
#define _PCNT_CTRL_CNTEV_SHIFT 10
127
#define _PCNT_CTRL_CNTEV_MASK 0xC00UL
128
#define _PCNT_CTRL_CNTEV_DEFAULT 0x00000000UL
129
#define _PCNT_CTRL_CNTEV_BOTH 0x00000000UL
130
#define _PCNT_CTRL_CNTEV_UP 0x00000001UL
131
#define _PCNT_CTRL_CNTEV_DOWN 0x00000002UL
132
#define _PCNT_CTRL_CNTEV_NONE 0x00000003UL
133
#define PCNT_CTRL_CNTEV_DEFAULT (_PCNT_CTRL_CNTEV_DEFAULT << 10)
134
#define PCNT_CTRL_CNTEV_BOTH (_PCNT_CTRL_CNTEV_BOTH << 10)
135
#define PCNT_CTRL_CNTEV_UP (_PCNT_CTRL_CNTEV_UP << 10)
136
#define PCNT_CTRL_CNTEV_DOWN (_PCNT_CTRL_CNTEV_DOWN << 10)
137
#define PCNT_CTRL_CNTEV_NONE (_PCNT_CTRL_CNTEV_NONE << 10)
138
#define _PCNT_CTRL_AUXCNTEV_SHIFT 14
139
#define _PCNT_CTRL_AUXCNTEV_MASK 0xC000UL
140
#define _PCNT_CTRL_AUXCNTEV_DEFAULT 0x00000000UL
141
#define _PCNT_CTRL_AUXCNTEV_NONE 0x00000000UL
142
#define _PCNT_CTRL_AUXCNTEV_UP 0x00000001UL
143
#define _PCNT_CTRL_AUXCNTEV_DOWN 0x00000002UL
144
#define _PCNT_CTRL_AUXCNTEV_BOTH 0x00000003UL
145
#define PCNT_CTRL_AUXCNTEV_DEFAULT (_PCNT_CTRL_AUXCNTEV_DEFAULT << 14)
146
#define PCNT_CTRL_AUXCNTEV_NONE (_PCNT_CTRL_AUXCNTEV_NONE << 14)
147
#define PCNT_CTRL_AUXCNTEV_UP (_PCNT_CTRL_AUXCNTEV_UP << 14)
148
#define PCNT_CTRL_AUXCNTEV_DOWN (_PCNT_CTRL_AUXCNTEV_DOWN << 14)
149
#define PCNT_CTRL_AUXCNTEV_BOTH (_PCNT_CTRL_AUXCNTEV_BOTH << 14)
150
#define _PCNT_CTRL_TCCMODE_SHIFT 18
151
#define _PCNT_CTRL_TCCMODE_MASK 0xC0000UL
152
#define _PCNT_CTRL_TCCMODE_DEFAULT 0x00000000UL
153
#define _PCNT_CTRL_TCCMODE_DISABLED 0x00000000UL
154
#define _PCNT_CTRL_TCCMODE_LFA 0x00000001UL
155
#define _PCNT_CTRL_TCCMODE_PRS 0x00000002UL
156
#define PCNT_CTRL_TCCMODE_DEFAULT (_PCNT_CTRL_TCCMODE_DEFAULT << 18)
157
#define PCNT_CTRL_TCCMODE_DISABLED (_PCNT_CTRL_TCCMODE_DISABLED << 18)
158
#define PCNT_CTRL_TCCMODE_LFA (_PCNT_CTRL_TCCMODE_LFA << 18)
159
#define PCNT_CTRL_TCCMODE_PRS (_PCNT_CTRL_TCCMODE_PRS << 18)
160
#define _PCNT_CTRL_TCCPRESC_SHIFT 22
161
#define _PCNT_CTRL_TCCPRESC_MASK 0xC00000UL
162
#define _PCNT_CTRL_TCCPRESC_DEFAULT 0x00000000UL
163
#define _PCNT_CTRL_TCCPRESC_DIV1 0x00000000UL
164
#define _PCNT_CTRL_TCCPRESC_DIV2 0x00000001UL
165
#define _PCNT_CTRL_TCCPRESC_DIV4 0x00000002UL
166
#define _PCNT_CTRL_TCCPRESC_DIV8 0x00000003UL
167
#define PCNT_CTRL_TCCPRESC_DEFAULT (_PCNT_CTRL_TCCPRESC_DEFAULT << 22)
168
#define PCNT_CTRL_TCCPRESC_DIV1 (_PCNT_CTRL_TCCPRESC_DIV1 << 22)
169
#define PCNT_CTRL_TCCPRESC_DIV2 (_PCNT_CTRL_TCCPRESC_DIV2 << 22)
170
#define PCNT_CTRL_TCCPRESC_DIV4 (_PCNT_CTRL_TCCPRESC_DIV4 << 22)
171
#define PCNT_CTRL_TCCPRESC_DIV8 (_PCNT_CTRL_TCCPRESC_DIV8 << 22)
172
#define _PCNT_CTRL_TCCCOMP_SHIFT 25
173
#define _PCNT_CTRL_TCCCOMP_MASK 0x6000000UL
174
#define _PCNT_CTRL_TCCCOMP_DEFAULT 0x00000000UL
175
#define _PCNT_CTRL_TCCCOMP_LTOE 0x00000000UL
176
#define _PCNT_CTRL_TCCCOMP_GTOE 0x00000001UL
177
#define _PCNT_CTRL_TCCCOMP_RANGE 0x00000002UL
178
#define PCNT_CTRL_TCCCOMP_DEFAULT (_PCNT_CTRL_TCCCOMP_DEFAULT << 25)
179
#define PCNT_CTRL_TCCCOMP_LTOE (_PCNT_CTRL_TCCCOMP_LTOE << 25)
180
#define PCNT_CTRL_TCCCOMP_GTOE (_PCNT_CTRL_TCCCOMP_GTOE << 25)
181
#define PCNT_CTRL_TCCCOMP_RANGE (_PCNT_CTRL_TCCCOMP_RANGE << 25)
182
#define PCNT_CTRL_PRSGATEEN (0x1UL << 27)
183
#define _PCNT_CTRL_PRSGATEEN_SHIFT 27
184
#define _PCNT_CTRL_PRSGATEEN_MASK 0x8000000UL
185
#define _PCNT_CTRL_PRSGATEEN_DEFAULT 0x00000000UL
186
#define PCNT_CTRL_PRSGATEEN_DEFAULT (_PCNT_CTRL_PRSGATEEN_DEFAULT << 27)
187
#define PCNT_CTRL_TCCPRSPOL (0x1UL << 28)
188
#define _PCNT_CTRL_TCCPRSPOL_SHIFT 28
189
#define _PCNT_CTRL_TCCPRSPOL_MASK 0x10000000UL
190
#define _PCNT_CTRL_TCCPRSPOL_DEFAULT 0x00000000UL
191
#define _PCNT_CTRL_TCCPRSPOL_RISING 0x00000000UL
192
#define _PCNT_CTRL_TCCPRSPOL_FALLING 0x00000001UL
193
#define PCNT_CTRL_TCCPRSPOL_DEFAULT (_PCNT_CTRL_TCCPRSPOL_DEFAULT << 28)
194
#define PCNT_CTRL_TCCPRSPOL_RISING (_PCNT_CTRL_TCCPRSPOL_RISING << 28)
195
#define PCNT_CTRL_TCCPRSPOL_FALLING (_PCNT_CTRL_TCCPRSPOL_FALLING << 28)
196
#define _PCNT_CTRL_TCCPRSSEL_SHIFT 29
197
#define _PCNT_CTRL_TCCPRSSEL_MASK 0x60000000UL
198
#define _PCNT_CTRL_TCCPRSSEL_DEFAULT 0x00000000UL
199
#define _PCNT_CTRL_TCCPRSSEL_PRSCH0 0x00000000UL
200
#define _PCNT_CTRL_TCCPRSSEL_PRSCH1 0x00000001UL
201
#define _PCNT_CTRL_TCCPRSSEL_PRSCH2 0x00000002UL
202
#define _PCNT_CTRL_TCCPRSSEL_PRSCH3 0x00000003UL
203
#define PCNT_CTRL_TCCPRSSEL_DEFAULT (_PCNT_CTRL_TCCPRSSEL_DEFAULT << 29)
204
#define PCNT_CTRL_TCCPRSSEL_PRSCH0 (_PCNT_CTRL_TCCPRSSEL_PRSCH0 << 29)
205
#define PCNT_CTRL_TCCPRSSEL_PRSCH1 (_PCNT_CTRL_TCCPRSSEL_PRSCH1 << 29)
206
#define PCNT_CTRL_TCCPRSSEL_PRSCH2 (_PCNT_CTRL_TCCPRSSEL_PRSCH2 << 29)
207
#define PCNT_CTRL_TCCPRSSEL_PRSCH3 (_PCNT_CTRL_TCCPRSSEL_PRSCH3 << 29)
209
/* Bit fields for PCNT CMD */
210
#define _PCNT_CMD_RESETVALUE 0x00000000UL
211
#define _PCNT_CMD_MASK 0x00000003UL
212
#define PCNT_CMD_LCNTIM (0x1UL << 0)
213
#define _PCNT_CMD_LCNTIM_SHIFT 0
214
#define _PCNT_CMD_LCNTIM_MASK 0x1UL
215
#define _PCNT_CMD_LCNTIM_DEFAULT 0x00000000UL
216
#define PCNT_CMD_LCNTIM_DEFAULT (_PCNT_CMD_LCNTIM_DEFAULT << 0)
217
#define PCNT_CMD_LTOPBIM (0x1UL << 1)
218
#define _PCNT_CMD_LTOPBIM_SHIFT 1
219
#define _PCNT_CMD_LTOPBIM_MASK 0x2UL
220
#define _PCNT_CMD_LTOPBIM_DEFAULT 0x00000000UL
221
#define PCNT_CMD_LTOPBIM_DEFAULT (_PCNT_CMD_LTOPBIM_DEFAULT << 1)
223
/* Bit fields for PCNT STATUS */
224
#define _PCNT_STATUS_RESETVALUE 0x00000000UL
225
#define _PCNT_STATUS_MASK 0x00000001UL
226
#define PCNT_STATUS_DIR (0x1UL << 0)
227
#define _PCNT_STATUS_DIR_SHIFT 0
228
#define _PCNT_STATUS_DIR_MASK 0x1UL
229
#define _PCNT_STATUS_DIR_DEFAULT 0x00000000UL
230
#define _PCNT_STATUS_DIR_UP 0x00000000UL
231
#define _PCNT_STATUS_DIR_DOWN 0x00000001UL
232
#define PCNT_STATUS_DIR_DEFAULT (_PCNT_STATUS_DIR_DEFAULT << 0)
233
#define PCNT_STATUS_DIR_UP (_PCNT_STATUS_DIR_UP << 0)
234
#define PCNT_STATUS_DIR_DOWN (_PCNT_STATUS_DIR_DOWN << 0)
236
/* Bit fields for PCNT CNT */
237
#define _PCNT_CNT_RESETVALUE 0x00000000UL
238
#define _PCNT_CNT_MASK 0x0000FFFFUL
239
#define _PCNT_CNT_CNT_SHIFT 0
240
#define _PCNT_CNT_CNT_MASK 0xFFFFUL
241
#define _PCNT_CNT_CNT_DEFAULT 0x00000000UL
242
#define PCNT_CNT_CNT_DEFAULT (_PCNT_CNT_CNT_DEFAULT << 0)
244
/* Bit fields for PCNT TOP */
245
#define _PCNT_TOP_RESETVALUE 0x000000FFUL
246
#define _PCNT_TOP_MASK 0x0000FFFFUL
247
#define _PCNT_TOP_TOP_SHIFT 0
248
#define _PCNT_TOP_TOP_MASK 0xFFFFUL
249
#define _PCNT_TOP_TOP_DEFAULT 0x000000FFUL
250
#define PCNT_TOP_TOP_DEFAULT (_PCNT_TOP_TOP_DEFAULT << 0)
252
/* Bit fields for PCNT TOPB */
253
#define _PCNT_TOPB_RESETVALUE 0x000000FFUL
254
#define _PCNT_TOPB_MASK 0x0000FFFFUL
255
#define _PCNT_TOPB_TOPB_SHIFT 0
256
#define _PCNT_TOPB_TOPB_MASK 0xFFFFUL
257
#define _PCNT_TOPB_TOPB_DEFAULT 0x000000FFUL
258
#define PCNT_TOPB_TOPB_DEFAULT (_PCNT_TOPB_TOPB_DEFAULT << 0)
260
/* Bit fields for PCNT IF */
261
#define _PCNT_IF_RESETVALUE 0x00000000UL
262
#define _PCNT_IF_MASK 0x0000001FUL
263
#define PCNT_IF_UF (0x1UL << 0)
264
#define _PCNT_IF_UF_SHIFT 0
265
#define _PCNT_IF_UF_MASK 0x1UL
266
#define _PCNT_IF_UF_DEFAULT 0x00000000UL
267
#define PCNT_IF_UF_DEFAULT (_PCNT_IF_UF_DEFAULT << 0)
268
#define PCNT_IF_OF (0x1UL << 1)
269
#define _PCNT_IF_OF_SHIFT 1
270
#define _PCNT_IF_OF_MASK 0x2UL
271
#define _PCNT_IF_OF_DEFAULT 0x00000000UL
272
#define PCNT_IF_OF_DEFAULT (_PCNT_IF_OF_DEFAULT << 1)
273
#define PCNT_IF_DIRCNG (0x1UL << 2)
274
#define _PCNT_IF_DIRCNG_SHIFT 2
275
#define _PCNT_IF_DIRCNG_MASK 0x4UL
276
#define _PCNT_IF_DIRCNG_DEFAULT 0x00000000UL
277
#define PCNT_IF_DIRCNG_DEFAULT (_PCNT_IF_DIRCNG_DEFAULT << 2)
278
#define PCNT_IF_AUXOF (0x1UL << 3)
279
#define _PCNT_IF_AUXOF_SHIFT 3
280
#define _PCNT_IF_AUXOF_MASK 0x8UL
281
#define _PCNT_IF_AUXOF_DEFAULT 0x00000000UL
282
#define PCNT_IF_AUXOF_DEFAULT (_PCNT_IF_AUXOF_DEFAULT << 3)
283
#define PCNT_IF_TCC (0x1UL << 4)
284
#define _PCNT_IF_TCC_SHIFT 4
285
#define _PCNT_IF_TCC_MASK 0x10UL
286
#define _PCNT_IF_TCC_DEFAULT 0x00000000UL
287
#define PCNT_IF_TCC_DEFAULT (_PCNT_IF_TCC_DEFAULT << 4)
289
/* Bit fields for PCNT IFS */
290
#define _PCNT_IFS_RESETVALUE 0x00000000UL
291
#define _PCNT_IFS_MASK 0x0000001FUL
292
#define PCNT_IFS_UF (0x1UL << 0)
293
#define _PCNT_IFS_UF_SHIFT 0
294
#define _PCNT_IFS_UF_MASK 0x1UL
295
#define _PCNT_IFS_UF_DEFAULT 0x00000000UL
296
#define PCNT_IFS_UF_DEFAULT (_PCNT_IFS_UF_DEFAULT << 0)
297
#define PCNT_IFS_OF (0x1UL << 1)
298
#define _PCNT_IFS_OF_SHIFT 1
299
#define _PCNT_IFS_OF_MASK 0x2UL
300
#define _PCNT_IFS_OF_DEFAULT 0x00000000UL
301
#define PCNT_IFS_OF_DEFAULT (_PCNT_IFS_OF_DEFAULT << 1)
302
#define PCNT_IFS_DIRCNG (0x1UL << 2)
303
#define _PCNT_IFS_DIRCNG_SHIFT 2
304
#define _PCNT_IFS_DIRCNG_MASK 0x4UL
305
#define _PCNT_IFS_DIRCNG_DEFAULT 0x00000000UL
306
#define PCNT_IFS_DIRCNG_DEFAULT (_PCNT_IFS_DIRCNG_DEFAULT << 2)
307
#define PCNT_IFS_AUXOF (0x1UL << 3)
308
#define _PCNT_IFS_AUXOF_SHIFT 3
309
#define _PCNT_IFS_AUXOF_MASK 0x8UL
310
#define _PCNT_IFS_AUXOF_DEFAULT 0x00000000UL
311
#define PCNT_IFS_AUXOF_DEFAULT (_PCNT_IFS_AUXOF_DEFAULT << 3)
312
#define PCNT_IFS_TCC (0x1UL << 4)
313
#define _PCNT_IFS_TCC_SHIFT 4
314
#define _PCNT_IFS_TCC_MASK 0x10UL
315
#define _PCNT_IFS_TCC_DEFAULT 0x00000000UL
316
#define PCNT_IFS_TCC_DEFAULT (_PCNT_IFS_TCC_DEFAULT << 4)
318
/* Bit fields for PCNT IFC */
319
#define _PCNT_IFC_RESETVALUE 0x00000000UL
320
#define _PCNT_IFC_MASK 0x0000001FUL
321
#define PCNT_IFC_UF (0x1UL << 0)
322
#define _PCNT_IFC_UF_SHIFT 0
323
#define _PCNT_IFC_UF_MASK 0x1UL
324
#define _PCNT_IFC_UF_DEFAULT 0x00000000UL
325
#define PCNT_IFC_UF_DEFAULT (_PCNT_IFC_UF_DEFAULT << 0)
326
#define PCNT_IFC_OF (0x1UL << 1)
327
#define _PCNT_IFC_OF_SHIFT 1
328
#define _PCNT_IFC_OF_MASK 0x2UL
329
#define _PCNT_IFC_OF_DEFAULT 0x00000000UL
330
#define PCNT_IFC_OF_DEFAULT (_PCNT_IFC_OF_DEFAULT << 1)
331
#define PCNT_IFC_DIRCNG (0x1UL << 2)
332
#define _PCNT_IFC_DIRCNG_SHIFT 2
333
#define _PCNT_IFC_DIRCNG_MASK 0x4UL
334
#define _PCNT_IFC_DIRCNG_DEFAULT 0x00000000UL
335
#define PCNT_IFC_DIRCNG_DEFAULT (_PCNT_IFC_DIRCNG_DEFAULT << 2)
336
#define PCNT_IFC_AUXOF (0x1UL << 3)
337
#define _PCNT_IFC_AUXOF_SHIFT 3
338
#define _PCNT_IFC_AUXOF_MASK 0x8UL
339
#define _PCNT_IFC_AUXOF_DEFAULT 0x00000000UL
340
#define PCNT_IFC_AUXOF_DEFAULT (_PCNT_IFC_AUXOF_DEFAULT << 3)
341
#define PCNT_IFC_TCC (0x1UL << 4)
342
#define _PCNT_IFC_TCC_SHIFT 4
343
#define _PCNT_IFC_TCC_MASK 0x10UL
344
#define _PCNT_IFC_TCC_DEFAULT 0x00000000UL
345
#define PCNT_IFC_TCC_DEFAULT (_PCNT_IFC_TCC_DEFAULT << 4)
347
/* Bit fields for PCNT IEN */
348
#define _PCNT_IEN_RESETVALUE 0x00000000UL
349
#define _PCNT_IEN_MASK 0x0000001FUL
350
#define PCNT_IEN_UF (0x1UL << 0)
351
#define _PCNT_IEN_UF_SHIFT 0
352
#define _PCNT_IEN_UF_MASK 0x1UL
353
#define _PCNT_IEN_UF_DEFAULT 0x00000000UL
354
#define PCNT_IEN_UF_DEFAULT (_PCNT_IEN_UF_DEFAULT << 0)
355
#define PCNT_IEN_OF (0x1UL << 1)
356
#define _PCNT_IEN_OF_SHIFT 1
357
#define _PCNT_IEN_OF_MASK 0x2UL
358
#define _PCNT_IEN_OF_DEFAULT 0x00000000UL
359
#define PCNT_IEN_OF_DEFAULT (_PCNT_IEN_OF_DEFAULT << 1)
360
#define PCNT_IEN_DIRCNG (0x1UL << 2)
361
#define _PCNT_IEN_DIRCNG_SHIFT 2
362
#define _PCNT_IEN_DIRCNG_MASK 0x4UL
363
#define _PCNT_IEN_DIRCNG_DEFAULT 0x00000000UL
364
#define PCNT_IEN_DIRCNG_DEFAULT (_PCNT_IEN_DIRCNG_DEFAULT << 2)
365
#define PCNT_IEN_AUXOF (0x1UL << 3)
366
#define _PCNT_IEN_AUXOF_SHIFT 3
367
#define _PCNT_IEN_AUXOF_MASK 0x8UL
368
#define _PCNT_IEN_AUXOF_DEFAULT 0x00000000UL
369
#define PCNT_IEN_AUXOF_DEFAULT (_PCNT_IEN_AUXOF_DEFAULT << 3)
370
#define PCNT_IEN_TCC (0x1UL << 4)
371
#define _PCNT_IEN_TCC_SHIFT 4
372
#define _PCNT_IEN_TCC_MASK 0x10UL
373
#define _PCNT_IEN_TCC_DEFAULT 0x00000000UL
374
#define PCNT_IEN_TCC_DEFAULT (_PCNT_IEN_TCC_DEFAULT << 4)
376
/* Bit fields for PCNT ROUTE */
377
#define _PCNT_ROUTE_RESETVALUE 0x00000000UL
378
#define _PCNT_ROUTE_MASK 0x00000700UL
379
#define _PCNT_ROUTE_LOCATION_SHIFT 8
380
#define _PCNT_ROUTE_LOCATION_MASK 0x700UL
381
#define _PCNT_ROUTE_LOCATION_LOC0 0x00000000UL
382
#define _PCNT_ROUTE_LOCATION_DEFAULT 0x00000000UL
383
#define _PCNT_ROUTE_LOCATION_LOC1 0x00000001UL
384
#define _PCNT_ROUTE_LOCATION_LOC2 0x00000002UL
385
#define _PCNT_ROUTE_LOCATION_LOC3 0x00000003UL
386
#define PCNT_ROUTE_LOCATION_LOC0 (_PCNT_ROUTE_LOCATION_LOC0 << 8)
387
#define PCNT_ROUTE_LOCATION_DEFAULT (_PCNT_ROUTE_LOCATION_DEFAULT << 8)
388
#define PCNT_ROUTE_LOCATION_LOC1 (_PCNT_ROUTE_LOCATION_LOC1 << 8)
389
#define PCNT_ROUTE_LOCATION_LOC2 (_PCNT_ROUTE_LOCATION_LOC2 << 8)
390
#define PCNT_ROUTE_LOCATION_LOC3 (_PCNT_ROUTE_LOCATION_LOC3 << 8)
392
/* Bit fields for PCNT FREEZE */
393
#define _PCNT_FREEZE_RESETVALUE 0x00000000UL
394
#define _PCNT_FREEZE_MASK 0x00000001UL
395
#define PCNT_FREEZE_REGFREEZE (0x1UL << 0)
396
#define _PCNT_FREEZE_REGFREEZE_SHIFT 0
397
#define _PCNT_FREEZE_REGFREEZE_MASK 0x1UL
398
#define _PCNT_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
399
#define _PCNT_FREEZE_REGFREEZE_UPDATE 0x00000000UL
400
#define _PCNT_FREEZE_REGFREEZE_FREEZE 0x00000001UL
401
#define PCNT_FREEZE_REGFREEZE_DEFAULT (_PCNT_FREEZE_REGFREEZE_DEFAULT << 0)
402
#define PCNT_FREEZE_REGFREEZE_UPDATE (_PCNT_FREEZE_REGFREEZE_UPDATE << 0)
403
#define PCNT_FREEZE_REGFREEZE_FREEZE (_PCNT_FREEZE_REGFREEZE_FREEZE << 0)
405
/* Bit fields for PCNT SYNCBUSY */
406
#define _PCNT_SYNCBUSY_RESETVALUE 0x00000000UL
407
#define _PCNT_SYNCBUSY_MASK 0x00000007UL
408
#define PCNT_SYNCBUSY_CTRL (0x1UL << 0)
409
#define _PCNT_SYNCBUSY_CTRL_SHIFT 0
410
#define _PCNT_SYNCBUSY_CTRL_MASK 0x1UL
411
#define _PCNT_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
412
#define PCNT_SYNCBUSY_CTRL_DEFAULT (_PCNT_SYNCBUSY_CTRL_DEFAULT << 0)
413
#define PCNT_SYNCBUSY_CMD (0x1UL << 1)
414
#define _PCNT_SYNCBUSY_CMD_SHIFT 1
415
#define _PCNT_SYNCBUSY_CMD_MASK 0x2UL
416
#define _PCNT_SYNCBUSY_CMD_DEFAULT 0x00000000UL
417
#define PCNT_SYNCBUSY_CMD_DEFAULT (_PCNT_SYNCBUSY_CMD_DEFAULT << 1)
418
#define PCNT_SYNCBUSY_TOPB (0x1UL << 2)
419
#define _PCNT_SYNCBUSY_TOPB_SHIFT 2
420
#define _PCNT_SYNCBUSY_TOPB_MASK 0x4UL
421
#define _PCNT_SYNCBUSY_TOPB_DEFAULT 0x00000000UL
422
#define PCNT_SYNCBUSY_TOPB_DEFAULT (_PCNT_SYNCBUSY_TOPB_DEFAULT << 2)
424
/* Bit fields for PCNT AUXCNT */
425
#define _PCNT_AUXCNT_RESETVALUE 0x00000000UL
426
#define _PCNT_AUXCNT_MASK 0x0000FFFFUL
427
#define _PCNT_AUXCNT_AUXCNT_SHIFT 0
428
#define _PCNT_AUXCNT_AUXCNT_MASK 0xFFFFUL
429
#define _PCNT_AUXCNT_AUXCNT_DEFAULT 0x00000000UL
430
#define PCNT_AUXCNT_AUXCNT_DEFAULT (_PCNT_AUXCNT_AUXCNT_DEFAULT << 0)
432
/* Bit fields for PCNT INPUT */
433
#define _PCNT_INPUT_RESETVALUE 0x00000000UL
434
#define _PCNT_INPUT_MASK 0x000004D3UL
435
#define _PCNT_INPUT_S0PRSSEL_SHIFT 0
436
#define _PCNT_INPUT_S0PRSSEL_MASK 0x3UL
437
#define _PCNT_INPUT_S0PRSSEL_DEFAULT 0x00000000UL
438
#define _PCNT_INPUT_S0PRSSEL_PRSCH0 0x00000000UL
439
#define _PCNT_INPUT_S0PRSSEL_PRSCH1 0x00000001UL
440
#define _PCNT_INPUT_S0PRSSEL_PRSCH2 0x00000002UL
441
#define _PCNT_INPUT_S0PRSSEL_PRSCH3 0x00000003UL
442
#define PCNT_INPUT_S0PRSSEL_DEFAULT (_PCNT_INPUT_S0PRSSEL_DEFAULT << 0)
443
#define PCNT_INPUT_S0PRSSEL_PRSCH0 (_PCNT_INPUT_S0PRSSEL_PRSCH0 << 0)
444
#define PCNT_INPUT_S0PRSSEL_PRSCH1 (_PCNT_INPUT_S0PRSSEL_PRSCH1 << 0)
445
#define PCNT_INPUT_S0PRSSEL_PRSCH2 (_PCNT_INPUT_S0PRSSEL_PRSCH2 << 0)
446
#define PCNT_INPUT_S0PRSSEL_PRSCH3 (_PCNT_INPUT_S0PRSSEL_PRSCH3 << 0)
447
#define PCNT_INPUT_S0PRSEN (0x1UL << 4)
448
#define _PCNT_INPUT_S0PRSEN_SHIFT 4
449
#define _PCNT_INPUT_S0PRSEN_MASK 0x10UL
450
#define _PCNT_INPUT_S0PRSEN_DEFAULT 0x00000000UL
451
#define PCNT_INPUT_S0PRSEN_DEFAULT (_PCNT_INPUT_S0PRSEN_DEFAULT << 4)
452
#define _PCNT_INPUT_S1PRSSEL_SHIFT 6
453
#define _PCNT_INPUT_S1PRSSEL_MASK 0xC0UL
454
#define _PCNT_INPUT_S1PRSSEL_DEFAULT 0x00000000UL
455
#define _PCNT_INPUT_S1PRSSEL_PRSCH0 0x00000000UL
456
#define _PCNT_INPUT_S1PRSSEL_PRSCH1 0x00000001UL
457
#define _PCNT_INPUT_S1PRSSEL_PRSCH2 0x00000002UL
458
#define _PCNT_INPUT_S1PRSSEL_PRSCH3 0x00000003UL
459
#define PCNT_INPUT_S1PRSSEL_DEFAULT (_PCNT_INPUT_S1PRSSEL_DEFAULT << 6)
460
#define PCNT_INPUT_S1PRSSEL_PRSCH0 (_PCNT_INPUT_S1PRSSEL_PRSCH0 << 6)
461
#define PCNT_INPUT_S1PRSSEL_PRSCH1 (_PCNT_INPUT_S1PRSSEL_PRSCH1 << 6)
462
#define PCNT_INPUT_S1PRSSEL_PRSCH2 (_PCNT_INPUT_S1PRSSEL_PRSCH2 << 6)
463
#define PCNT_INPUT_S1PRSSEL_PRSCH3 (_PCNT_INPUT_S1PRSSEL_PRSCH3 << 6)
464
#define PCNT_INPUT_S1PRSEN (0x1UL << 10)
465
#define _PCNT_INPUT_S1PRSEN_SHIFT 10
466
#define _PCNT_INPUT_S1PRSEN_MASK 0x400UL
467
#define _PCNT_INPUT_S1PRSEN_DEFAULT 0x00000000UL
468
#define PCNT_INPUT_S1PRSEN_DEFAULT (_PCNT_INPUT_S1PRSEN_DEFAULT << 10)
PCNT_TypeDef::TOP
__IM uint32_t TOP
Definition:
efm32zg_pcnt.h:47
PCNT_TypeDef::INPUT
__IOM uint32_t INPUT
Definition:
efm32zg_pcnt.h:60
PCNT_TypeDef::ROUTE
__IOM uint32_t ROUTE
Definition:
efm32zg_pcnt.h:53
PCNT_TypeDef::IFC
__IOM uint32_t IFC
Definition:
efm32zg_pcnt.h:51
PCNT_TypeDef
Definition:
efm32zg_pcnt.h:41
PCNT_TypeDef::CMD
__IOM uint32_t CMD
Definition:
efm32zg_pcnt.h:44
PCNT_TypeDef::SYNCBUSY
__IM uint32_t SYNCBUSY
Definition:
efm32zg_pcnt.h:56
PCNT_TypeDef::STATUS
__IM uint32_t STATUS
Definition:
efm32zg_pcnt.h:45
PCNT_TypeDef::IF
__IM uint32_t IF
Definition:
efm32zg_pcnt.h:49
PCNT_TypeDef::TOPB
__IOM uint32_t TOPB
Definition:
efm32zg_pcnt.h:48
PCNT_TypeDef::CNT
__IM uint32_t CNT
Definition:
efm32zg_pcnt.h:46
PCNT_TypeDef::CTRL
__IOM uint32_t CTRL
Definition:
efm32zg_pcnt.h:43
PCNT_TypeDef::AUXCNT
__IOM uint32_t AUXCNT
Definition:
efm32zg_pcnt.h:59
PCNT_TypeDef::FREEZE
__IOM uint32_t FREEZE
Definition:
efm32zg_pcnt.h:55
PCNT_TypeDef::IFS
__IOM uint32_t IFS
Definition:
efm32zg_pcnt.h:50
PCNT_TypeDef::IEN
__IOM uint32_t IEN
Definition:
efm32zg_pcnt.h:52
platform
Device
SiliconLabs
EFM32ZG
Include
efm32zg_pcnt.h
Generated on Thu Mar 9 2017 20:40:03 for EFM32 Zero Gecko Software Documentation by
1.8.10