1 /***************************************************************************//** 2 * @file 3 * @brief EFM32GG11B_PCNT register and bit field definitions 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 31 #if defined(__ICCARM__) 32 #pragma system_include /* Treat file as system include file. */ 33 #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) 34 #pragma clang system_header /* Treat file as system include file. */ 35 #endif 36 37 /***************************************************************************//** 38 * @addtogroup Parts 39 * @{ 40 ******************************************************************************/ 41 /***************************************************************************//** 42 * @defgroup EFM32GG11B_PCNT PCNT 43 * @{ 44 * @brief EFM32GG11B_PCNT Register Declaration 45 ******************************************************************************/ 46 /** PCNT Register Declaration */ 47 typedef struct { 48 __IOM uint32_t CTRL; /**< Control Register */ 49 __IOM uint32_t CMD; /**< Command Register */ 50 __IM uint32_t STATUS; /**< Status Register */ 51 __IM uint32_t CNT; /**< Counter Value Register */ 52 __IM uint32_t TOP; /**< Top Value Register */ 53 __IOM uint32_t TOPB; /**< Top Value Buffer Register */ 54 __IM uint32_t IF; /**< Interrupt Flag Register */ 55 __IOM uint32_t IFS; /**< Interrupt Flag Set Register */ 56 __IOM uint32_t IFC; /**< Interrupt Flag Clear Register */ 57 __IOM uint32_t IEN; /**< Interrupt Enable Register */ 58 uint32_t RESERVED0[1U]; /**< Reserved for future use **/ 59 __IOM uint32_t ROUTELOC0; /**< I/O Routing Location Register */ 60 61 uint32_t RESERVED1[4U]; /**< Reserved for future use **/ 62 __IOM uint32_t FREEZE; /**< Freeze Register */ 63 __IM uint32_t SYNCBUSY; /**< Synchronization Busy Register */ 64 65 uint32_t RESERVED2[7U]; /**< Reserved for future use **/ 66 __IM uint32_t AUXCNT; /**< Auxiliary Counter Value Register */ 67 __IOM uint32_t INPUT; /**< PCNT Input Register */ 68 __IOM uint32_t OVSCFG; /**< Oversampling Config Register */ 69 } PCNT_TypeDef; /** @} */ 70 71 /***************************************************************************//** 72 * @addtogroup EFM32GG11B_PCNT 73 * @{ 74 * @defgroup EFM32GG11B_PCNT_BitFields PCNT Bit Fields 75 * @{ 76 ******************************************************************************/ 77 78 /* Bit fields for PCNT CTRL */ 79 #define _PCNT_CTRL_RESETVALUE 0x00000000UL /**< Default value for PCNT_CTRL */ 80 #define _PCNT_CTRL_MASK 0xFFDBFFFFUL /**< Mask for PCNT_CTRL */ 81 #define _PCNT_CTRL_MODE_SHIFT 0 /**< Shift value for PCNT_MODE */ 82 #define _PCNT_CTRL_MODE_MASK 0x7UL /**< Bit mask for PCNT_MODE */ 83 #define _PCNT_CTRL_MODE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 84 #define _PCNT_CTRL_MODE_DISABLE 0x00000000UL /**< Mode DISABLE for PCNT_CTRL */ 85 #define _PCNT_CTRL_MODE_OVSSINGLE 0x00000001UL /**< Mode OVSSINGLE for PCNT_CTRL */ 86 #define _PCNT_CTRL_MODE_EXTCLKSINGLE 0x00000002UL /**< Mode EXTCLKSINGLE for PCNT_CTRL */ 87 #define _PCNT_CTRL_MODE_EXTCLKQUAD 0x00000003UL /**< Mode EXTCLKQUAD for PCNT_CTRL */ 88 #define _PCNT_CTRL_MODE_OVSQUAD1X 0x00000004UL /**< Mode OVSQUAD1X for PCNT_CTRL */ 89 #define _PCNT_CTRL_MODE_OVSQUAD2X 0x00000005UL /**< Mode OVSQUAD2X for PCNT_CTRL */ 90 #define _PCNT_CTRL_MODE_OVSQUAD4X 0x00000006UL /**< Mode OVSQUAD4X for PCNT_CTRL */ 91 #define PCNT_CTRL_MODE_DEFAULT (_PCNT_CTRL_MODE_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_CTRL */ 92 #define PCNT_CTRL_MODE_DISABLE (_PCNT_CTRL_MODE_DISABLE << 0) /**< Shifted mode DISABLE for PCNT_CTRL */ 93 #define PCNT_CTRL_MODE_OVSSINGLE (_PCNT_CTRL_MODE_OVSSINGLE << 0) /**< Shifted mode OVSSINGLE for PCNT_CTRL */ 94 #define PCNT_CTRL_MODE_EXTCLKSINGLE (_PCNT_CTRL_MODE_EXTCLKSINGLE << 0) /**< Shifted mode EXTCLKSINGLE for PCNT_CTRL */ 95 #define PCNT_CTRL_MODE_EXTCLKQUAD (_PCNT_CTRL_MODE_EXTCLKQUAD << 0) /**< Shifted mode EXTCLKQUAD for PCNT_CTRL */ 96 #define PCNT_CTRL_MODE_OVSQUAD1X (_PCNT_CTRL_MODE_OVSQUAD1X << 0) /**< Shifted mode OVSQUAD1X for PCNT_CTRL */ 97 #define PCNT_CTRL_MODE_OVSQUAD2X (_PCNT_CTRL_MODE_OVSQUAD2X << 0) /**< Shifted mode OVSQUAD2X for PCNT_CTRL */ 98 #define PCNT_CTRL_MODE_OVSQUAD4X (_PCNT_CTRL_MODE_OVSQUAD4X << 0) /**< Shifted mode OVSQUAD4X for PCNT_CTRL */ 99 #define PCNT_CTRL_FILT (0x1UL << 3) /**< Enable Digital Pulse Width Filter */ 100 #define _PCNT_CTRL_FILT_SHIFT 3 /**< Shift value for PCNT_FILT */ 101 #define _PCNT_CTRL_FILT_MASK 0x8UL /**< Bit mask for PCNT_FILT */ 102 #define _PCNT_CTRL_FILT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 103 #define PCNT_CTRL_FILT_DEFAULT (_PCNT_CTRL_FILT_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_CTRL */ 104 #define PCNT_CTRL_RSTEN (0x1UL << 4) /**< Enable PCNT Clock Domain Reset */ 105 #define _PCNT_CTRL_RSTEN_SHIFT 4 /**< Shift value for PCNT_RSTEN */ 106 #define _PCNT_CTRL_RSTEN_MASK 0x10UL /**< Bit mask for PCNT_RSTEN */ 107 #define _PCNT_CTRL_RSTEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 108 #define PCNT_CTRL_RSTEN_DEFAULT (_PCNT_CTRL_RSTEN_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_CTRL */ 109 #define PCNT_CTRL_CNTRSTEN (0x1UL << 5) /**< Enable CNT Reset */ 110 #define _PCNT_CTRL_CNTRSTEN_SHIFT 5 /**< Shift value for PCNT_CNTRSTEN */ 111 #define _PCNT_CTRL_CNTRSTEN_MASK 0x20UL /**< Bit mask for PCNT_CNTRSTEN */ 112 #define _PCNT_CTRL_CNTRSTEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 113 #define PCNT_CTRL_CNTRSTEN_DEFAULT (_PCNT_CTRL_CNTRSTEN_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_CTRL */ 114 #define PCNT_CTRL_AUXCNTRSTEN (0x1UL << 6) /**< Enable AUXCNT Reset */ 115 #define _PCNT_CTRL_AUXCNTRSTEN_SHIFT 6 /**< Shift value for PCNT_AUXCNTRSTEN */ 116 #define _PCNT_CTRL_AUXCNTRSTEN_MASK 0x40UL /**< Bit mask for PCNT_AUXCNTRSTEN */ 117 #define _PCNT_CTRL_AUXCNTRSTEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 118 #define PCNT_CTRL_AUXCNTRSTEN_DEFAULT (_PCNT_CTRL_AUXCNTRSTEN_DEFAULT << 6) /**< Shifted mode DEFAULT for PCNT_CTRL */ 119 #define PCNT_CTRL_DEBUGHALT (0x1UL << 7) /**< Debug Mode Halt Enable */ 120 #define _PCNT_CTRL_DEBUGHALT_SHIFT 7 /**< Shift value for PCNT_DEBUGHALT */ 121 #define _PCNT_CTRL_DEBUGHALT_MASK 0x80UL /**< Bit mask for PCNT_DEBUGHALT */ 122 #define _PCNT_CTRL_DEBUGHALT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 123 #define PCNT_CTRL_DEBUGHALT_DEFAULT (_PCNT_CTRL_DEBUGHALT_DEFAULT << 7) /**< Shifted mode DEFAULT for PCNT_CTRL */ 124 #define PCNT_CTRL_HYST (0x1UL << 8) /**< Enable Hysteresis */ 125 #define _PCNT_CTRL_HYST_SHIFT 8 /**< Shift value for PCNT_HYST */ 126 #define _PCNT_CTRL_HYST_MASK 0x100UL /**< Bit mask for PCNT_HYST */ 127 #define _PCNT_CTRL_HYST_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 128 #define PCNT_CTRL_HYST_DEFAULT (_PCNT_CTRL_HYST_DEFAULT << 8) /**< Shifted mode DEFAULT for PCNT_CTRL */ 129 #define PCNT_CTRL_S1CDIR (0x1UL << 9) /**< Count Direction Determined By S1 */ 130 #define _PCNT_CTRL_S1CDIR_SHIFT 9 /**< Shift value for PCNT_S1CDIR */ 131 #define _PCNT_CTRL_S1CDIR_MASK 0x200UL /**< Bit mask for PCNT_S1CDIR */ 132 #define _PCNT_CTRL_S1CDIR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 133 #define PCNT_CTRL_S1CDIR_DEFAULT (_PCNT_CTRL_S1CDIR_DEFAULT << 9) /**< Shifted mode DEFAULT for PCNT_CTRL */ 134 #define _PCNT_CTRL_CNTEV_SHIFT 10 /**< Shift value for PCNT_CNTEV */ 135 #define _PCNT_CTRL_CNTEV_MASK 0xC00UL /**< Bit mask for PCNT_CNTEV */ 136 #define _PCNT_CTRL_CNTEV_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 137 #define _PCNT_CTRL_CNTEV_BOTH 0x00000000UL /**< Mode BOTH for PCNT_CTRL */ 138 #define _PCNT_CTRL_CNTEV_UP 0x00000001UL /**< Mode UP for PCNT_CTRL */ 139 #define _PCNT_CTRL_CNTEV_DOWN 0x00000002UL /**< Mode DOWN for PCNT_CTRL */ 140 #define _PCNT_CTRL_CNTEV_NONE 0x00000003UL /**< Mode NONE for PCNT_CTRL */ 141 #define PCNT_CTRL_CNTEV_DEFAULT (_PCNT_CTRL_CNTEV_DEFAULT << 10) /**< Shifted mode DEFAULT for PCNT_CTRL */ 142 #define PCNT_CTRL_CNTEV_BOTH (_PCNT_CTRL_CNTEV_BOTH << 10) /**< Shifted mode BOTH for PCNT_CTRL */ 143 #define PCNT_CTRL_CNTEV_UP (_PCNT_CTRL_CNTEV_UP << 10) /**< Shifted mode UP for PCNT_CTRL */ 144 #define PCNT_CTRL_CNTEV_DOWN (_PCNT_CTRL_CNTEV_DOWN << 10) /**< Shifted mode DOWN for PCNT_CTRL */ 145 #define PCNT_CTRL_CNTEV_NONE (_PCNT_CTRL_CNTEV_NONE << 10) /**< Shifted mode NONE for PCNT_CTRL */ 146 #define _PCNT_CTRL_AUXCNTEV_SHIFT 12 /**< Shift value for PCNT_AUXCNTEV */ 147 #define _PCNT_CTRL_AUXCNTEV_MASK 0x3000UL /**< Bit mask for PCNT_AUXCNTEV */ 148 #define _PCNT_CTRL_AUXCNTEV_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 149 #define _PCNT_CTRL_AUXCNTEV_NONE 0x00000000UL /**< Mode NONE for PCNT_CTRL */ 150 #define _PCNT_CTRL_AUXCNTEV_UP 0x00000001UL /**< Mode UP for PCNT_CTRL */ 151 #define _PCNT_CTRL_AUXCNTEV_DOWN 0x00000002UL /**< Mode DOWN for PCNT_CTRL */ 152 #define _PCNT_CTRL_AUXCNTEV_BOTH 0x00000003UL /**< Mode BOTH for PCNT_CTRL */ 153 #define PCNT_CTRL_AUXCNTEV_DEFAULT (_PCNT_CTRL_AUXCNTEV_DEFAULT << 12) /**< Shifted mode DEFAULT for PCNT_CTRL */ 154 #define PCNT_CTRL_AUXCNTEV_NONE (_PCNT_CTRL_AUXCNTEV_NONE << 12) /**< Shifted mode NONE for PCNT_CTRL */ 155 #define PCNT_CTRL_AUXCNTEV_UP (_PCNT_CTRL_AUXCNTEV_UP << 12) /**< Shifted mode UP for PCNT_CTRL */ 156 #define PCNT_CTRL_AUXCNTEV_DOWN (_PCNT_CTRL_AUXCNTEV_DOWN << 12) /**< Shifted mode DOWN for PCNT_CTRL */ 157 #define PCNT_CTRL_AUXCNTEV_BOTH (_PCNT_CTRL_AUXCNTEV_BOTH << 12) /**< Shifted mode BOTH for PCNT_CTRL */ 158 #define PCNT_CTRL_CNTDIR (0x1UL << 14) /**< Non-Quadrature Mode Counter Direction Control */ 159 #define _PCNT_CTRL_CNTDIR_SHIFT 14 /**< Shift value for PCNT_CNTDIR */ 160 #define _PCNT_CTRL_CNTDIR_MASK 0x4000UL /**< Bit mask for PCNT_CNTDIR */ 161 #define _PCNT_CTRL_CNTDIR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 162 #define _PCNT_CTRL_CNTDIR_UP 0x00000000UL /**< Mode UP for PCNT_CTRL */ 163 #define _PCNT_CTRL_CNTDIR_DOWN 0x00000001UL /**< Mode DOWN for PCNT_CTRL */ 164 #define PCNT_CTRL_CNTDIR_DEFAULT (_PCNT_CTRL_CNTDIR_DEFAULT << 14) /**< Shifted mode DEFAULT for PCNT_CTRL */ 165 #define PCNT_CTRL_CNTDIR_UP (_PCNT_CTRL_CNTDIR_UP << 14) /**< Shifted mode UP for PCNT_CTRL */ 166 #define PCNT_CTRL_CNTDIR_DOWN (_PCNT_CTRL_CNTDIR_DOWN << 14) /**< Shifted mode DOWN for PCNT_CTRL */ 167 #define PCNT_CTRL_EDGE (0x1UL << 15) /**< Edge Select */ 168 #define _PCNT_CTRL_EDGE_SHIFT 15 /**< Shift value for PCNT_EDGE */ 169 #define _PCNT_CTRL_EDGE_MASK 0x8000UL /**< Bit mask for PCNT_EDGE */ 170 #define _PCNT_CTRL_EDGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 171 #define _PCNT_CTRL_EDGE_POS 0x00000000UL /**< Mode POS for PCNT_CTRL */ 172 #define _PCNT_CTRL_EDGE_NEG 0x00000001UL /**< Mode NEG for PCNT_CTRL */ 173 #define PCNT_CTRL_EDGE_DEFAULT (_PCNT_CTRL_EDGE_DEFAULT << 15) /**< Shifted mode DEFAULT for PCNT_CTRL */ 174 #define PCNT_CTRL_EDGE_POS (_PCNT_CTRL_EDGE_POS << 15) /**< Shifted mode POS for PCNT_CTRL */ 175 #define PCNT_CTRL_EDGE_NEG (_PCNT_CTRL_EDGE_NEG << 15) /**< Shifted mode NEG for PCNT_CTRL */ 176 #define _PCNT_CTRL_TCCMODE_SHIFT 16 /**< Shift value for PCNT_TCCMODE */ 177 #define _PCNT_CTRL_TCCMODE_MASK 0x30000UL /**< Bit mask for PCNT_TCCMODE */ 178 #define _PCNT_CTRL_TCCMODE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 179 #define _PCNT_CTRL_TCCMODE_DISABLED 0x00000000UL /**< Mode DISABLED for PCNT_CTRL */ 180 #define _PCNT_CTRL_TCCMODE_LFA 0x00000001UL /**< Mode LFA for PCNT_CTRL */ 181 #define _PCNT_CTRL_TCCMODE_PRS 0x00000002UL /**< Mode PRS for PCNT_CTRL */ 182 #define PCNT_CTRL_TCCMODE_DEFAULT (_PCNT_CTRL_TCCMODE_DEFAULT << 16) /**< Shifted mode DEFAULT for PCNT_CTRL */ 183 #define PCNT_CTRL_TCCMODE_DISABLED (_PCNT_CTRL_TCCMODE_DISABLED << 16) /**< Shifted mode DISABLED for PCNT_CTRL */ 184 #define PCNT_CTRL_TCCMODE_LFA (_PCNT_CTRL_TCCMODE_LFA << 16) /**< Shifted mode LFA for PCNT_CTRL */ 185 #define PCNT_CTRL_TCCMODE_PRS (_PCNT_CTRL_TCCMODE_PRS << 16) /**< Shifted mode PRS for PCNT_CTRL */ 186 #define _PCNT_CTRL_TCCPRESC_SHIFT 19 /**< Shift value for PCNT_TCCPRESC */ 187 #define _PCNT_CTRL_TCCPRESC_MASK 0x180000UL /**< Bit mask for PCNT_TCCPRESC */ 188 #define _PCNT_CTRL_TCCPRESC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 189 #define _PCNT_CTRL_TCCPRESC_DIV1 0x00000000UL /**< Mode DIV1 for PCNT_CTRL */ 190 #define _PCNT_CTRL_TCCPRESC_DIV2 0x00000001UL /**< Mode DIV2 for PCNT_CTRL */ 191 #define _PCNT_CTRL_TCCPRESC_DIV4 0x00000002UL /**< Mode DIV4 for PCNT_CTRL */ 192 #define _PCNT_CTRL_TCCPRESC_DIV8 0x00000003UL /**< Mode DIV8 for PCNT_CTRL */ 193 #define PCNT_CTRL_TCCPRESC_DEFAULT (_PCNT_CTRL_TCCPRESC_DEFAULT << 19) /**< Shifted mode DEFAULT for PCNT_CTRL */ 194 #define PCNT_CTRL_TCCPRESC_DIV1 (_PCNT_CTRL_TCCPRESC_DIV1 << 19) /**< Shifted mode DIV1 for PCNT_CTRL */ 195 #define PCNT_CTRL_TCCPRESC_DIV2 (_PCNT_CTRL_TCCPRESC_DIV2 << 19) /**< Shifted mode DIV2 for PCNT_CTRL */ 196 #define PCNT_CTRL_TCCPRESC_DIV4 (_PCNT_CTRL_TCCPRESC_DIV4 << 19) /**< Shifted mode DIV4 for PCNT_CTRL */ 197 #define PCNT_CTRL_TCCPRESC_DIV8 (_PCNT_CTRL_TCCPRESC_DIV8 << 19) /**< Shifted mode DIV8 for PCNT_CTRL */ 198 #define _PCNT_CTRL_TCCCOMP_SHIFT 22 /**< Shift value for PCNT_TCCCOMP */ 199 #define _PCNT_CTRL_TCCCOMP_MASK 0xC00000UL /**< Bit mask for PCNT_TCCCOMP */ 200 #define _PCNT_CTRL_TCCCOMP_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 201 #define _PCNT_CTRL_TCCCOMP_LTOE 0x00000000UL /**< Mode LTOE for PCNT_CTRL */ 202 #define _PCNT_CTRL_TCCCOMP_GTOE 0x00000001UL /**< Mode GTOE for PCNT_CTRL */ 203 #define _PCNT_CTRL_TCCCOMP_RANGE 0x00000002UL /**< Mode RANGE for PCNT_CTRL */ 204 #define PCNT_CTRL_TCCCOMP_DEFAULT (_PCNT_CTRL_TCCCOMP_DEFAULT << 22) /**< Shifted mode DEFAULT for PCNT_CTRL */ 205 #define PCNT_CTRL_TCCCOMP_LTOE (_PCNT_CTRL_TCCCOMP_LTOE << 22) /**< Shifted mode LTOE for PCNT_CTRL */ 206 #define PCNT_CTRL_TCCCOMP_GTOE (_PCNT_CTRL_TCCCOMP_GTOE << 22) /**< Shifted mode GTOE for PCNT_CTRL */ 207 #define PCNT_CTRL_TCCCOMP_RANGE (_PCNT_CTRL_TCCCOMP_RANGE << 22) /**< Shifted mode RANGE for PCNT_CTRL */ 208 #define PCNT_CTRL_PRSGATEEN (0x1UL << 24) /**< PRS Gate Enable */ 209 #define _PCNT_CTRL_PRSGATEEN_SHIFT 24 /**< Shift value for PCNT_PRSGATEEN */ 210 #define _PCNT_CTRL_PRSGATEEN_MASK 0x1000000UL /**< Bit mask for PCNT_PRSGATEEN */ 211 #define _PCNT_CTRL_PRSGATEEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 212 #define PCNT_CTRL_PRSGATEEN_DEFAULT (_PCNT_CTRL_PRSGATEEN_DEFAULT << 24) /**< Shifted mode DEFAULT for PCNT_CTRL */ 213 #define PCNT_CTRL_TCCPRSPOL (0x1UL << 25) /**< TCC PRS Polarity Select */ 214 #define _PCNT_CTRL_TCCPRSPOL_SHIFT 25 /**< Shift value for PCNT_TCCPRSPOL */ 215 #define _PCNT_CTRL_TCCPRSPOL_MASK 0x2000000UL /**< Bit mask for PCNT_TCCPRSPOL */ 216 #define _PCNT_CTRL_TCCPRSPOL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 217 #define _PCNT_CTRL_TCCPRSPOL_RISING 0x00000000UL /**< Mode RISING for PCNT_CTRL */ 218 #define _PCNT_CTRL_TCCPRSPOL_FALLING 0x00000001UL /**< Mode FALLING for PCNT_CTRL */ 219 #define PCNT_CTRL_TCCPRSPOL_DEFAULT (_PCNT_CTRL_TCCPRSPOL_DEFAULT << 25) /**< Shifted mode DEFAULT for PCNT_CTRL */ 220 #define PCNT_CTRL_TCCPRSPOL_RISING (_PCNT_CTRL_TCCPRSPOL_RISING << 25) /**< Shifted mode RISING for PCNT_CTRL */ 221 #define PCNT_CTRL_TCCPRSPOL_FALLING (_PCNT_CTRL_TCCPRSPOL_FALLING << 25) /**< Shifted mode FALLING for PCNT_CTRL */ 222 #define _PCNT_CTRL_TCCPRSSEL_SHIFT 26 /**< Shift value for PCNT_TCCPRSSEL */ 223 #define _PCNT_CTRL_TCCPRSSEL_MASK 0x7C000000UL /**< Bit mask for PCNT_TCCPRSSEL */ 224 #define _PCNT_CTRL_TCCPRSSEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 225 #define _PCNT_CTRL_TCCPRSSEL_PRSCH0 0x00000000UL /**< Mode PRSCH0 for PCNT_CTRL */ 226 #define _PCNT_CTRL_TCCPRSSEL_PRSCH1 0x00000001UL /**< Mode PRSCH1 for PCNT_CTRL */ 227 #define _PCNT_CTRL_TCCPRSSEL_PRSCH2 0x00000002UL /**< Mode PRSCH2 for PCNT_CTRL */ 228 #define _PCNT_CTRL_TCCPRSSEL_PRSCH3 0x00000003UL /**< Mode PRSCH3 for PCNT_CTRL */ 229 #define _PCNT_CTRL_TCCPRSSEL_PRSCH4 0x00000004UL /**< Mode PRSCH4 for PCNT_CTRL */ 230 #define _PCNT_CTRL_TCCPRSSEL_PRSCH5 0x00000005UL /**< Mode PRSCH5 for PCNT_CTRL */ 231 #define _PCNT_CTRL_TCCPRSSEL_PRSCH6 0x00000006UL /**< Mode PRSCH6 for PCNT_CTRL */ 232 #define _PCNT_CTRL_TCCPRSSEL_PRSCH7 0x00000007UL /**< Mode PRSCH7 for PCNT_CTRL */ 233 #define _PCNT_CTRL_TCCPRSSEL_PRSCH8 0x00000008UL /**< Mode PRSCH8 for PCNT_CTRL */ 234 #define _PCNT_CTRL_TCCPRSSEL_PRSCH9 0x00000009UL /**< Mode PRSCH9 for PCNT_CTRL */ 235 #define _PCNT_CTRL_TCCPRSSEL_PRSCH10 0x0000000AUL /**< Mode PRSCH10 for PCNT_CTRL */ 236 #define _PCNT_CTRL_TCCPRSSEL_PRSCH11 0x0000000BUL /**< Mode PRSCH11 for PCNT_CTRL */ 237 #define _PCNT_CTRL_TCCPRSSEL_PRSCH12 0x0000000CUL /**< Mode PRSCH12 for PCNT_CTRL */ 238 #define _PCNT_CTRL_TCCPRSSEL_PRSCH13 0x0000000DUL /**< Mode PRSCH13 for PCNT_CTRL */ 239 #define _PCNT_CTRL_TCCPRSSEL_PRSCH14 0x0000000EUL /**< Mode PRSCH14 for PCNT_CTRL */ 240 #define _PCNT_CTRL_TCCPRSSEL_PRSCH15 0x0000000FUL /**< Mode PRSCH15 for PCNT_CTRL */ 241 #define _PCNT_CTRL_TCCPRSSEL_PRSCH16 0x00000010UL /**< Mode PRSCH16 for PCNT_CTRL */ 242 #define _PCNT_CTRL_TCCPRSSEL_PRSCH17 0x00000011UL /**< Mode PRSCH17 for PCNT_CTRL */ 243 #define _PCNT_CTRL_TCCPRSSEL_PRSCH18 0x00000012UL /**< Mode PRSCH18 for PCNT_CTRL */ 244 #define _PCNT_CTRL_TCCPRSSEL_PRSCH19 0x00000013UL /**< Mode PRSCH19 for PCNT_CTRL */ 245 #define _PCNT_CTRL_TCCPRSSEL_PRSCH20 0x00000014UL /**< Mode PRSCH20 for PCNT_CTRL */ 246 #define _PCNT_CTRL_TCCPRSSEL_PRSCH21 0x00000015UL /**< Mode PRSCH21 for PCNT_CTRL */ 247 #define _PCNT_CTRL_TCCPRSSEL_PRSCH22 0x00000016UL /**< Mode PRSCH22 for PCNT_CTRL */ 248 #define _PCNT_CTRL_TCCPRSSEL_PRSCH23 0x00000017UL /**< Mode PRSCH23 for PCNT_CTRL */ 249 #define PCNT_CTRL_TCCPRSSEL_DEFAULT (_PCNT_CTRL_TCCPRSSEL_DEFAULT << 26) /**< Shifted mode DEFAULT for PCNT_CTRL */ 250 #define PCNT_CTRL_TCCPRSSEL_PRSCH0 (_PCNT_CTRL_TCCPRSSEL_PRSCH0 << 26) /**< Shifted mode PRSCH0 for PCNT_CTRL */ 251 #define PCNT_CTRL_TCCPRSSEL_PRSCH1 (_PCNT_CTRL_TCCPRSSEL_PRSCH1 << 26) /**< Shifted mode PRSCH1 for PCNT_CTRL */ 252 #define PCNT_CTRL_TCCPRSSEL_PRSCH2 (_PCNT_CTRL_TCCPRSSEL_PRSCH2 << 26) /**< Shifted mode PRSCH2 for PCNT_CTRL */ 253 #define PCNT_CTRL_TCCPRSSEL_PRSCH3 (_PCNT_CTRL_TCCPRSSEL_PRSCH3 << 26) /**< Shifted mode PRSCH3 for PCNT_CTRL */ 254 #define PCNT_CTRL_TCCPRSSEL_PRSCH4 (_PCNT_CTRL_TCCPRSSEL_PRSCH4 << 26) /**< Shifted mode PRSCH4 for PCNT_CTRL */ 255 #define PCNT_CTRL_TCCPRSSEL_PRSCH5 (_PCNT_CTRL_TCCPRSSEL_PRSCH5 << 26) /**< Shifted mode PRSCH5 for PCNT_CTRL */ 256 #define PCNT_CTRL_TCCPRSSEL_PRSCH6 (_PCNT_CTRL_TCCPRSSEL_PRSCH6 << 26) /**< Shifted mode PRSCH6 for PCNT_CTRL */ 257 #define PCNT_CTRL_TCCPRSSEL_PRSCH7 (_PCNT_CTRL_TCCPRSSEL_PRSCH7 << 26) /**< Shifted mode PRSCH7 for PCNT_CTRL */ 258 #define PCNT_CTRL_TCCPRSSEL_PRSCH8 (_PCNT_CTRL_TCCPRSSEL_PRSCH8 << 26) /**< Shifted mode PRSCH8 for PCNT_CTRL */ 259 #define PCNT_CTRL_TCCPRSSEL_PRSCH9 (_PCNT_CTRL_TCCPRSSEL_PRSCH9 << 26) /**< Shifted mode PRSCH9 for PCNT_CTRL */ 260 #define PCNT_CTRL_TCCPRSSEL_PRSCH10 (_PCNT_CTRL_TCCPRSSEL_PRSCH10 << 26) /**< Shifted mode PRSCH10 for PCNT_CTRL */ 261 #define PCNT_CTRL_TCCPRSSEL_PRSCH11 (_PCNT_CTRL_TCCPRSSEL_PRSCH11 << 26) /**< Shifted mode PRSCH11 for PCNT_CTRL */ 262 #define PCNT_CTRL_TCCPRSSEL_PRSCH12 (_PCNT_CTRL_TCCPRSSEL_PRSCH12 << 26) /**< Shifted mode PRSCH12 for PCNT_CTRL */ 263 #define PCNT_CTRL_TCCPRSSEL_PRSCH13 (_PCNT_CTRL_TCCPRSSEL_PRSCH13 << 26) /**< Shifted mode PRSCH13 for PCNT_CTRL */ 264 #define PCNT_CTRL_TCCPRSSEL_PRSCH14 (_PCNT_CTRL_TCCPRSSEL_PRSCH14 << 26) /**< Shifted mode PRSCH14 for PCNT_CTRL */ 265 #define PCNT_CTRL_TCCPRSSEL_PRSCH15 (_PCNT_CTRL_TCCPRSSEL_PRSCH15 << 26) /**< Shifted mode PRSCH15 for PCNT_CTRL */ 266 #define PCNT_CTRL_TCCPRSSEL_PRSCH16 (_PCNT_CTRL_TCCPRSSEL_PRSCH16 << 26) /**< Shifted mode PRSCH16 for PCNT_CTRL */ 267 #define PCNT_CTRL_TCCPRSSEL_PRSCH17 (_PCNT_CTRL_TCCPRSSEL_PRSCH17 << 26) /**< Shifted mode PRSCH17 for PCNT_CTRL */ 268 #define PCNT_CTRL_TCCPRSSEL_PRSCH18 (_PCNT_CTRL_TCCPRSSEL_PRSCH18 << 26) /**< Shifted mode PRSCH18 for PCNT_CTRL */ 269 #define PCNT_CTRL_TCCPRSSEL_PRSCH19 (_PCNT_CTRL_TCCPRSSEL_PRSCH19 << 26) /**< Shifted mode PRSCH19 for PCNT_CTRL */ 270 #define PCNT_CTRL_TCCPRSSEL_PRSCH20 (_PCNT_CTRL_TCCPRSSEL_PRSCH20 << 26) /**< Shifted mode PRSCH20 for PCNT_CTRL */ 271 #define PCNT_CTRL_TCCPRSSEL_PRSCH21 (_PCNT_CTRL_TCCPRSSEL_PRSCH21 << 26) /**< Shifted mode PRSCH21 for PCNT_CTRL */ 272 #define PCNT_CTRL_TCCPRSSEL_PRSCH22 (_PCNT_CTRL_TCCPRSSEL_PRSCH22 << 26) /**< Shifted mode PRSCH22 for PCNT_CTRL */ 273 #define PCNT_CTRL_TCCPRSSEL_PRSCH23 (_PCNT_CTRL_TCCPRSSEL_PRSCH23 << 26) /**< Shifted mode PRSCH23 for PCNT_CTRL */ 274 #define PCNT_CTRL_TOPBHFSEL (0x1UL << 31) /**< TOPB High Frequency Value Select */ 275 #define _PCNT_CTRL_TOPBHFSEL_SHIFT 31 /**< Shift value for PCNT_TOPBHFSEL */ 276 #define _PCNT_CTRL_TOPBHFSEL_MASK 0x80000000UL /**< Bit mask for PCNT_TOPBHFSEL */ 277 #define _PCNT_CTRL_TOPBHFSEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */ 278 #define PCNT_CTRL_TOPBHFSEL_DEFAULT (_PCNT_CTRL_TOPBHFSEL_DEFAULT << 31) /**< Shifted mode DEFAULT for PCNT_CTRL */ 279 280 /* Bit fields for PCNT CMD */ 281 #define _PCNT_CMD_RESETVALUE 0x00000000UL /**< Default value for PCNT_CMD */ 282 #define _PCNT_CMD_MASK 0x00000003UL /**< Mask for PCNT_CMD */ 283 #define PCNT_CMD_LCNTIM (0x1UL << 0) /**< Load CNT Immediately */ 284 #define _PCNT_CMD_LCNTIM_SHIFT 0 /**< Shift value for PCNT_LCNTIM */ 285 #define _PCNT_CMD_LCNTIM_MASK 0x1UL /**< Bit mask for PCNT_LCNTIM */ 286 #define _PCNT_CMD_LCNTIM_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CMD */ 287 #define PCNT_CMD_LCNTIM_DEFAULT (_PCNT_CMD_LCNTIM_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_CMD */ 288 #define PCNT_CMD_LTOPBIM (0x1UL << 1) /**< Load TOPB Immediately */ 289 #define _PCNT_CMD_LTOPBIM_SHIFT 1 /**< Shift value for PCNT_LTOPBIM */ 290 #define _PCNT_CMD_LTOPBIM_MASK 0x2UL /**< Bit mask for PCNT_LTOPBIM */ 291 #define _PCNT_CMD_LTOPBIM_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CMD */ 292 #define PCNT_CMD_LTOPBIM_DEFAULT (_PCNT_CMD_LTOPBIM_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_CMD */ 293 294 /* Bit fields for PCNT STATUS */ 295 #define _PCNT_STATUS_RESETVALUE 0x00000000UL /**< Default value for PCNT_STATUS */ 296 #define _PCNT_STATUS_MASK 0x00000001UL /**< Mask for PCNT_STATUS */ 297 #define PCNT_STATUS_DIR (0x1UL << 0) /**< Current Counter Direction */ 298 #define _PCNT_STATUS_DIR_SHIFT 0 /**< Shift value for PCNT_DIR */ 299 #define _PCNT_STATUS_DIR_MASK 0x1UL /**< Bit mask for PCNT_DIR */ 300 #define _PCNT_STATUS_DIR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_STATUS */ 301 #define _PCNT_STATUS_DIR_UP 0x00000000UL /**< Mode UP for PCNT_STATUS */ 302 #define _PCNT_STATUS_DIR_DOWN 0x00000001UL /**< Mode DOWN for PCNT_STATUS */ 303 #define PCNT_STATUS_DIR_DEFAULT (_PCNT_STATUS_DIR_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_STATUS */ 304 #define PCNT_STATUS_DIR_UP (_PCNT_STATUS_DIR_UP << 0) /**< Shifted mode UP for PCNT_STATUS */ 305 #define PCNT_STATUS_DIR_DOWN (_PCNT_STATUS_DIR_DOWN << 0) /**< Shifted mode DOWN for PCNT_STATUS */ 306 307 /* Bit fields for PCNT CNT */ 308 #define _PCNT_CNT_RESETVALUE 0x00000000UL /**< Default value for PCNT_CNT */ 309 #define _PCNT_CNT_MASK 0x0000FFFFUL /**< Mask for PCNT_CNT */ 310 #define _PCNT_CNT_CNT_SHIFT 0 /**< Shift value for PCNT_CNT */ 311 #define _PCNT_CNT_CNT_MASK 0xFFFFUL /**< Bit mask for PCNT_CNT */ 312 #define _PCNT_CNT_CNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CNT */ 313 #define PCNT_CNT_CNT_DEFAULT (_PCNT_CNT_CNT_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_CNT */ 314 315 /* Bit fields for PCNT TOP */ 316 #define _PCNT_TOP_RESETVALUE 0x000000FFUL /**< Default value for PCNT_TOP */ 317 #define _PCNT_TOP_MASK 0x0000FFFFUL /**< Mask for PCNT_TOP */ 318 #define _PCNT_TOP_TOP_SHIFT 0 /**< Shift value for PCNT_TOP */ 319 #define _PCNT_TOP_TOP_MASK 0xFFFFUL /**< Bit mask for PCNT_TOP */ 320 #define _PCNT_TOP_TOP_DEFAULT 0x000000FFUL /**< Mode DEFAULT for PCNT_TOP */ 321 #define PCNT_TOP_TOP_DEFAULT (_PCNT_TOP_TOP_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_TOP */ 322 323 /* Bit fields for PCNT TOPB */ 324 #define _PCNT_TOPB_RESETVALUE 0x000000FFUL /**< Default value for PCNT_TOPB */ 325 #define _PCNT_TOPB_MASK 0x0000FFFFUL /**< Mask for PCNT_TOPB */ 326 #define _PCNT_TOPB_TOPB_SHIFT 0 /**< Shift value for PCNT_TOPB */ 327 #define _PCNT_TOPB_TOPB_MASK 0xFFFFUL /**< Bit mask for PCNT_TOPB */ 328 #define _PCNT_TOPB_TOPB_DEFAULT 0x000000FFUL /**< Mode DEFAULT for PCNT_TOPB */ 329 #define PCNT_TOPB_TOPB_DEFAULT (_PCNT_TOPB_TOPB_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_TOPB */ 330 331 /* Bit fields for PCNT IF */ 332 #define _PCNT_IF_RESETVALUE 0x00000000UL /**< Default value for PCNT_IF */ 333 #define _PCNT_IF_MASK 0x0000003FUL /**< Mask for PCNT_IF */ 334 #define PCNT_IF_UF (0x1UL << 0) /**< Underflow Interrupt Read Flag */ 335 #define _PCNT_IF_UF_SHIFT 0 /**< Shift value for PCNT_UF */ 336 #define _PCNT_IF_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */ 337 #define _PCNT_IF_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */ 338 #define PCNT_IF_UF_DEFAULT (_PCNT_IF_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IF */ 339 #define PCNT_IF_OF (0x1UL << 1) /**< Overflow Interrupt Read Flag */ 340 #define _PCNT_IF_OF_SHIFT 1 /**< Shift value for PCNT_OF */ 341 #define _PCNT_IF_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */ 342 #define _PCNT_IF_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */ 343 #define PCNT_IF_OF_DEFAULT (_PCNT_IF_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IF */ 344 #define PCNT_IF_DIRCNG (0x1UL << 2) /**< Direction Change Detect Interrupt Flag */ 345 #define _PCNT_IF_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */ 346 #define _PCNT_IF_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */ 347 #define _PCNT_IF_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */ 348 #define PCNT_IF_DIRCNG_DEFAULT (_PCNT_IF_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IF */ 349 #define PCNT_IF_AUXOF (0x1UL << 3) /**< Auxiliary Overflow Interrupt Read Flag */ 350 #define _PCNT_IF_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */ 351 #define _PCNT_IF_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */ 352 #define _PCNT_IF_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */ 353 #define PCNT_IF_AUXOF_DEFAULT (_PCNT_IF_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IF */ 354 #define PCNT_IF_TCC (0x1UL << 4) /**< Triggered Compare Interrupt Read Flag */ 355 #define _PCNT_IF_TCC_SHIFT 4 /**< Shift value for PCNT_TCC */ 356 #define _PCNT_IF_TCC_MASK 0x10UL /**< Bit mask for PCNT_TCC */ 357 #define _PCNT_IF_TCC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */ 358 #define PCNT_IF_TCC_DEFAULT (_PCNT_IF_TCC_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_IF */ 359 #define PCNT_IF_OQSTERR (0x1UL << 5) /**< Oversampling Quadrature State Error Interrupt */ 360 #define _PCNT_IF_OQSTERR_SHIFT 5 /**< Shift value for PCNT_OQSTERR */ 361 #define _PCNT_IF_OQSTERR_MASK 0x20UL /**< Bit mask for PCNT_OQSTERR */ 362 #define _PCNT_IF_OQSTERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */ 363 #define PCNT_IF_OQSTERR_DEFAULT (_PCNT_IF_OQSTERR_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_IF */ 364 365 /* Bit fields for PCNT IFS */ 366 #define _PCNT_IFS_RESETVALUE 0x00000000UL /**< Default value for PCNT_IFS */ 367 #define _PCNT_IFS_MASK 0x0000003FUL /**< Mask for PCNT_IFS */ 368 #define PCNT_IFS_UF (0x1UL << 0) /**< Set UF Interrupt Flag */ 369 #define _PCNT_IFS_UF_SHIFT 0 /**< Shift value for PCNT_UF */ 370 #define _PCNT_IFS_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */ 371 #define _PCNT_IFS_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */ 372 #define PCNT_IFS_UF_DEFAULT (_PCNT_IFS_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IFS */ 373 #define PCNT_IFS_OF (0x1UL << 1) /**< Set OF Interrupt Flag */ 374 #define _PCNT_IFS_OF_SHIFT 1 /**< Shift value for PCNT_OF */ 375 #define _PCNT_IFS_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */ 376 #define _PCNT_IFS_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */ 377 #define PCNT_IFS_OF_DEFAULT (_PCNT_IFS_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IFS */ 378 #define PCNT_IFS_DIRCNG (0x1UL << 2) /**< Set DIRCNG Interrupt Flag */ 379 #define _PCNT_IFS_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */ 380 #define _PCNT_IFS_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */ 381 #define _PCNT_IFS_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */ 382 #define PCNT_IFS_DIRCNG_DEFAULT (_PCNT_IFS_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IFS */ 383 #define PCNT_IFS_AUXOF (0x1UL << 3) /**< Set AUXOF Interrupt Flag */ 384 #define _PCNT_IFS_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */ 385 #define _PCNT_IFS_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */ 386 #define _PCNT_IFS_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */ 387 #define PCNT_IFS_AUXOF_DEFAULT (_PCNT_IFS_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IFS */ 388 #define PCNT_IFS_TCC (0x1UL << 4) /**< Set TCC Interrupt Flag */ 389 #define _PCNT_IFS_TCC_SHIFT 4 /**< Shift value for PCNT_TCC */ 390 #define _PCNT_IFS_TCC_MASK 0x10UL /**< Bit mask for PCNT_TCC */ 391 #define _PCNT_IFS_TCC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */ 392 #define PCNT_IFS_TCC_DEFAULT (_PCNT_IFS_TCC_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_IFS */ 393 #define PCNT_IFS_OQSTERR (0x1UL << 5) /**< Set OQSTERR Interrupt Flag */ 394 #define _PCNT_IFS_OQSTERR_SHIFT 5 /**< Shift value for PCNT_OQSTERR */ 395 #define _PCNT_IFS_OQSTERR_MASK 0x20UL /**< Bit mask for PCNT_OQSTERR */ 396 #define _PCNT_IFS_OQSTERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */ 397 #define PCNT_IFS_OQSTERR_DEFAULT (_PCNT_IFS_OQSTERR_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_IFS */ 398 399 /* Bit fields for PCNT IFC */ 400 #define _PCNT_IFC_RESETVALUE 0x00000000UL /**< Default value for PCNT_IFC */ 401 #define _PCNT_IFC_MASK 0x0000003FUL /**< Mask for PCNT_IFC */ 402 #define PCNT_IFC_UF (0x1UL << 0) /**< Clear UF Interrupt Flag */ 403 #define _PCNT_IFC_UF_SHIFT 0 /**< Shift value for PCNT_UF */ 404 #define _PCNT_IFC_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */ 405 #define _PCNT_IFC_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */ 406 #define PCNT_IFC_UF_DEFAULT (_PCNT_IFC_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IFC */ 407 #define PCNT_IFC_OF (0x1UL << 1) /**< Clear OF Interrupt Flag */ 408 #define _PCNT_IFC_OF_SHIFT 1 /**< Shift value for PCNT_OF */ 409 #define _PCNT_IFC_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */ 410 #define _PCNT_IFC_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */ 411 #define PCNT_IFC_OF_DEFAULT (_PCNT_IFC_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IFC */ 412 #define PCNT_IFC_DIRCNG (0x1UL << 2) /**< Clear DIRCNG Interrupt Flag */ 413 #define _PCNT_IFC_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */ 414 #define _PCNT_IFC_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */ 415 #define _PCNT_IFC_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */ 416 #define PCNT_IFC_DIRCNG_DEFAULT (_PCNT_IFC_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IFC */ 417 #define PCNT_IFC_AUXOF (0x1UL << 3) /**< Clear AUXOF Interrupt Flag */ 418 #define _PCNT_IFC_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */ 419 #define _PCNT_IFC_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */ 420 #define _PCNT_IFC_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */ 421 #define PCNT_IFC_AUXOF_DEFAULT (_PCNT_IFC_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IFC */ 422 #define PCNT_IFC_TCC (0x1UL << 4) /**< Clear TCC Interrupt Flag */ 423 #define _PCNT_IFC_TCC_SHIFT 4 /**< Shift value for PCNT_TCC */ 424 #define _PCNT_IFC_TCC_MASK 0x10UL /**< Bit mask for PCNT_TCC */ 425 #define _PCNT_IFC_TCC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */ 426 #define PCNT_IFC_TCC_DEFAULT (_PCNT_IFC_TCC_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_IFC */ 427 #define PCNT_IFC_OQSTERR (0x1UL << 5) /**< Clear OQSTERR Interrupt Flag */ 428 #define _PCNT_IFC_OQSTERR_SHIFT 5 /**< Shift value for PCNT_OQSTERR */ 429 #define _PCNT_IFC_OQSTERR_MASK 0x20UL /**< Bit mask for PCNT_OQSTERR */ 430 #define _PCNT_IFC_OQSTERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */ 431 #define PCNT_IFC_OQSTERR_DEFAULT (_PCNT_IFC_OQSTERR_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_IFC */ 432 433 /* Bit fields for PCNT IEN */ 434 #define _PCNT_IEN_RESETVALUE 0x00000000UL /**< Default value for PCNT_IEN */ 435 #define _PCNT_IEN_MASK 0x0000003FUL /**< Mask for PCNT_IEN */ 436 #define PCNT_IEN_UF (0x1UL << 0) /**< UF Interrupt Enable */ 437 #define _PCNT_IEN_UF_SHIFT 0 /**< Shift value for PCNT_UF */ 438 #define _PCNT_IEN_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */ 439 #define _PCNT_IEN_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */ 440 #define PCNT_IEN_UF_DEFAULT (_PCNT_IEN_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IEN */ 441 #define PCNT_IEN_OF (0x1UL << 1) /**< OF Interrupt Enable */ 442 #define _PCNT_IEN_OF_SHIFT 1 /**< Shift value for PCNT_OF */ 443 #define _PCNT_IEN_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */ 444 #define _PCNT_IEN_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */ 445 #define PCNT_IEN_OF_DEFAULT (_PCNT_IEN_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IEN */ 446 #define PCNT_IEN_DIRCNG (0x1UL << 2) /**< DIRCNG Interrupt Enable */ 447 #define _PCNT_IEN_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */ 448 #define _PCNT_IEN_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */ 449 #define _PCNT_IEN_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */ 450 #define PCNT_IEN_DIRCNG_DEFAULT (_PCNT_IEN_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IEN */ 451 #define PCNT_IEN_AUXOF (0x1UL << 3) /**< AUXOF Interrupt Enable */ 452 #define _PCNT_IEN_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */ 453 #define _PCNT_IEN_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */ 454 #define _PCNT_IEN_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */ 455 #define PCNT_IEN_AUXOF_DEFAULT (_PCNT_IEN_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IEN */ 456 #define PCNT_IEN_TCC (0x1UL << 4) /**< TCC Interrupt Enable */ 457 #define _PCNT_IEN_TCC_SHIFT 4 /**< Shift value for PCNT_TCC */ 458 #define _PCNT_IEN_TCC_MASK 0x10UL /**< Bit mask for PCNT_TCC */ 459 #define _PCNT_IEN_TCC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */ 460 #define PCNT_IEN_TCC_DEFAULT (_PCNT_IEN_TCC_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_IEN */ 461 #define PCNT_IEN_OQSTERR (0x1UL << 5) /**< OQSTERR Interrupt Enable */ 462 #define _PCNT_IEN_OQSTERR_SHIFT 5 /**< Shift value for PCNT_OQSTERR */ 463 #define _PCNT_IEN_OQSTERR_MASK 0x20UL /**< Bit mask for PCNT_OQSTERR */ 464 #define _PCNT_IEN_OQSTERR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */ 465 #define PCNT_IEN_OQSTERR_DEFAULT (_PCNT_IEN_OQSTERR_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_IEN */ 466 467 /* Bit fields for PCNT ROUTELOC0 */ 468 #define _PCNT_ROUTELOC0_RESETVALUE 0x00000000UL /**< Default value for PCNT_ROUTELOC0 */ 469 #define _PCNT_ROUTELOC0_MASK 0x00000707UL /**< Mask for PCNT_ROUTELOC0 */ 470 #define _PCNT_ROUTELOC0_S0INLOC_SHIFT 0 /**< Shift value for PCNT_S0INLOC */ 471 #define _PCNT_ROUTELOC0_S0INLOC_MASK 0x7UL /**< Bit mask for PCNT_S0INLOC */ 472 #define _PCNT_ROUTELOC0_S0INLOC_LOC0 0x00000000UL /**< Mode LOC0 for PCNT_ROUTELOC0 */ 473 #define _PCNT_ROUTELOC0_S0INLOC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_ROUTELOC0 */ 474 #define _PCNT_ROUTELOC0_S0INLOC_LOC1 0x00000001UL /**< Mode LOC1 for PCNT_ROUTELOC0 */ 475 #define _PCNT_ROUTELOC0_S0INLOC_LOC2 0x00000002UL /**< Mode LOC2 for PCNT_ROUTELOC0 */ 476 #define _PCNT_ROUTELOC0_S0INLOC_LOC3 0x00000003UL /**< Mode LOC3 for PCNT_ROUTELOC0 */ 477 #define _PCNT_ROUTELOC0_S0INLOC_LOC4 0x00000004UL /**< Mode LOC4 for PCNT_ROUTELOC0 */ 478 #define _PCNT_ROUTELOC0_S0INLOC_LOC5 0x00000005UL /**< Mode LOC5 for PCNT_ROUTELOC0 */ 479 #define _PCNT_ROUTELOC0_S0INLOC_LOC6 0x00000006UL /**< Mode LOC6 for PCNT_ROUTELOC0 */ 480 #define _PCNT_ROUTELOC0_S0INLOC_LOC7 0x00000007UL /**< Mode LOC7 for PCNT_ROUTELOC0 */ 481 #define PCNT_ROUTELOC0_S0INLOC_LOC0 (_PCNT_ROUTELOC0_S0INLOC_LOC0 << 0) /**< Shifted mode LOC0 for PCNT_ROUTELOC0 */ 482 #define PCNT_ROUTELOC0_S0INLOC_DEFAULT (_PCNT_ROUTELOC0_S0INLOC_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_ROUTELOC0 */ 483 #define PCNT_ROUTELOC0_S0INLOC_LOC1 (_PCNT_ROUTELOC0_S0INLOC_LOC1 << 0) /**< Shifted mode LOC1 for PCNT_ROUTELOC0 */ 484 #define PCNT_ROUTELOC0_S0INLOC_LOC2 (_PCNT_ROUTELOC0_S0INLOC_LOC2 << 0) /**< Shifted mode LOC2 for PCNT_ROUTELOC0 */ 485 #define PCNT_ROUTELOC0_S0INLOC_LOC3 (_PCNT_ROUTELOC0_S0INLOC_LOC3 << 0) /**< Shifted mode LOC3 for PCNT_ROUTELOC0 */ 486 #define PCNT_ROUTELOC0_S0INLOC_LOC4 (_PCNT_ROUTELOC0_S0INLOC_LOC4 << 0) /**< Shifted mode LOC4 for PCNT_ROUTELOC0 */ 487 #define PCNT_ROUTELOC0_S0INLOC_LOC5 (_PCNT_ROUTELOC0_S0INLOC_LOC5 << 0) /**< Shifted mode LOC5 for PCNT_ROUTELOC0 */ 488 #define PCNT_ROUTELOC0_S0INLOC_LOC6 (_PCNT_ROUTELOC0_S0INLOC_LOC6 << 0) /**< Shifted mode LOC6 for PCNT_ROUTELOC0 */ 489 #define PCNT_ROUTELOC0_S0INLOC_LOC7 (_PCNT_ROUTELOC0_S0INLOC_LOC7 << 0) /**< Shifted mode LOC7 for PCNT_ROUTELOC0 */ 490 #define _PCNT_ROUTELOC0_S1INLOC_SHIFT 8 /**< Shift value for PCNT_S1INLOC */ 491 #define _PCNT_ROUTELOC0_S1INLOC_MASK 0x700UL /**< Bit mask for PCNT_S1INLOC */ 492 #define _PCNT_ROUTELOC0_S1INLOC_LOC0 0x00000000UL /**< Mode LOC0 for PCNT_ROUTELOC0 */ 493 #define _PCNT_ROUTELOC0_S1INLOC_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_ROUTELOC0 */ 494 #define _PCNT_ROUTELOC0_S1INLOC_LOC1 0x00000001UL /**< Mode LOC1 for PCNT_ROUTELOC0 */ 495 #define _PCNT_ROUTELOC0_S1INLOC_LOC2 0x00000002UL /**< Mode LOC2 for PCNT_ROUTELOC0 */ 496 #define _PCNT_ROUTELOC0_S1INLOC_LOC3 0x00000003UL /**< Mode LOC3 for PCNT_ROUTELOC0 */ 497 #define _PCNT_ROUTELOC0_S1INLOC_LOC4 0x00000004UL /**< Mode LOC4 for PCNT_ROUTELOC0 */ 498 #define _PCNT_ROUTELOC0_S1INLOC_LOC5 0x00000005UL /**< Mode LOC5 for PCNT_ROUTELOC0 */ 499 #define _PCNT_ROUTELOC0_S1INLOC_LOC6 0x00000006UL /**< Mode LOC6 for PCNT_ROUTELOC0 */ 500 #define _PCNT_ROUTELOC0_S1INLOC_LOC7 0x00000007UL /**< Mode LOC7 for PCNT_ROUTELOC0 */ 501 #define PCNT_ROUTELOC0_S1INLOC_LOC0 (_PCNT_ROUTELOC0_S1INLOC_LOC0 << 8) /**< Shifted mode LOC0 for PCNT_ROUTELOC0 */ 502 #define PCNT_ROUTELOC0_S1INLOC_DEFAULT (_PCNT_ROUTELOC0_S1INLOC_DEFAULT << 8) /**< Shifted mode DEFAULT for PCNT_ROUTELOC0 */ 503 #define PCNT_ROUTELOC0_S1INLOC_LOC1 (_PCNT_ROUTELOC0_S1INLOC_LOC1 << 8) /**< Shifted mode LOC1 for PCNT_ROUTELOC0 */ 504 #define PCNT_ROUTELOC0_S1INLOC_LOC2 (_PCNT_ROUTELOC0_S1INLOC_LOC2 << 8) /**< Shifted mode LOC2 for PCNT_ROUTELOC0 */ 505 #define PCNT_ROUTELOC0_S1INLOC_LOC3 (_PCNT_ROUTELOC0_S1INLOC_LOC3 << 8) /**< Shifted mode LOC3 for PCNT_ROUTELOC0 */ 506 #define PCNT_ROUTELOC0_S1INLOC_LOC4 (_PCNT_ROUTELOC0_S1INLOC_LOC4 << 8) /**< Shifted mode LOC4 for PCNT_ROUTELOC0 */ 507 #define PCNT_ROUTELOC0_S1INLOC_LOC5 (_PCNT_ROUTELOC0_S1INLOC_LOC5 << 8) /**< Shifted mode LOC5 for PCNT_ROUTELOC0 */ 508 #define PCNT_ROUTELOC0_S1INLOC_LOC6 (_PCNT_ROUTELOC0_S1INLOC_LOC6 << 8) /**< Shifted mode LOC6 for PCNT_ROUTELOC0 */ 509 #define PCNT_ROUTELOC0_S1INLOC_LOC7 (_PCNT_ROUTELOC0_S1INLOC_LOC7 << 8) /**< Shifted mode LOC7 for PCNT_ROUTELOC0 */ 510 511 /* Bit fields for PCNT FREEZE */ 512 #define _PCNT_FREEZE_RESETVALUE 0x00000000UL /**< Default value for PCNT_FREEZE */ 513 #define _PCNT_FREEZE_MASK 0x00000001UL /**< Mask for PCNT_FREEZE */ 514 #define PCNT_FREEZE_REGFREEZE (0x1UL << 0) /**< Register Update Freeze */ 515 #define _PCNT_FREEZE_REGFREEZE_SHIFT 0 /**< Shift value for PCNT_REGFREEZE */ 516 #define _PCNT_FREEZE_REGFREEZE_MASK 0x1UL /**< Bit mask for PCNT_REGFREEZE */ 517 #define _PCNT_FREEZE_REGFREEZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_FREEZE */ 518 #define _PCNT_FREEZE_REGFREEZE_UPDATE 0x00000000UL /**< Mode UPDATE for PCNT_FREEZE */ 519 #define _PCNT_FREEZE_REGFREEZE_FREEZE 0x00000001UL /**< Mode FREEZE for PCNT_FREEZE */ 520 #define PCNT_FREEZE_REGFREEZE_DEFAULT (_PCNT_FREEZE_REGFREEZE_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_FREEZE */ 521 #define PCNT_FREEZE_REGFREEZE_UPDATE (_PCNT_FREEZE_REGFREEZE_UPDATE << 0) /**< Shifted mode UPDATE for PCNT_FREEZE */ 522 #define PCNT_FREEZE_REGFREEZE_FREEZE (_PCNT_FREEZE_REGFREEZE_FREEZE << 0) /**< Shifted mode FREEZE for PCNT_FREEZE */ 523 524 /* Bit fields for PCNT SYNCBUSY */ 525 #define _PCNT_SYNCBUSY_RESETVALUE 0x00000000UL /**< Default value for PCNT_SYNCBUSY */ 526 #define _PCNT_SYNCBUSY_MASK 0x0000000FUL /**< Mask for PCNT_SYNCBUSY */ 527 #define PCNT_SYNCBUSY_CTRL (0x1UL << 0) /**< CTRL Register Busy */ 528 #define _PCNT_SYNCBUSY_CTRL_SHIFT 0 /**< Shift value for PCNT_CTRL */ 529 #define _PCNT_SYNCBUSY_CTRL_MASK 0x1UL /**< Bit mask for PCNT_CTRL */ 530 #define _PCNT_SYNCBUSY_CTRL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */ 531 #define PCNT_SYNCBUSY_CTRL_DEFAULT (_PCNT_SYNCBUSY_CTRL_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */ 532 #define PCNT_SYNCBUSY_CMD (0x1UL << 1) /**< CMD Register Busy */ 533 #define _PCNT_SYNCBUSY_CMD_SHIFT 1 /**< Shift value for PCNT_CMD */ 534 #define _PCNT_SYNCBUSY_CMD_MASK 0x2UL /**< Bit mask for PCNT_CMD */ 535 #define _PCNT_SYNCBUSY_CMD_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */ 536 #define PCNT_SYNCBUSY_CMD_DEFAULT (_PCNT_SYNCBUSY_CMD_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */ 537 #define PCNT_SYNCBUSY_TOPB (0x1UL << 2) /**< TOPB Register Busy */ 538 #define _PCNT_SYNCBUSY_TOPB_SHIFT 2 /**< Shift value for PCNT_TOPB */ 539 #define _PCNT_SYNCBUSY_TOPB_MASK 0x4UL /**< Bit mask for PCNT_TOPB */ 540 #define _PCNT_SYNCBUSY_TOPB_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */ 541 #define PCNT_SYNCBUSY_TOPB_DEFAULT (_PCNT_SYNCBUSY_TOPB_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */ 542 #define PCNT_SYNCBUSY_OVSCFG (0x1UL << 3) /**< OVSCFG Register Busy */ 543 #define _PCNT_SYNCBUSY_OVSCFG_SHIFT 3 /**< Shift value for PCNT_OVSCFG */ 544 #define _PCNT_SYNCBUSY_OVSCFG_MASK 0x8UL /**< Bit mask for PCNT_OVSCFG */ 545 #define _PCNT_SYNCBUSY_OVSCFG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */ 546 #define PCNT_SYNCBUSY_OVSCFG_DEFAULT (_PCNT_SYNCBUSY_OVSCFG_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */ 547 548 /* Bit fields for PCNT AUXCNT */ 549 #define _PCNT_AUXCNT_RESETVALUE 0x00000000UL /**< Default value for PCNT_AUXCNT */ 550 #define _PCNT_AUXCNT_MASK 0x0000FFFFUL /**< Mask for PCNT_AUXCNT */ 551 #define _PCNT_AUXCNT_AUXCNT_SHIFT 0 /**< Shift value for PCNT_AUXCNT */ 552 #define _PCNT_AUXCNT_AUXCNT_MASK 0xFFFFUL /**< Bit mask for PCNT_AUXCNT */ 553 #define _PCNT_AUXCNT_AUXCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_AUXCNT */ 554 #define PCNT_AUXCNT_AUXCNT_DEFAULT (_PCNT_AUXCNT_AUXCNT_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_AUXCNT */ 555 556 /* Bit fields for PCNT INPUT */ 557 #define _PCNT_INPUT_RESETVALUE 0x00000000UL /**< Default value for PCNT_INPUT */ 558 #define _PCNT_INPUT_MASK 0x00000FFFUL /**< Mask for PCNT_INPUT */ 559 #define _PCNT_INPUT_S0PRSSEL_SHIFT 0 /**< Shift value for PCNT_S0PRSSEL */ 560 #define _PCNT_INPUT_S0PRSSEL_MASK 0x1FUL /**< Bit mask for PCNT_S0PRSSEL */ 561 #define _PCNT_INPUT_S0PRSSEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */ 562 #define _PCNT_INPUT_S0PRSSEL_PRSCH0 0x00000000UL /**< Mode PRSCH0 for PCNT_INPUT */ 563 #define _PCNT_INPUT_S0PRSSEL_PRSCH1 0x00000001UL /**< Mode PRSCH1 for PCNT_INPUT */ 564 #define _PCNT_INPUT_S0PRSSEL_PRSCH2 0x00000002UL /**< Mode PRSCH2 for PCNT_INPUT */ 565 #define _PCNT_INPUT_S0PRSSEL_PRSCH3 0x00000003UL /**< Mode PRSCH3 for PCNT_INPUT */ 566 #define _PCNT_INPUT_S0PRSSEL_PRSCH4 0x00000004UL /**< Mode PRSCH4 for PCNT_INPUT */ 567 #define _PCNT_INPUT_S0PRSSEL_PRSCH5 0x00000005UL /**< Mode PRSCH5 for PCNT_INPUT */ 568 #define _PCNT_INPUT_S0PRSSEL_PRSCH6 0x00000006UL /**< Mode PRSCH6 for PCNT_INPUT */ 569 #define _PCNT_INPUT_S0PRSSEL_PRSCH7 0x00000007UL /**< Mode PRSCH7 for PCNT_INPUT */ 570 #define _PCNT_INPUT_S0PRSSEL_PRSCH8 0x00000008UL /**< Mode PRSCH8 for PCNT_INPUT */ 571 #define _PCNT_INPUT_S0PRSSEL_PRSCH9 0x00000009UL /**< Mode PRSCH9 for PCNT_INPUT */ 572 #define _PCNT_INPUT_S0PRSSEL_PRSCH10 0x0000000AUL /**< Mode PRSCH10 for PCNT_INPUT */ 573 #define _PCNT_INPUT_S0PRSSEL_PRSCH11 0x0000000BUL /**< Mode PRSCH11 for PCNT_INPUT */ 574 #define _PCNT_INPUT_S0PRSSEL_PRSCH12 0x0000000CUL /**< Mode PRSCH12 for PCNT_INPUT */ 575 #define _PCNT_INPUT_S0PRSSEL_PRSCH13 0x0000000DUL /**< Mode PRSCH13 for PCNT_INPUT */ 576 #define _PCNT_INPUT_S0PRSSEL_PRSCH14 0x0000000EUL /**< Mode PRSCH14 for PCNT_INPUT */ 577 #define _PCNT_INPUT_S0PRSSEL_PRSCH15 0x0000000FUL /**< Mode PRSCH15 for PCNT_INPUT */ 578 #define _PCNT_INPUT_S0PRSSEL_PRSCH16 0x00000010UL /**< Mode PRSCH16 for PCNT_INPUT */ 579 #define _PCNT_INPUT_S0PRSSEL_PRSCH17 0x00000011UL /**< Mode PRSCH17 for PCNT_INPUT */ 580 #define _PCNT_INPUT_S0PRSSEL_PRSCH18 0x00000012UL /**< Mode PRSCH18 for PCNT_INPUT */ 581 #define _PCNT_INPUT_S0PRSSEL_PRSCH19 0x00000013UL /**< Mode PRSCH19 for PCNT_INPUT */ 582 #define _PCNT_INPUT_S0PRSSEL_PRSCH20 0x00000014UL /**< Mode PRSCH20 for PCNT_INPUT */ 583 #define _PCNT_INPUT_S0PRSSEL_PRSCH21 0x00000015UL /**< Mode PRSCH21 for PCNT_INPUT */ 584 #define _PCNT_INPUT_S0PRSSEL_PRSCH22 0x00000016UL /**< Mode PRSCH22 for PCNT_INPUT */ 585 #define _PCNT_INPUT_S0PRSSEL_PRSCH23 0x00000017UL /**< Mode PRSCH23 for PCNT_INPUT */ 586 #define PCNT_INPUT_S0PRSSEL_DEFAULT (_PCNT_INPUT_S0PRSSEL_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_INPUT */ 587 #define PCNT_INPUT_S0PRSSEL_PRSCH0 (_PCNT_INPUT_S0PRSSEL_PRSCH0 << 0) /**< Shifted mode PRSCH0 for PCNT_INPUT */ 588 #define PCNT_INPUT_S0PRSSEL_PRSCH1 (_PCNT_INPUT_S0PRSSEL_PRSCH1 << 0) /**< Shifted mode PRSCH1 for PCNT_INPUT */ 589 #define PCNT_INPUT_S0PRSSEL_PRSCH2 (_PCNT_INPUT_S0PRSSEL_PRSCH2 << 0) /**< Shifted mode PRSCH2 for PCNT_INPUT */ 590 #define PCNT_INPUT_S0PRSSEL_PRSCH3 (_PCNT_INPUT_S0PRSSEL_PRSCH3 << 0) /**< Shifted mode PRSCH3 for PCNT_INPUT */ 591 #define PCNT_INPUT_S0PRSSEL_PRSCH4 (_PCNT_INPUT_S0PRSSEL_PRSCH4 << 0) /**< Shifted mode PRSCH4 for PCNT_INPUT */ 592 #define PCNT_INPUT_S0PRSSEL_PRSCH5 (_PCNT_INPUT_S0PRSSEL_PRSCH5 << 0) /**< Shifted mode PRSCH5 for PCNT_INPUT */ 593 #define PCNT_INPUT_S0PRSSEL_PRSCH6 (_PCNT_INPUT_S0PRSSEL_PRSCH6 << 0) /**< Shifted mode PRSCH6 for PCNT_INPUT */ 594 #define PCNT_INPUT_S0PRSSEL_PRSCH7 (_PCNT_INPUT_S0PRSSEL_PRSCH7 << 0) /**< Shifted mode PRSCH7 for PCNT_INPUT */ 595 #define PCNT_INPUT_S0PRSSEL_PRSCH8 (_PCNT_INPUT_S0PRSSEL_PRSCH8 << 0) /**< Shifted mode PRSCH8 for PCNT_INPUT */ 596 #define PCNT_INPUT_S0PRSSEL_PRSCH9 (_PCNT_INPUT_S0PRSSEL_PRSCH9 << 0) /**< Shifted mode PRSCH9 for PCNT_INPUT */ 597 #define PCNT_INPUT_S0PRSSEL_PRSCH10 (_PCNT_INPUT_S0PRSSEL_PRSCH10 << 0) /**< Shifted mode PRSCH10 for PCNT_INPUT */ 598 #define PCNT_INPUT_S0PRSSEL_PRSCH11 (_PCNT_INPUT_S0PRSSEL_PRSCH11 << 0) /**< Shifted mode PRSCH11 for PCNT_INPUT */ 599 #define PCNT_INPUT_S0PRSSEL_PRSCH12 (_PCNT_INPUT_S0PRSSEL_PRSCH12 << 0) /**< Shifted mode PRSCH12 for PCNT_INPUT */ 600 #define PCNT_INPUT_S0PRSSEL_PRSCH13 (_PCNT_INPUT_S0PRSSEL_PRSCH13 << 0) /**< Shifted mode PRSCH13 for PCNT_INPUT */ 601 #define PCNT_INPUT_S0PRSSEL_PRSCH14 (_PCNT_INPUT_S0PRSSEL_PRSCH14 << 0) /**< Shifted mode PRSCH14 for PCNT_INPUT */ 602 #define PCNT_INPUT_S0PRSSEL_PRSCH15 (_PCNT_INPUT_S0PRSSEL_PRSCH15 << 0) /**< Shifted mode PRSCH15 for PCNT_INPUT */ 603 #define PCNT_INPUT_S0PRSSEL_PRSCH16 (_PCNT_INPUT_S0PRSSEL_PRSCH16 << 0) /**< Shifted mode PRSCH16 for PCNT_INPUT */ 604 #define PCNT_INPUT_S0PRSSEL_PRSCH17 (_PCNT_INPUT_S0PRSSEL_PRSCH17 << 0) /**< Shifted mode PRSCH17 for PCNT_INPUT */ 605 #define PCNT_INPUT_S0PRSSEL_PRSCH18 (_PCNT_INPUT_S0PRSSEL_PRSCH18 << 0) /**< Shifted mode PRSCH18 for PCNT_INPUT */ 606 #define PCNT_INPUT_S0PRSSEL_PRSCH19 (_PCNT_INPUT_S0PRSSEL_PRSCH19 << 0) /**< Shifted mode PRSCH19 for PCNT_INPUT */ 607 #define PCNT_INPUT_S0PRSSEL_PRSCH20 (_PCNT_INPUT_S0PRSSEL_PRSCH20 << 0) /**< Shifted mode PRSCH20 for PCNT_INPUT */ 608 #define PCNT_INPUT_S0PRSSEL_PRSCH21 (_PCNT_INPUT_S0PRSSEL_PRSCH21 << 0) /**< Shifted mode PRSCH21 for PCNT_INPUT */ 609 #define PCNT_INPUT_S0PRSSEL_PRSCH22 (_PCNT_INPUT_S0PRSSEL_PRSCH22 << 0) /**< Shifted mode PRSCH22 for PCNT_INPUT */ 610 #define PCNT_INPUT_S0PRSSEL_PRSCH23 (_PCNT_INPUT_S0PRSSEL_PRSCH23 << 0) /**< Shifted mode PRSCH23 for PCNT_INPUT */ 611 #define PCNT_INPUT_S0PRSEN (0x1UL << 5) /**< S0IN PRS Enable */ 612 #define _PCNT_INPUT_S0PRSEN_SHIFT 5 /**< Shift value for PCNT_S0PRSEN */ 613 #define _PCNT_INPUT_S0PRSEN_MASK 0x20UL /**< Bit mask for PCNT_S0PRSEN */ 614 #define _PCNT_INPUT_S0PRSEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */ 615 #define PCNT_INPUT_S0PRSEN_DEFAULT (_PCNT_INPUT_S0PRSEN_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_INPUT */ 616 #define _PCNT_INPUT_S1PRSSEL_SHIFT 6 /**< Shift value for PCNT_S1PRSSEL */ 617 #define _PCNT_INPUT_S1PRSSEL_MASK 0x7C0UL /**< Bit mask for PCNT_S1PRSSEL */ 618 #define _PCNT_INPUT_S1PRSSEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */ 619 #define _PCNT_INPUT_S1PRSSEL_PRSCH0 0x00000000UL /**< Mode PRSCH0 for PCNT_INPUT */ 620 #define _PCNT_INPUT_S1PRSSEL_PRSCH1 0x00000001UL /**< Mode PRSCH1 for PCNT_INPUT */ 621 #define _PCNT_INPUT_S1PRSSEL_PRSCH2 0x00000002UL /**< Mode PRSCH2 for PCNT_INPUT */ 622 #define _PCNT_INPUT_S1PRSSEL_PRSCH3 0x00000003UL /**< Mode PRSCH3 for PCNT_INPUT */ 623 #define _PCNT_INPUT_S1PRSSEL_PRSCH4 0x00000004UL /**< Mode PRSCH4 for PCNT_INPUT */ 624 #define _PCNT_INPUT_S1PRSSEL_PRSCH5 0x00000005UL /**< Mode PRSCH5 for PCNT_INPUT */ 625 #define _PCNT_INPUT_S1PRSSEL_PRSCH6 0x00000006UL /**< Mode PRSCH6 for PCNT_INPUT */ 626 #define _PCNT_INPUT_S1PRSSEL_PRSCH7 0x00000007UL /**< Mode PRSCH7 for PCNT_INPUT */ 627 #define _PCNT_INPUT_S1PRSSEL_PRSCH8 0x00000008UL /**< Mode PRSCH8 for PCNT_INPUT */ 628 #define _PCNT_INPUT_S1PRSSEL_PRSCH9 0x00000009UL /**< Mode PRSCH9 for PCNT_INPUT */ 629 #define _PCNT_INPUT_S1PRSSEL_PRSCH10 0x0000000AUL /**< Mode PRSCH10 for PCNT_INPUT */ 630 #define _PCNT_INPUT_S1PRSSEL_PRSCH11 0x0000000BUL /**< Mode PRSCH11 for PCNT_INPUT */ 631 #define _PCNT_INPUT_S1PRSSEL_PRSCH12 0x0000000CUL /**< Mode PRSCH12 for PCNT_INPUT */ 632 #define _PCNT_INPUT_S1PRSSEL_PRSCH13 0x0000000DUL /**< Mode PRSCH13 for PCNT_INPUT */ 633 #define _PCNT_INPUT_S1PRSSEL_PRSCH14 0x0000000EUL /**< Mode PRSCH14 for PCNT_INPUT */ 634 #define _PCNT_INPUT_S1PRSSEL_PRSCH15 0x0000000FUL /**< Mode PRSCH15 for PCNT_INPUT */ 635 #define _PCNT_INPUT_S1PRSSEL_PRSCH16 0x00000010UL /**< Mode PRSCH16 for PCNT_INPUT */ 636 #define _PCNT_INPUT_S1PRSSEL_PRSCH17 0x00000011UL /**< Mode PRSCH17 for PCNT_INPUT */ 637 #define _PCNT_INPUT_S1PRSSEL_PRSCH18 0x00000012UL /**< Mode PRSCH18 for PCNT_INPUT */ 638 #define _PCNT_INPUT_S1PRSSEL_PRSCH19 0x00000013UL /**< Mode PRSCH19 for PCNT_INPUT */ 639 #define _PCNT_INPUT_S1PRSSEL_PRSCH20 0x00000014UL /**< Mode PRSCH20 for PCNT_INPUT */ 640 #define _PCNT_INPUT_S1PRSSEL_PRSCH21 0x00000015UL /**< Mode PRSCH21 for PCNT_INPUT */ 641 #define _PCNT_INPUT_S1PRSSEL_PRSCH22 0x00000016UL /**< Mode PRSCH22 for PCNT_INPUT */ 642 #define _PCNT_INPUT_S1PRSSEL_PRSCH23 0x00000017UL /**< Mode PRSCH23 for PCNT_INPUT */ 643 #define PCNT_INPUT_S1PRSSEL_DEFAULT (_PCNT_INPUT_S1PRSSEL_DEFAULT << 6) /**< Shifted mode DEFAULT for PCNT_INPUT */ 644 #define PCNT_INPUT_S1PRSSEL_PRSCH0 (_PCNT_INPUT_S1PRSSEL_PRSCH0 << 6) /**< Shifted mode PRSCH0 for PCNT_INPUT */ 645 #define PCNT_INPUT_S1PRSSEL_PRSCH1 (_PCNT_INPUT_S1PRSSEL_PRSCH1 << 6) /**< Shifted mode PRSCH1 for PCNT_INPUT */ 646 #define PCNT_INPUT_S1PRSSEL_PRSCH2 (_PCNT_INPUT_S1PRSSEL_PRSCH2 << 6) /**< Shifted mode PRSCH2 for PCNT_INPUT */ 647 #define PCNT_INPUT_S1PRSSEL_PRSCH3 (_PCNT_INPUT_S1PRSSEL_PRSCH3 << 6) /**< Shifted mode PRSCH3 for PCNT_INPUT */ 648 #define PCNT_INPUT_S1PRSSEL_PRSCH4 (_PCNT_INPUT_S1PRSSEL_PRSCH4 << 6) /**< Shifted mode PRSCH4 for PCNT_INPUT */ 649 #define PCNT_INPUT_S1PRSSEL_PRSCH5 (_PCNT_INPUT_S1PRSSEL_PRSCH5 << 6) /**< Shifted mode PRSCH5 for PCNT_INPUT */ 650 #define PCNT_INPUT_S1PRSSEL_PRSCH6 (_PCNT_INPUT_S1PRSSEL_PRSCH6 << 6) /**< Shifted mode PRSCH6 for PCNT_INPUT */ 651 #define PCNT_INPUT_S1PRSSEL_PRSCH7 (_PCNT_INPUT_S1PRSSEL_PRSCH7 << 6) /**< Shifted mode PRSCH7 for PCNT_INPUT */ 652 #define PCNT_INPUT_S1PRSSEL_PRSCH8 (_PCNT_INPUT_S1PRSSEL_PRSCH8 << 6) /**< Shifted mode PRSCH8 for PCNT_INPUT */ 653 #define PCNT_INPUT_S1PRSSEL_PRSCH9 (_PCNT_INPUT_S1PRSSEL_PRSCH9 << 6) /**< Shifted mode PRSCH9 for PCNT_INPUT */ 654 #define PCNT_INPUT_S1PRSSEL_PRSCH10 (_PCNT_INPUT_S1PRSSEL_PRSCH10 << 6) /**< Shifted mode PRSCH10 for PCNT_INPUT */ 655 #define PCNT_INPUT_S1PRSSEL_PRSCH11 (_PCNT_INPUT_S1PRSSEL_PRSCH11 << 6) /**< Shifted mode PRSCH11 for PCNT_INPUT */ 656 #define PCNT_INPUT_S1PRSSEL_PRSCH12 (_PCNT_INPUT_S1PRSSEL_PRSCH12 << 6) /**< Shifted mode PRSCH12 for PCNT_INPUT */ 657 #define PCNT_INPUT_S1PRSSEL_PRSCH13 (_PCNT_INPUT_S1PRSSEL_PRSCH13 << 6) /**< Shifted mode PRSCH13 for PCNT_INPUT */ 658 #define PCNT_INPUT_S1PRSSEL_PRSCH14 (_PCNT_INPUT_S1PRSSEL_PRSCH14 << 6) /**< Shifted mode PRSCH14 for PCNT_INPUT */ 659 #define PCNT_INPUT_S1PRSSEL_PRSCH15 (_PCNT_INPUT_S1PRSSEL_PRSCH15 << 6) /**< Shifted mode PRSCH15 for PCNT_INPUT */ 660 #define PCNT_INPUT_S1PRSSEL_PRSCH16 (_PCNT_INPUT_S1PRSSEL_PRSCH16 << 6) /**< Shifted mode PRSCH16 for PCNT_INPUT */ 661 #define PCNT_INPUT_S1PRSSEL_PRSCH17 (_PCNT_INPUT_S1PRSSEL_PRSCH17 << 6) /**< Shifted mode PRSCH17 for PCNT_INPUT */ 662 #define PCNT_INPUT_S1PRSSEL_PRSCH18 (_PCNT_INPUT_S1PRSSEL_PRSCH18 << 6) /**< Shifted mode PRSCH18 for PCNT_INPUT */ 663 #define PCNT_INPUT_S1PRSSEL_PRSCH19 (_PCNT_INPUT_S1PRSSEL_PRSCH19 << 6) /**< Shifted mode PRSCH19 for PCNT_INPUT */ 664 #define PCNT_INPUT_S1PRSSEL_PRSCH20 (_PCNT_INPUT_S1PRSSEL_PRSCH20 << 6) /**< Shifted mode PRSCH20 for PCNT_INPUT */ 665 #define PCNT_INPUT_S1PRSSEL_PRSCH21 (_PCNT_INPUT_S1PRSSEL_PRSCH21 << 6) /**< Shifted mode PRSCH21 for PCNT_INPUT */ 666 #define PCNT_INPUT_S1PRSSEL_PRSCH22 (_PCNT_INPUT_S1PRSSEL_PRSCH22 << 6) /**< Shifted mode PRSCH22 for PCNT_INPUT */ 667 #define PCNT_INPUT_S1PRSSEL_PRSCH23 (_PCNT_INPUT_S1PRSSEL_PRSCH23 << 6) /**< Shifted mode PRSCH23 for PCNT_INPUT */ 668 #define PCNT_INPUT_S1PRSEN (0x1UL << 11) /**< S1IN PRS Enable */ 669 #define _PCNT_INPUT_S1PRSEN_SHIFT 11 /**< Shift value for PCNT_S1PRSEN */ 670 #define _PCNT_INPUT_S1PRSEN_MASK 0x800UL /**< Bit mask for PCNT_S1PRSEN */ 671 #define _PCNT_INPUT_S1PRSEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */ 672 #define PCNT_INPUT_S1PRSEN_DEFAULT (_PCNT_INPUT_S1PRSEN_DEFAULT << 11) /**< Shifted mode DEFAULT for PCNT_INPUT */ 673 674 /* Bit fields for PCNT OVSCFG */ 675 #define _PCNT_OVSCFG_RESETVALUE 0x00000000UL /**< Default value for PCNT_OVSCFG */ 676 #define _PCNT_OVSCFG_MASK 0x000010FFUL /**< Mask for PCNT_OVSCFG */ 677 #define _PCNT_OVSCFG_FILTLEN_SHIFT 0 /**< Shift value for PCNT_FILTLEN */ 678 #define _PCNT_OVSCFG_FILTLEN_MASK 0xFFUL /**< Bit mask for PCNT_FILTLEN */ 679 #define _PCNT_OVSCFG_FILTLEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_OVSCFG */ 680 #define PCNT_OVSCFG_FILTLEN_DEFAULT (_PCNT_OVSCFG_FILTLEN_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_OVSCFG */ 681 #define PCNT_OVSCFG_FLUTTERRM (0x1UL << 12) /**< Flutter Remove */ 682 #define _PCNT_OVSCFG_FLUTTERRM_SHIFT 12 /**< Shift value for PCNT_FLUTTERRM */ 683 #define _PCNT_OVSCFG_FLUTTERRM_MASK 0x1000UL /**< Bit mask for PCNT_FLUTTERRM */ 684 #define _PCNT_OVSCFG_FLUTTERRM_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_OVSCFG */ 685 #define PCNT_OVSCFG_FLUTTERRM_DEFAULT (_PCNT_OVSCFG_FLUTTERRM_DEFAULT << 12) /**< Shifted mode DEFAULT for PCNT_OVSCFG */ 686 687 /** @} */ 688 /** @} End of group EFM32GG11B_PCNT */ 689 /** @} End of group Parts */ 690