EFM32 Happy Gecko Software Documentation
efm32hg-doc-5.1.2
Main Page
Modules
Files
Documentation Home
silabs.com
File List
efm32hg_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 0xFECCCF7FUL
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 0xE0000000UL
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_PRSCH4 0x00000004UL
204
#define _PCNT_CTRL_TCCPRSSEL_PRSCH5 0x00000005UL
205
#define PCNT_CTRL_TCCPRSSEL_DEFAULT (_PCNT_CTRL_TCCPRSSEL_DEFAULT << 29)
206
#define PCNT_CTRL_TCCPRSSEL_PRSCH0 (_PCNT_CTRL_TCCPRSSEL_PRSCH0 << 29)
207
#define PCNT_CTRL_TCCPRSSEL_PRSCH1 (_PCNT_CTRL_TCCPRSSEL_PRSCH1 << 29)
208
#define PCNT_CTRL_TCCPRSSEL_PRSCH2 (_PCNT_CTRL_TCCPRSSEL_PRSCH2 << 29)
209
#define PCNT_CTRL_TCCPRSSEL_PRSCH3 (_PCNT_CTRL_TCCPRSSEL_PRSCH3 << 29)
210
#define PCNT_CTRL_TCCPRSSEL_PRSCH4 (_PCNT_CTRL_TCCPRSSEL_PRSCH4 << 29)
211
#define PCNT_CTRL_TCCPRSSEL_PRSCH5 (_PCNT_CTRL_TCCPRSSEL_PRSCH5 << 29)
213
/* Bit fields for PCNT CMD */
214
#define _PCNT_CMD_RESETVALUE 0x00000000UL
215
#define _PCNT_CMD_MASK 0x00000003UL
216
#define PCNT_CMD_LCNTIM (0x1UL << 0)
217
#define _PCNT_CMD_LCNTIM_SHIFT 0
218
#define _PCNT_CMD_LCNTIM_MASK 0x1UL
219
#define _PCNT_CMD_LCNTIM_DEFAULT 0x00000000UL
220
#define PCNT_CMD_LCNTIM_DEFAULT (_PCNT_CMD_LCNTIM_DEFAULT << 0)
221
#define PCNT_CMD_LTOPBIM (0x1UL << 1)
222
#define _PCNT_CMD_LTOPBIM_SHIFT 1
223
#define _PCNT_CMD_LTOPBIM_MASK 0x2UL
224
#define _PCNT_CMD_LTOPBIM_DEFAULT 0x00000000UL
225
#define PCNT_CMD_LTOPBIM_DEFAULT (_PCNT_CMD_LTOPBIM_DEFAULT << 1)
227
/* Bit fields for PCNT STATUS */
228
#define _PCNT_STATUS_RESETVALUE 0x00000000UL
229
#define _PCNT_STATUS_MASK 0x00000001UL
230
#define PCNT_STATUS_DIR (0x1UL << 0)
231
#define _PCNT_STATUS_DIR_SHIFT 0
232
#define _PCNT_STATUS_DIR_MASK 0x1UL
233
#define _PCNT_STATUS_DIR_DEFAULT 0x00000000UL
234
#define _PCNT_STATUS_DIR_UP 0x00000000UL
235
#define _PCNT_STATUS_DIR_DOWN 0x00000001UL
236
#define PCNT_STATUS_DIR_DEFAULT (_PCNT_STATUS_DIR_DEFAULT << 0)
237
#define PCNT_STATUS_DIR_UP (_PCNT_STATUS_DIR_UP << 0)
238
#define PCNT_STATUS_DIR_DOWN (_PCNT_STATUS_DIR_DOWN << 0)
240
/* Bit fields for PCNT CNT */
241
#define _PCNT_CNT_RESETVALUE 0x00000000UL
242
#define _PCNT_CNT_MASK 0x0000FFFFUL
243
#define _PCNT_CNT_CNT_SHIFT 0
244
#define _PCNT_CNT_CNT_MASK 0xFFFFUL
245
#define _PCNT_CNT_CNT_DEFAULT 0x00000000UL
246
#define PCNT_CNT_CNT_DEFAULT (_PCNT_CNT_CNT_DEFAULT << 0)
248
/* Bit fields for PCNT TOP */
249
#define _PCNT_TOP_RESETVALUE 0x000000FFUL
250
#define _PCNT_TOP_MASK 0x0000FFFFUL
251
#define _PCNT_TOP_TOP_SHIFT 0
252
#define _PCNT_TOP_TOP_MASK 0xFFFFUL
253
#define _PCNT_TOP_TOP_DEFAULT 0x000000FFUL
254
#define PCNT_TOP_TOP_DEFAULT (_PCNT_TOP_TOP_DEFAULT << 0)
256
/* Bit fields for PCNT TOPB */
257
#define _PCNT_TOPB_RESETVALUE 0x000000FFUL
258
#define _PCNT_TOPB_MASK 0x0000FFFFUL
259
#define _PCNT_TOPB_TOPB_SHIFT 0
260
#define _PCNT_TOPB_TOPB_MASK 0xFFFFUL
261
#define _PCNT_TOPB_TOPB_DEFAULT 0x000000FFUL
262
#define PCNT_TOPB_TOPB_DEFAULT (_PCNT_TOPB_TOPB_DEFAULT << 0)
264
/* Bit fields for PCNT IF */
265
#define _PCNT_IF_RESETVALUE 0x00000000UL
266
#define _PCNT_IF_MASK 0x0000001FUL
267
#define PCNT_IF_UF (0x1UL << 0)
268
#define _PCNT_IF_UF_SHIFT 0
269
#define _PCNT_IF_UF_MASK 0x1UL
270
#define _PCNT_IF_UF_DEFAULT 0x00000000UL
271
#define PCNT_IF_UF_DEFAULT (_PCNT_IF_UF_DEFAULT << 0)
272
#define PCNT_IF_OF (0x1UL << 1)
273
#define _PCNT_IF_OF_SHIFT 1
274
#define _PCNT_IF_OF_MASK 0x2UL
275
#define _PCNT_IF_OF_DEFAULT 0x00000000UL
276
#define PCNT_IF_OF_DEFAULT (_PCNT_IF_OF_DEFAULT << 1)
277
#define PCNT_IF_DIRCNG (0x1UL << 2)
278
#define _PCNT_IF_DIRCNG_SHIFT 2
279
#define _PCNT_IF_DIRCNG_MASK 0x4UL
280
#define _PCNT_IF_DIRCNG_DEFAULT 0x00000000UL
281
#define PCNT_IF_DIRCNG_DEFAULT (_PCNT_IF_DIRCNG_DEFAULT << 2)
282
#define PCNT_IF_AUXOF (0x1UL << 3)
283
#define _PCNT_IF_AUXOF_SHIFT 3
284
#define _PCNT_IF_AUXOF_MASK 0x8UL
285
#define _PCNT_IF_AUXOF_DEFAULT 0x00000000UL
286
#define PCNT_IF_AUXOF_DEFAULT (_PCNT_IF_AUXOF_DEFAULT << 3)
287
#define PCNT_IF_TCC (0x1UL << 4)
288
#define _PCNT_IF_TCC_SHIFT 4
289
#define _PCNT_IF_TCC_MASK 0x10UL
290
#define _PCNT_IF_TCC_DEFAULT 0x00000000UL
291
#define PCNT_IF_TCC_DEFAULT (_PCNT_IF_TCC_DEFAULT << 4)
293
/* Bit fields for PCNT IFS */
294
#define _PCNT_IFS_RESETVALUE 0x00000000UL
295
#define _PCNT_IFS_MASK 0x0000001FUL
296
#define PCNT_IFS_UF (0x1UL << 0)
297
#define _PCNT_IFS_UF_SHIFT 0
298
#define _PCNT_IFS_UF_MASK 0x1UL
299
#define _PCNT_IFS_UF_DEFAULT 0x00000000UL
300
#define PCNT_IFS_UF_DEFAULT (_PCNT_IFS_UF_DEFAULT << 0)
301
#define PCNT_IFS_OF (0x1UL << 1)
302
#define _PCNT_IFS_OF_SHIFT 1
303
#define _PCNT_IFS_OF_MASK 0x2UL
304
#define _PCNT_IFS_OF_DEFAULT 0x00000000UL
305
#define PCNT_IFS_OF_DEFAULT (_PCNT_IFS_OF_DEFAULT << 1)
306
#define PCNT_IFS_DIRCNG (0x1UL << 2)
307
#define _PCNT_IFS_DIRCNG_SHIFT 2
308
#define _PCNT_IFS_DIRCNG_MASK 0x4UL
309
#define _PCNT_IFS_DIRCNG_DEFAULT 0x00000000UL
310
#define PCNT_IFS_DIRCNG_DEFAULT (_PCNT_IFS_DIRCNG_DEFAULT << 2)
311
#define PCNT_IFS_AUXOF (0x1UL << 3)
312
#define _PCNT_IFS_AUXOF_SHIFT 3
313
#define _PCNT_IFS_AUXOF_MASK 0x8UL
314
#define _PCNT_IFS_AUXOF_DEFAULT 0x00000000UL
315
#define PCNT_IFS_AUXOF_DEFAULT (_PCNT_IFS_AUXOF_DEFAULT << 3)
316
#define PCNT_IFS_TCC (0x1UL << 4)
317
#define _PCNT_IFS_TCC_SHIFT 4
318
#define _PCNT_IFS_TCC_MASK 0x10UL
319
#define _PCNT_IFS_TCC_DEFAULT 0x00000000UL
320
#define PCNT_IFS_TCC_DEFAULT (_PCNT_IFS_TCC_DEFAULT << 4)
322
/* Bit fields for PCNT IFC */
323
#define _PCNT_IFC_RESETVALUE 0x00000000UL
324
#define _PCNT_IFC_MASK 0x0000001FUL
325
#define PCNT_IFC_UF (0x1UL << 0)
326
#define _PCNT_IFC_UF_SHIFT 0
327
#define _PCNT_IFC_UF_MASK 0x1UL
328
#define _PCNT_IFC_UF_DEFAULT 0x00000000UL
329
#define PCNT_IFC_UF_DEFAULT (_PCNT_IFC_UF_DEFAULT << 0)
330
#define PCNT_IFC_OF (0x1UL << 1)
331
#define _PCNT_IFC_OF_SHIFT 1
332
#define _PCNT_IFC_OF_MASK 0x2UL
333
#define _PCNT_IFC_OF_DEFAULT 0x00000000UL
334
#define PCNT_IFC_OF_DEFAULT (_PCNT_IFC_OF_DEFAULT << 1)
335
#define PCNT_IFC_DIRCNG (0x1UL << 2)
336
#define _PCNT_IFC_DIRCNG_SHIFT 2
337
#define _PCNT_IFC_DIRCNG_MASK 0x4UL
338
#define _PCNT_IFC_DIRCNG_DEFAULT 0x00000000UL
339
#define PCNT_IFC_DIRCNG_DEFAULT (_PCNT_IFC_DIRCNG_DEFAULT << 2)
340
#define PCNT_IFC_AUXOF (0x1UL << 3)
341
#define _PCNT_IFC_AUXOF_SHIFT 3
342
#define _PCNT_IFC_AUXOF_MASK 0x8UL
343
#define _PCNT_IFC_AUXOF_DEFAULT 0x00000000UL
344
#define PCNT_IFC_AUXOF_DEFAULT (_PCNT_IFC_AUXOF_DEFAULT << 3)
345
#define PCNT_IFC_TCC (0x1UL << 4)
346
#define _PCNT_IFC_TCC_SHIFT 4
347
#define _PCNT_IFC_TCC_MASK 0x10UL
348
#define _PCNT_IFC_TCC_DEFAULT 0x00000000UL
349
#define PCNT_IFC_TCC_DEFAULT (_PCNT_IFC_TCC_DEFAULT << 4)
351
/* Bit fields for PCNT IEN */
352
#define _PCNT_IEN_RESETVALUE 0x00000000UL
353
#define _PCNT_IEN_MASK 0x0000001FUL
354
#define PCNT_IEN_UF (0x1UL << 0)
355
#define _PCNT_IEN_UF_SHIFT 0
356
#define _PCNT_IEN_UF_MASK 0x1UL
357
#define _PCNT_IEN_UF_DEFAULT 0x00000000UL
358
#define PCNT_IEN_UF_DEFAULT (_PCNT_IEN_UF_DEFAULT << 0)
359
#define PCNT_IEN_OF (0x1UL << 1)
360
#define _PCNT_IEN_OF_SHIFT 1
361
#define _PCNT_IEN_OF_MASK 0x2UL
362
#define _PCNT_IEN_OF_DEFAULT 0x00000000UL
363
#define PCNT_IEN_OF_DEFAULT (_PCNT_IEN_OF_DEFAULT << 1)
364
#define PCNT_IEN_DIRCNG (0x1UL << 2)
365
#define _PCNT_IEN_DIRCNG_SHIFT 2
366
#define _PCNT_IEN_DIRCNG_MASK 0x4UL
367
#define _PCNT_IEN_DIRCNG_DEFAULT 0x00000000UL
368
#define PCNT_IEN_DIRCNG_DEFAULT (_PCNT_IEN_DIRCNG_DEFAULT << 2)
369
#define PCNT_IEN_AUXOF (0x1UL << 3)
370
#define _PCNT_IEN_AUXOF_SHIFT 3
371
#define _PCNT_IEN_AUXOF_MASK 0x8UL
372
#define _PCNT_IEN_AUXOF_DEFAULT 0x00000000UL
373
#define PCNT_IEN_AUXOF_DEFAULT (_PCNT_IEN_AUXOF_DEFAULT << 3)
374
#define PCNT_IEN_TCC (0x1UL << 4)
375
#define _PCNT_IEN_TCC_SHIFT 4
376
#define _PCNT_IEN_TCC_MASK 0x10UL
377
#define _PCNT_IEN_TCC_DEFAULT 0x00000000UL
378
#define PCNT_IEN_TCC_DEFAULT (_PCNT_IEN_TCC_DEFAULT << 4)
380
/* Bit fields for PCNT ROUTE */
381
#define _PCNT_ROUTE_RESETVALUE 0x00000000UL
382
#define _PCNT_ROUTE_MASK 0x00000700UL
383
#define _PCNT_ROUTE_LOCATION_SHIFT 8
384
#define _PCNT_ROUTE_LOCATION_MASK 0x700UL
385
#define _PCNT_ROUTE_LOCATION_LOC0 0x00000000UL
386
#define _PCNT_ROUTE_LOCATION_DEFAULT 0x00000000UL
387
#define _PCNT_ROUTE_LOCATION_LOC1 0x00000001UL
388
#define _PCNT_ROUTE_LOCATION_LOC2 0x00000002UL
389
#define _PCNT_ROUTE_LOCATION_LOC3 0x00000003UL
390
#define _PCNT_ROUTE_LOCATION_LOC4 0x00000004UL
391
#define PCNT_ROUTE_LOCATION_LOC0 (_PCNT_ROUTE_LOCATION_LOC0 << 8)
392
#define PCNT_ROUTE_LOCATION_DEFAULT (_PCNT_ROUTE_LOCATION_DEFAULT << 8)
393
#define PCNT_ROUTE_LOCATION_LOC1 (_PCNT_ROUTE_LOCATION_LOC1 << 8)
394
#define PCNT_ROUTE_LOCATION_LOC2 (_PCNT_ROUTE_LOCATION_LOC2 << 8)
395
#define PCNT_ROUTE_LOCATION_LOC3 (_PCNT_ROUTE_LOCATION_LOC3 << 8)
396
#define PCNT_ROUTE_LOCATION_LOC4 (_PCNT_ROUTE_LOCATION_LOC4 << 8)
398
/* Bit fields for PCNT FREEZE */
399
#define _PCNT_FREEZE_RESETVALUE 0x00000000UL
400
#define _PCNT_FREEZE_MASK 0x00000001UL
401
#define PCNT_FREEZE_REGFREEZE (0x1UL << 0)
402
#define _PCNT_FREEZE_REGFREEZE_SHIFT 0
403
#define _PCNT_FREEZE_REGFREEZE_MASK 0x1UL
404
#define _PCNT_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
405
#define _PCNT_FREEZE_REGFREEZE_UPDATE 0x00000000UL
406
#define _PCNT_FREEZE_REGFREEZE_FREEZE 0x00000001UL
407
#define PCNT_FREEZE_REGFREEZE_DEFAULT (_PCNT_FREEZE_REGFREEZE_DEFAULT << 0)
408
#define PCNT_FREEZE_REGFREEZE_UPDATE (_PCNT_FREEZE_REGFREEZE_UPDATE << 0)
409
#define PCNT_FREEZE_REGFREEZE_FREEZE (_PCNT_FREEZE_REGFREEZE_FREEZE << 0)
411
/* Bit fields for PCNT SYNCBUSY */
412
#define _PCNT_SYNCBUSY_RESETVALUE 0x00000000UL
413
#define _PCNT_SYNCBUSY_MASK 0x00000007UL
414
#define PCNT_SYNCBUSY_CTRL (0x1UL << 0)
415
#define _PCNT_SYNCBUSY_CTRL_SHIFT 0
416
#define _PCNT_SYNCBUSY_CTRL_MASK 0x1UL
417
#define _PCNT_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
418
#define PCNT_SYNCBUSY_CTRL_DEFAULT (_PCNT_SYNCBUSY_CTRL_DEFAULT << 0)
419
#define PCNT_SYNCBUSY_CMD (0x1UL << 1)
420
#define _PCNT_SYNCBUSY_CMD_SHIFT 1
421
#define _PCNT_SYNCBUSY_CMD_MASK 0x2UL
422
#define _PCNT_SYNCBUSY_CMD_DEFAULT 0x00000000UL
423
#define PCNT_SYNCBUSY_CMD_DEFAULT (_PCNT_SYNCBUSY_CMD_DEFAULT << 1)
424
#define PCNT_SYNCBUSY_TOPB (0x1UL << 2)
425
#define _PCNT_SYNCBUSY_TOPB_SHIFT 2
426
#define _PCNT_SYNCBUSY_TOPB_MASK 0x4UL
427
#define _PCNT_SYNCBUSY_TOPB_DEFAULT 0x00000000UL
428
#define PCNT_SYNCBUSY_TOPB_DEFAULT (_PCNT_SYNCBUSY_TOPB_DEFAULT << 2)
430
/* Bit fields for PCNT AUXCNT */
431
#define _PCNT_AUXCNT_RESETVALUE 0x00000000UL
432
#define _PCNT_AUXCNT_MASK 0x0000FFFFUL
433
#define _PCNT_AUXCNT_AUXCNT_SHIFT 0
434
#define _PCNT_AUXCNT_AUXCNT_MASK 0xFFFFUL
435
#define _PCNT_AUXCNT_AUXCNT_DEFAULT 0x00000000UL
436
#define PCNT_AUXCNT_AUXCNT_DEFAULT (_PCNT_AUXCNT_AUXCNT_DEFAULT << 0)
438
/* Bit fields for PCNT INPUT */
439
#define _PCNT_INPUT_RESETVALUE 0x00000000UL
440
#define _PCNT_INPUT_MASK 0x000005D7UL
441
#define _PCNT_INPUT_S0PRSSEL_SHIFT 0
442
#define _PCNT_INPUT_S0PRSSEL_MASK 0x7UL
443
#define _PCNT_INPUT_S0PRSSEL_DEFAULT 0x00000000UL
444
#define _PCNT_INPUT_S0PRSSEL_PRSCH0 0x00000000UL
445
#define _PCNT_INPUT_S0PRSSEL_PRSCH1 0x00000001UL
446
#define _PCNT_INPUT_S0PRSSEL_PRSCH2 0x00000002UL
447
#define _PCNT_INPUT_S0PRSSEL_PRSCH3 0x00000003UL
448
#define _PCNT_INPUT_S0PRSSEL_PRSCH4 0x00000004UL
449
#define _PCNT_INPUT_S0PRSSEL_PRSCH5 0x00000005UL
450
#define PCNT_INPUT_S0PRSSEL_DEFAULT (_PCNT_INPUT_S0PRSSEL_DEFAULT << 0)
451
#define PCNT_INPUT_S0PRSSEL_PRSCH0 (_PCNT_INPUT_S0PRSSEL_PRSCH0 << 0)
452
#define PCNT_INPUT_S0PRSSEL_PRSCH1 (_PCNT_INPUT_S0PRSSEL_PRSCH1 << 0)
453
#define PCNT_INPUT_S0PRSSEL_PRSCH2 (_PCNT_INPUT_S0PRSSEL_PRSCH2 << 0)
454
#define PCNT_INPUT_S0PRSSEL_PRSCH3 (_PCNT_INPUT_S0PRSSEL_PRSCH3 << 0)
455
#define PCNT_INPUT_S0PRSSEL_PRSCH4 (_PCNT_INPUT_S0PRSSEL_PRSCH4 << 0)
456
#define PCNT_INPUT_S0PRSSEL_PRSCH5 (_PCNT_INPUT_S0PRSSEL_PRSCH5 << 0)
457
#define PCNT_INPUT_S0PRSEN (0x1UL << 4)
458
#define _PCNT_INPUT_S0PRSEN_SHIFT 4
459
#define _PCNT_INPUT_S0PRSEN_MASK 0x10UL
460
#define _PCNT_INPUT_S0PRSEN_DEFAULT 0x00000000UL
461
#define PCNT_INPUT_S0PRSEN_DEFAULT (_PCNT_INPUT_S0PRSEN_DEFAULT << 4)
462
#define _PCNT_INPUT_S1PRSSEL_SHIFT 6
463
#define _PCNT_INPUT_S1PRSSEL_MASK 0x1C0UL
464
#define _PCNT_INPUT_S1PRSSEL_DEFAULT 0x00000000UL
465
#define _PCNT_INPUT_S1PRSSEL_PRSCH0 0x00000000UL
466
#define _PCNT_INPUT_S1PRSSEL_PRSCH1 0x00000001UL
467
#define _PCNT_INPUT_S1PRSSEL_PRSCH2 0x00000002UL
468
#define _PCNT_INPUT_S1PRSSEL_PRSCH3 0x00000003UL
469
#define _PCNT_INPUT_S1PRSSEL_PRSCH4 0x00000004UL
470
#define _PCNT_INPUT_S1PRSSEL_PRSCH5 0x00000005UL
471
#define PCNT_INPUT_S1PRSSEL_DEFAULT (_PCNT_INPUT_S1PRSSEL_DEFAULT << 6)
472
#define PCNT_INPUT_S1PRSSEL_PRSCH0 (_PCNT_INPUT_S1PRSSEL_PRSCH0 << 6)
473
#define PCNT_INPUT_S1PRSSEL_PRSCH1 (_PCNT_INPUT_S1PRSSEL_PRSCH1 << 6)
474
#define PCNT_INPUT_S1PRSSEL_PRSCH2 (_PCNT_INPUT_S1PRSSEL_PRSCH2 << 6)
475
#define PCNT_INPUT_S1PRSSEL_PRSCH3 (_PCNT_INPUT_S1PRSSEL_PRSCH3 << 6)
476
#define PCNT_INPUT_S1PRSSEL_PRSCH4 (_PCNT_INPUT_S1PRSSEL_PRSCH4 << 6)
477
#define PCNT_INPUT_S1PRSSEL_PRSCH5 (_PCNT_INPUT_S1PRSSEL_PRSCH5 << 6)
478
#define PCNT_INPUT_S1PRSEN (0x1UL << 10)
479
#define _PCNT_INPUT_S1PRSEN_SHIFT 10
480
#define _PCNT_INPUT_S1PRSEN_MASK 0x400UL
481
#define _PCNT_INPUT_S1PRSEN_DEFAULT 0x00000000UL
482
#define PCNT_INPUT_S1PRSEN_DEFAULT (_PCNT_INPUT_S1PRSEN_DEFAULT << 10)
PCNT_TypeDef::TOP
__IM uint32_t TOP
Definition:
efm32hg_pcnt.h:47
PCNT_TypeDef::INPUT
__IOM uint32_t INPUT
Definition:
efm32hg_pcnt.h:60
PCNT_TypeDef::ROUTE
__IOM uint32_t ROUTE
Definition:
efm32hg_pcnt.h:53
PCNT_TypeDef::IFC
__IOM uint32_t IFC
Definition:
efm32hg_pcnt.h:51
PCNT_TypeDef
Definition:
efm32hg_pcnt.h:41
PCNT_TypeDef::CMD
__IOM uint32_t CMD
Definition:
efm32hg_pcnt.h:44
PCNT_TypeDef::SYNCBUSY
__IM uint32_t SYNCBUSY
Definition:
efm32hg_pcnt.h:56
PCNT_TypeDef::STATUS
__IM uint32_t STATUS
Definition:
efm32hg_pcnt.h:45
PCNT_TypeDef::IF
__IM uint32_t IF
Definition:
efm32hg_pcnt.h:49
PCNT_TypeDef::TOPB
__IOM uint32_t TOPB
Definition:
efm32hg_pcnt.h:48
PCNT_TypeDef::CNT
__IM uint32_t CNT
Definition:
efm32hg_pcnt.h:46
PCNT_TypeDef::CTRL
__IOM uint32_t CTRL
Definition:
efm32hg_pcnt.h:43
PCNT_TypeDef::AUXCNT
__IOM uint32_t AUXCNT
Definition:
efm32hg_pcnt.h:59
PCNT_TypeDef::FREEZE
__IOM uint32_t FREEZE
Definition:
efm32hg_pcnt.h:55
PCNT_TypeDef::IFS
__IOM uint32_t IFS
Definition:
efm32hg_pcnt.h:50
PCNT_TypeDef::IEN
__IOM uint32_t IEN
Definition:
efm32hg_pcnt.h:52
platform
Device
SiliconLabs
EFM32HG
Include
efm32hg_pcnt.h
Generated on Thu Mar 9 2017 20:44:09 for EFM32 Happy Gecko Software Documentation by
1.8.10