Rigado / mbed-src-bmd-200

Dependents:   mbed_blinky-bmd-200 bmd-200_accel_demo firstRig

Fork of mbed-src by mbed official

Committer:
dcnichols
Date:
Fri Jul 10 17:36:27 2015 +0000
Revision:
592:5e2eb8beba71
Parent:
529:c320967f86b9
updating to latest mbed-src

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 529:c320967f86b9 1 /**************************************************************************//**
mbed_official 529:c320967f86b9 2 * @file efm32wg_pcnt.h
mbed_official 529:c320967f86b9 3 * @brief EFM32WG_PCNT register and bit field definitions
mbed_official 529:c320967f86b9 4 * @version 3.20.6
mbed_official 529:c320967f86b9 5 ******************************************************************************
mbed_official 529:c320967f86b9 6 * @section License
mbed_official 529:c320967f86b9 7 * <b>(C) Copyright 2014 Silicon Laboratories, Inc. http://www.silabs.com</b>
mbed_official 529:c320967f86b9 8 ******************************************************************************
mbed_official 529:c320967f86b9 9 *
mbed_official 529:c320967f86b9 10 * Permission is granted to anyone to use this software for any purpose,
mbed_official 529:c320967f86b9 11 * including commercial applications, and to alter it and redistribute it
mbed_official 529:c320967f86b9 12 * freely, subject to the following restrictions:
mbed_official 529:c320967f86b9 13 *
mbed_official 529:c320967f86b9 14 * 1. The origin of this software must not be misrepresented; you must not
mbed_official 529:c320967f86b9 15 * claim that you wrote the original software.@n
mbed_official 529:c320967f86b9 16 * 2. Altered source versions must be plainly marked as such, and must not be
mbed_official 529:c320967f86b9 17 * misrepresented as being the original software.@n
mbed_official 529:c320967f86b9 18 * 3. This notice may not be removed or altered from any source distribution.
mbed_official 529:c320967f86b9 19 *
mbed_official 529:c320967f86b9 20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc.
mbed_official 529:c320967f86b9 21 * has no obligation to support this Software. Silicon Laboratories, Inc. is
mbed_official 529:c320967f86b9 22 * providing the Software "AS IS", with no express or implied warranties of any
mbed_official 529:c320967f86b9 23 * kind, including, but not limited to, any implied warranties of
mbed_official 529:c320967f86b9 24 * merchantability or fitness for any particular purpose or warranties against
mbed_official 529:c320967f86b9 25 * infringement of any proprietary rights of a third party.
mbed_official 529:c320967f86b9 26 *
mbed_official 529:c320967f86b9 27 * Silicon Laboratories, Inc. will not be liable for any consequential,
mbed_official 529:c320967f86b9 28 * incidental, or special damages, or any other relief, or for any claim by
mbed_official 529:c320967f86b9 29 * any third party, arising from your use of this Software.
mbed_official 529:c320967f86b9 30 *
mbed_official 529:c320967f86b9 31 *****************************************************************************/
mbed_official 529:c320967f86b9 32 /**************************************************************************//**
mbed_official 529:c320967f86b9 33 * @defgroup EFM32WG_PCNT
mbed_official 529:c320967f86b9 34 * @{
mbed_official 529:c320967f86b9 35 * @brief EFM32WG_PCNT Register Declaration
mbed_official 529:c320967f86b9 36 *****************************************************************************/
mbed_official 529:c320967f86b9 37 typedef struct
mbed_official 529:c320967f86b9 38 {
mbed_official 529:c320967f86b9 39 __IO uint32_t CTRL; /**< Control Register */
mbed_official 529:c320967f86b9 40 __IO uint32_t CMD; /**< Command Register */
mbed_official 529:c320967f86b9 41 __I uint32_t STATUS; /**< Status Register */
mbed_official 529:c320967f86b9 42 __I uint32_t CNT; /**< Counter Value Register */
mbed_official 529:c320967f86b9 43 __I uint32_t TOP; /**< Top Value Register */
mbed_official 529:c320967f86b9 44 __IO uint32_t TOPB; /**< Top Value Buffer Register */
mbed_official 529:c320967f86b9 45 __I uint32_t IF; /**< Interrupt Flag Register */
mbed_official 529:c320967f86b9 46 __IO uint32_t IFS; /**< Interrupt Flag Set Register */
mbed_official 529:c320967f86b9 47 __IO uint32_t IFC; /**< Interrupt Flag Clear Register */
mbed_official 529:c320967f86b9 48 __IO uint32_t IEN; /**< Interrupt Enable Register */
mbed_official 529:c320967f86b9 49 __IO uint32_t ROUTE; /**< I/O Routing Register */
mbed_official 529:c320967f86b9 50
mbed_official 529:c320967f86b9 51 __IO uint32_t FREEZE; /**< Freeze Register */
mbed_official 529:c320967f86b9 52 __I uint32_t SYNCBUSY; /**< Synchronization Busy Register */
mbed_official 529:c320967f86b9 53
mbed_official 529:c320967f86b9 54 uint32_t RESERVED0[1]; /**< Reserved for future use **/
mbed_official 529:c320967f86b9 55 __IO uint32_t AUXCNT; /**< Auxiliary Counter Value Register */
mbed_official 529:c320967f86b9 56 __IO uint32_t INPUT; /**< PCNT Input Register */
mbed_official 529:c320967f86b9 57 } PCNT_TypeDef; /** @} */
mbed_official 529:c320967f86b9 58
mbed_official 529:c320967f86b9 59 /**************************************************************************//**
mbed_official 529:c320967f86b9 60 * @defgroup EFM32WG_PCNT_BitFields
mbed_official 529:c320967f86b9 61 * @{
mbed_official 529:c320967f86b9 62 *****************************************************************************/
mbed_official 529:c320967f86b9 63
mbed_official 529:c320967f86b9 64 /* Bit fields for PCNT CTRL */
mbed_official 529:c320967f86b9 65 #define _PCNT_CTRL_RESETVALUE 0x00000000UL /**< Default value for PCNT_CTRL */
mbed_official 529:c320967f86b9 66 #define _PCNT_CTRL_MASK 0x0000CF3FUL /**< Mask for PCNT_CTRL */
mbed_official 529:c320967f86b9 67 #define _PCNT_CTRL_MODE_SHIFT 0 /**< Shift value for PCNT_MODE */
mbed_official 529:c320967f86b9 68 #define _PCNT_CTRL_MODE_MASK 0x3UL /**< Bit mask for PCNT_MODE */
mbed_official 529:c320967f86b9 69 #define _PCNT_CTRL_MODE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 70 #define _PCNT_CTRL_MODE_DISABLE 0x00000000UL /**< Mode DISABLE for PCNT_CTRL */
mbed_official 529:c320967f86b9 71 #define _PCNT_CTRL_MODE_OVSSINGLE 0x00000001UL /**< Mode OVSSINGLE for PCNT_CTRL */
mbed_official 529:c320967f86b9 72 #define _PCNT_CTRL_MODE_EXTCLKSINGLE 0x00000002UL /**< Mode EXTCLKSINGLE for PCNT_CTRL */
mbed_official 529:c320967f86b9 73 #define _PCNT_CTRL_MODE_EXTCLKQUAD 0x00000003UL /**< Mode EXTCLKQUAD for PCNT_CTRL */
mbed_official 529:c320967f86b9 74 #define PCNT_CTRL_MODE_DEFAULT (_PCNT_CTRL_MODE_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 75 #define PCNT_CTRL_MODE_DISABLE (_PCNT_CTRL_MODE_DISABLE << 0) /**< Shifted mode DISABLE for PCNT_CTRL */
mbed_official 529:c320967f86b9 76 #define PCNT_CTRL_MODE_OVSSINGLE (_PCNT_CTRL_MODE_OVSSINGLE << 0) /**< Shifted mode OVSSINGLE for PCNT_CTRL */
mbed_official 529:c320967f86b9 77 #define PCNT_CTRL_MODE_EXTCLKSINGLE (_PCNT_CTRL_MODE_EXTCLKSINGLE << 0) /**< Shifted mode EXTCLKSINGLE for PCNT_CTRL */
mbed_official 529:c320967f86b9 78 #define PCNT_CTRL_MODE_EXTCLKQUAD (_PCNT_CTRL_MODE_EXTCLKQUAD << 0) /**< Shifted mode EXTCLKQUAD for PCNT_CTRL */
mbed_official 529:c320967f86b9 79 #define PCNT_CTRL_CNTDIR (0x1UL << 2) /**< Non-Quadrature Mode Counter Direction Control */
mbed_official 529:c320967f86b9 80 #define _PCNT_CTRL_CNTDIR_SHIFT 2 /**< Shift value for PCNT_CNTDIR */
mbed_official 529:c320967f86b9 81 #define _PCNT_CTRL_CNTDIR_MASK 0x4UL /**< Bit mask for PCNT_CNTDIR */
mbed_official 529:c320967f86b9 82 #define _PCNT_CTRL_CNTDIR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 83 #define _PCNT_CTRL_CNTDIR_UP 0x00000000UL /**< Mode UP for PCNT_CTRL */
mbed_official 529:c320967f86b9 84 #define _PCNT_CTRL_CNTDIR_DOWN 0x00000001UL /**< Mode DOWN for PCNT_CTRL */
mbed_official 529:c320967f86b9 85 #define PCNT_CTRL_CNTDIR_DEFAULT (_PCNT_CTRL_CNTDIR_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 86 #define PCNT_CTRL_CNTDIR_UP (_PCNT_CTRL_CNTDIR_UP << 2) /**< Shifted mode UP for PCNT_CTRL */
mbed_official 529:c320967f86b9 87 #define PCNT_CTRL_CNTDIR_DOWN (_PCNT_CTRL_CNTDIR_DOWN << 2) /**< Shifted mode DOWN for PCNT_CTRL */
mbed_official 529:c320967f86b9 88 #define PCNT_CTRL_EDGE (0x1UL << 3) /**< Edge Select */
mbed_official 529:c320967f86b9 89 #define _PCNT_CTRL_EDGE_SHIFT 3 /**< Shift value for PCNT_EDGE */
mbed_official 529:c320967f86b9 90 #define _PCNT_CTRL_EDGE_MASK 0x8UL /**< Bit mask for PCNT_EDGE */
mbed_official 529:c320967f86b9 91 #define _PCNT_CTRL_EDGE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 92 #define _PCNT_CTRL_EDGE_POS 0x00000000UL /**< Mode POS for PCNT_CTRL */
mbed_official 529:c320967f86b9 93 #define _PCNT_CTRL_EDGE_NEG 0x00000001UL /**< Mode NEG for PCNT_CTRL */
mbed_official 529:c320967f86b9 94 #define PCNT_CTRL_EDGE_DEFAULT (_PCNT_CTRL_EDGE_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 95 #define PCNT_CTRL_EDGE_POS (_PCNT_CTRL_EDGE_POS << 3) /**< Shifted mode POS for PCNT_CTRL */
mbed_official 529:c320967f86b9 96 #define PCNT_CTRL_EDGE_NEG (_PCNT_CTRL_EDGE_NEG << 3) /**< Shifted mode NEG for PCNT_CTRL */
mbed_official 529:c320967f86b9 97 #define PCNT_CTRL_FILT (0x1UL << 4) /**< Enable Digital Pulse Width Filter */
mbed_official 529:c320967f86b9 98 #define _PCNT_CTRL_FILT_SHIFT 4 /**< Shift value for PCNT_FILT */
mbed_official 529:c320967f86b9 99 #define _PCNT_CTRL_FILT_MASK 0x10UL /**< Bit mask for PCNT_FILT */
mbed_official 529:c320967f86b9 100 #define _PCNT_CTRL_FILT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 101 #define PCNT_CTRL_FILT_DEFAULT (_PCNT_CTRL_FILT_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 102 #define PCNT_CTRL_RSTEN (0x1UL << 5) /**< Enable PCNT Clock Domain Reset */
mbed_official 529:c320967f86b9 103 #define _PCNT_CTRL_RSTEN_SHIFT 5 /**< Shift value for PCNT_RSTEN */
mbed_official 529:c320967f86b9 104 #define _PCNT_CTRL_RSTEN_MASK 0x20UL /**< Bit mask for PCNT_RSTEN */
mbed_official 529:c320967f86b9 105 #define _PCNT_CTRL_RSTEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 106 #define PCNT_CTRL_RSTEN_DEFAULT (_PCNT_CTRL_RSTEN_DEFAULT << 5) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 107 #define PCNT_CTRL_HYST (0x1UL << 8) /**< Enable Hysteresis */
mbed_official 529:c320967f86b9 108 #define _PCNT_CTRL_HYST_SHIFT 8 /**< Shift value for PCNT_HYST */
mbed_official 529:c320967f86b9 109 #define _PCNT_CTRL_HYST_MASK 0x100UL /**< Bit mask for PCNT_HYST */
mbed_official 529:c320967f86b9 110 #define _PCNT_CTRL_HYST_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 111 #define PCNT_CTRL_HYST_DEFAULT (_PCNT_CTRL_HYST_DEFAULT << 8) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 112 #define PCNT_CTRL_S1CDIR (0x1UL << 9) /**< Count direction determined by S1 */
mbed_official 529:c320967f86b9 113 #define _PCNT_CTRL_S1CDIR_SHIFT 9 /**< Shift value for PCNT_S1CDIR */
mbed_official 529:c320967f86b9 114 #define _PCNT_CTRL_S1CDIR_MASK 0x200UL /**< Bit mask for PCNT_S1CDIR */
mbed_official 529:c320967f86b9 115 #define _PCNT_CTRL_S1CDIR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 116 #define PCNT_CTRL_S1CDIR_DEFAULT (_PCNT_CTRL_S1CDIR_DEFAULT << 9) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 117 #define _PCNT_CTRL_CNTEV_SHIFT 10 /**< Shift value for PCNT_CNTEV */
mbed_official 529:c320967f86b9 118 #define _PCNT_CTRL_CNTEV_MASK 0xC00UL /**< Bit mask for PCNT_CNTEV */
mbed_official 529:c320967f86b9 119 #define _PCNT_CTRL_CNTEV_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 120 #define _PCNT_CTRL_CNTEV_BOTH 0x00000000UL /**< Mode BOTH for PCNT_CTRL */
mbed_official 529:c320967f86b9 121 #define _PCNT_CTRL_CNTEV_UP 0x00000001UL /**< Mode UP for PCNT_CTRL */
mbed_official 529:c320967f86b9 122 #define _PCNT_CTRL_CNTEV_DOWN 0x00000002UL /**< Mode DOWN for PCNT_CTRL */
mbed_official 529:c320967f86b9 123 #define _PCNT_CTRL_CNTEV_NONE 0x00000003UL /**< Mode NONE for PCNT_CTRL */
mbed_official 529:c320967f86b9 124 #define PCNT_CTRL_CNTEV_DEFAULT (_PCNT_CTRL_CNTEV_DEFAULT << 10) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 125 #define PCNT_CTRL_CNTEV_BOTH (_PCNT_CTRL_CNTEV_BOTH << 10) /**< Shifted mode BOTH for PCNT_CTRL */
mbed_official 529:c320967f86b9 126 #define PCNT_CTRL_CNTEV_UP (_PCNT_CTRL_CNTEV_UP << 10) /**< Shifted mode UP for PCNT_CTRL */
mbed_official 529:c320967f86b9 127 #define PCNT_CTRL_CNTEV_DOWN (_PCNT_CTRL_CNTEV_DOWN << 10) /**< Shifted mode DOWN for PCNT_CTRL */
mbed_official 529:c320967f86b9 128 #define PCNT_CTRL_CNTEV_NONE (_PCNT_CTRL_CNTEV_NONE << 10) /**< Shifted mode NONE for PCNT_CTRL */
mbed_official 529:c320967f86b9 129 #define _PCNT_CTRL_AUXCNTEV_SHIFT 14 /**< Shift value for PCNT_AUXCNTEV */
mbed_official 529:c320967f86b9 130 #define _PCNT_CTRL_AUXCNTEV_MASK 0xC000UL /**< Bit mask for PCNT_AUXCNTEV */
mbed_official 529:c320967f86b9 131 #define _PCNT_CTRL_AUXCNTEV_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 132 #define _PCNT_CTRL_AUXCNTEV_NONE 0x00000000UL /**< Mode NONE for PCNT_CTRL */
mbed_official 529:c320967f86b9 133 #define _PCNT_CTRL_AUXCNTEV_UP 0x00000001UL /**< Mode UP for PCNT_CTRL */
mbed_official 529:c320967f86b9 134 #define _PCNT_CTRL_AUXCNTEV_DOWN 0x00000002UL /**< Mode DOWN for PCNT_CTRL */
mbed_official 529:c320967f86b9 135 #define _PCNT_CTRL_AUXCNTEV_BOTH 0x00000003UL /**< Mode BOTH for PCNT_CTRL */
mbed_official 529:c320967f86b9 136 #define PCNT_CTRL_AUXCNTEV_DEFAULT (_PCNT_CTRL_AUXCNTEV_DEFAULT << 14) /**< Shifted mode DEFAULT for PCNT_CTRL */
mbed_official 529:c320967f86b9 137 #define PCNT_CTRL_AUXCNTEV_NONE (_PCNT_CTRL_AUXCNTEV_NONE << 14) /**< Shifted mode NONE for PCNT_CTRL */
mbed_official 529:c320967f86b9 138 #define PCNT_CTRL_AUXCNTEV_UP (_PCNT_CTRL_AUXCNTEV_UP << 14) /**< Shifted mode UP for PCNT_CTRL */
mbed_official 529:c320967f86b9 139 #define PCNT_CTRL_AUXCNTEV_DOWN (_PCNT_CTRL_AUXCNTEV_DOWN << 14) /**< Shifted mode DOWN for PCNT_CTRL */
mbed_official 529:c320967f86b9 140 #define PCNT_CTRL_AUXCNTEV_BOTH (_PCNT_CTRL_AUXCNTEV_BOTH << 14) /**< Shifted mode BOTH for PCNT_CTRL */
mbed_official 529:c320967f86b9 141
mbed_official 529:c320967f86b9 142 /* Bit fields for PCNT CMD */
mbed_official 529:c320967f86b9 143 #define _PCNT_CMD_RESETVALUE 0x00000000UL /**< Default value for PCNT_CMD */
mbed_official 529:c320967f86b9 144 #define _PCNT_CMD_MASK 0x00000003UL /**< Mask for PCNT_CMD */
mbed_official 529:c320967f86b9 145 #define PCNT_CMD_LCNTIM (0x1UL << 0) /**< Load CNT Immediately */
mbed_official 529:c320967f86b9 146 #define _PCNT_CMD_LCNTIM_SHIFT 0 /**< Shift value for PCNT_LCNTIM */
mbed_official 529:c320967f86b9 147 #define _PCNT_CMD_LCNTIM_MASK 0x1UL /**< Bit mask for PCNT_LCNTIM */
mbed_official 529:c320967f86b9 148 #define _PCNT_CMD_LCNTIM_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CMD */
mbed_official 529:c320967f86b9 149 #define PCNT_CMD_LCNTIM_DEFAULT (_PCNT_CMD_LCNTIM_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_CMD */
mbed_official 529:c320967f86b9 150 #define PCNT_CMD_LTOPBIM (0x1UL << 1) /**< Load TOPB Immediately */
mbed_official 529:c320967f86b9 151 #define _PCNT_CMD_LTOPBIM_SHIFT 1 /**< Shift value for PCNT_LTOPBIM */
mbed_official 529:c320967f86b9 152 #define _PCNT_CMD_LTOPBIM_MASK 0x2UL /**< Bit mask for PCNT_LTOPBIM */
mbed_official 529:c320967f86b9 153 #define _PCNT_CMD_LTOPBIM_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CMD */
mbed_official 529:c320967f86b9 154 #define PCNT_CMD_LTOPBIM_DEFAULT (_PCNT_CMD_LTOPBIM_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_CMD */
mbed_official 529:c320967f86b9 155
mbed_official 529:c320967f86b9 156 /* Bit fields for PCNT STATUS */
mbed_official 529:c320967f86b9 157 #define _PCNT_STATUS_RESETVALUE 0x00000000UL /**< Default value for PCNT_STATUS */
mbed_official 529:c320967f86b9 158 #define _PCNT_STATUS_MASK 0x00000001UL /**< Mask for PCNT_STATUS */
mbed_official 529:c320967f86b9 159 #define PCNT_STATUS_DIR (0x1UL << 0) /**< Current Counter Direction */
mbed_official 529:c320967f86b9 160 #define _PCNT_STATUS_DIR_SHIFT 0 /**< Shift value for PCNT_DIR */
mbed_official 529:c320967f86b9 161 #define _PCNT_STATUS_DIR_MASK 0x1UL /**< Bit mask for PCNT_DIR */
mbed_official 529:c320967f86b9 162 #define _PCNT_STATUS_DIR_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_STATUS */
mbed_official 529:c320967f86b9 163 #define _PCNT_STATUS_DIR_UP 0x00000000UL /**< Mode UP for PCNT_STATUS */
mbed_official 529:c320967f86b9 164 #define _PCNT_STATUS_DIR_DOWN 0x00000001UL /**< Mode DOWN for PCNT_STATUS */
mbed_official 529:c320967f86b9 165 #define PCNT_STATUS_DIR_DEFAULT (_PCNT_STATUS_DIR_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_STATUS */
mbed_official 529:c320967f86b9 166 #define PCNT_STATUS_DIR_UP (_PCNT_STATUS_DIR_UP << 0) /**< Shifted mode UP for PCNT_STATUS */
mbed_official 529:c320967f86b9 167 #define PCNT_STATUS_DIR_DOWN (_PCNT_STATUS_DIR_DOWN << 0) /**< Shifted mode DOWN for PCNT_STATUS */
mbed_official 529:c320967f86b9 168
mbed_official 529:c320967f86b9 169 /* Bit fields for PCNT CNT */
mbed_official 529:c320967f86b9 170 #define _PCNT_CNT_RESETVALUE 0x00000000UL /**< Default value for PCNT_CNT */
mbed_official 529:c320967f86b9 171 #define _PCNT_CNT_MASK 0x0000FFFFUL /**< Mask for PCNT_CNT */
mbed_official 529:c320967f86b9 172 #define _PCNT_CNT_CNT_SHIFT 0 /**< Shift value for PCNT_CNT */
mbed_official 529:c320967f86b9 173 #define _PCNT_CNT_CNT_MASK 0xFFFFUL /**< Bit mask for PCNT_CNT */
mbed_official 529:c320967f86b9 174 #define _PCNT_CNT_CNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_CNT */
mbed_official 529:c320967f86b9 175 #define PCNT_CNT_CNT_DEFAULT (_PCNT_CNT_CNT_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_CNT */
mbed_official 529:c320967f86b9 176
mbed_official 529:c320967f86b9 177 /* Bit fields for PCNT TOP */
mbed_official 529:c320967f86b9 178 #define _PCNT_TOP_RESETVALUE 0x000000FFUL /**< Default value for PCNT_TOP */
mbed_official 529:c320967f86b9 179 #define _PCNT_TOP_MASK 0x0000FFFFUL /**< Mask for PCNT_TOP */
mbed_official 529:c320967f86b9 180 #define _PCNT_TOP_TOP_SHIFT 0 /**< Shift value for PCNT_TOP */
mbed_official 529:c320967f86b9 181 #define _PCNT_TOP_TOP_MASK 0xFFFFUL /**< Bit mask for PCNT_TOP */
mbed_official 529:c320967f86b9 182 #define _PCNT_TOP_TOP_DEFAULT 0x000000FFUL /**< Mode DEFAULT for PCNT_TOP */
mbed_official 529:c320967f86b9 183 #define PCNT_TOP_TOP_DEFAULT (_PCNT_TOP_TOP_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_TOP */
mbed_official 529:c320967f86b9 184
mbed_official 529:c320967f86b9 185 /* Bit fields for PCNT TOPB */
mbed_official 529:c320967f86b9 186 #define _PCNT_TOPB_RESETVALUE 0x000000FFUL /**< Default value for PCNT_TOPB */
mbed_official 529:c320967f86b9 187 #define _PCNT_TOPB_MASK 0x0000FFFFUL /**< Mask for PCNT_TOPB */
mbed_official 529:c320967f86b9 188 #define _PCNT_TOPB_TOPB_SHIFT 0 /**< Shift value for PCNT_TOPB */
mbed_official 529:c320967f86b9 189 #define _PCNT_TOPB_TOPB_MASK 0xFFFFUL /**< Bit mask for PCNT_TOPB */
mbed_official 529:c320967f86b9 190 #define _PCNT_TOPB_TOPB_DEFAULT 0x000000FFUL /**< Mode DEFAULT for PCNT_TOPB */
mbed_official 529:c320967f86b9 191 #define PCNT_TOPB_TOPB_DEFAULT (_PCNT_TOPB_TOPB_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_TOPB */
mbed_official 529:c320967f86b9 192
mbed_official 529:c320967f86b9 193 /* Bit fields for PCNT IF */
mbed_official 529:c320967f86b9 194 #define _PCNT_IF_RESETVALUE 0x00000000UL /**< Default value for PCNT_IF */
mbed_official 529:c320967f86b9 195 #define _PCNT_IF_MASK 0x0000000FUL /**< Mask for PCNT_IF */
mbed_official 529:c320967f86b9 196 #define PCNT_IF_UF (0x1UL << 0) /**< Underflow Interrupt Read Flag */
mbed_official 529:c320967f86b9 197 #define _PCNT_IF_UF_SHIFT 0 /**< Shift value for PCNT_UF */
mbed_official 529:c320967f86b9 198 #define _PCNT_IF_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */
mbed_official 529:c320967f86b9 199 #define _PCNT_IF_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 200 #define PCNT_IF_UF_DEFAULT (_PCNT_IF_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 201 #define PCNT_IF_OF (0x1UL << 1) /**< Overflow Interrupt Read Flag */
mbed_official 529:c320967f86b9 202 #define _PCNT_IF_OF_SHIFT 1 /**< Shift value for PCNT_OF */
mbed_official 529:c320967f86b9 203 #define _PCNT_IF_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */
mbed_official 529:c320967f86b9 204 #define _PCNT_IF_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 205 #define PCNT_IF_OF_DEFAULT (_PCNT_IF_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 206 #define PCNT_IF_DIRCNG (0x1UL << 2) /**< Direction Change Detect Interrupt Flag */
mbed_official 529:c320967f86b9 207 #define _PCNT_IF_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 208 #define _PCNT_IF_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 209 #define _PCNT_IF_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 210 #define PCNT_IF_DIRCNG_DEFAULT (_PCNT_IF_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 211 #define PCNT_IF_AUXOF (0x1UL << 3) /**< Overflow Interrupt Read Flag */
mbed_official 529:c320967f86b9 212 #define _PCNT_IF_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */
mbed_official 529:c320967f86b9 213 #define _PCNT_IF_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */
mbed_official 529:c320967f86b9 214 #define _PCNT_IF_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 215 #define PCNT_IF_AUXOF_DEFAULT (_PCNT_IF_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IF */
mbed_official 529:c320967f86b9 216
mbed_official 529:c320967f86b9 217 /* Bit fields for PCNT IFS */
mbed_official 529:c320967f86b9 218 #define _PCNT_IFS_RESETVALUE 0x00000000UL /**< Default value for PCNT_IFS */
mbed_official 529:c320967f86b9 219 #define _PCNT_IFS_MASK 0x0000000FUL /**< Mask for PCNT_IFS */
mbed_official 529:c320967f86b9 220 #define PCNT_IFS_UF (0x1UL << 0) /**< Underflow interrupt set */
mbed_official 529:c320967f86b9 221 #define _PCNT_IFS_UF_SHIFT 0 /**< Shift value for PCNT_UF */
mbed_official 529:c320967f86b9 222 #define _PCNT_IFS_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */
mbed_official 529:c320967f86b9 223 #define _PCNT_IFS_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 224 #define PCNT_IFS_UF_DEFAULT (_PCNT_IFS_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 225 #define PCNT_IFS_OF (0x1UL << 1) /**< Overflow Interrupt Set */
mbed_official 529:c320967f86b9 226 #define _PCNT_IFS_OF_SHIFT 1 /**< Shift value for PCNT_OF */
mbed_official 529:c320967f86b9 227 #define _PCNT_IFS_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */
mbed_official 529:c320967f86b9 228 #define _PCNT_IFS_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 229 #define PCNT_IFS_OF_DEFAULT (_PCNT_IFS_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 230 #define PCNT_IFS_DIRCNG (0x1UL << 2) /**< Direction Change Detect Interrupt Set */
mbed_official 529:c320967f86b9 231 #define _PCNT_IFS_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 232 #define _PCNT_IFS_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 233 #define _PCNT_IFS_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 234 #define PCNT_IFS_DIRCNG_DEFAULT (_PCNT_IFS_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 235 #define PCNT_IFS_AUXOF (0x1UL << 3) /**< Auxiliary Overflow Interrupt Set */
mbed_official 529:c320967f86b9 236 #define _PCNT_IFS_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */
mbed_official 529:c320967f86b9 237 #define _PCNT_IFS_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */
mbed_official 529:c320967f86b9 238 #define _PCNT_IFS_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 239 #define PCNT_IFS_AUXOF_DEFAULT (_PCNT_IFS_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IFS */
mbed_official 529:c320967f86b9 240
mbed_official 529:c320967f86b9 241 /* Bit fields for PCNT IFC */
mbed_official 529:c320967f86b9 242 #define _PCNT_IFC_RESETVALUE 0x00000000UL /**< Default value for PCNT_IFC */
mbed_official 529:c320967f86b9 243 #define _PCNT_IFC_MASK 0x0000000FUL /**< Mask for PCNT_IFC */
mbed_official 529:c320967f86b9 244 #define PCNT_IFC_UF (0x1UL << 0) /**< Underflow Interrupt Clear */
mbed_official 529:c320967f86b9 245 #define _PCNT_IFC_UF_SHIFT 0 /**< Shift value for PCNT_UF */
mbed_official 529:c320967f86b9 246 #define _PCNT_IFC_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */
mbed_official 529:c320967f86b9 247 #define _PCNT_IFC_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 248 #define PCNT_IFC_UF_DEFAULT (_PCNT_IFC_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 249 #define PCNT_IFC_OF (0x1UL << 1) /**< Overflow Interrupt Clear */
mbed_official 529:c320967f86b9 250 #define _PCNT_IFC_OF_SHIFT 1 /**< Shift value for PCNT_OF */
mbed_official 529:c320967f86b9 251 #define _PCNT_IFC_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */
mbed_official 529:c320967f86b9 252 #define _PCNT_IFC_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 253 #define PCNT_IFC_OF_DEFAULT (_PCNT_IFC_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 254 #define PCNT_IFC_DIRCNG (0x1UL << 2) /**< Direction Change Detect Interrupt Clear */
mbed_official 529:c320967f86b9 255 #define _PCNT_IFC_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 256 #define _PCNT_IFC_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 257 #define _PCNT_IFC_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 258 #define PCNT_IFC_DIRCNG_DEFAULT (_PCNT_IFC_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 259 #define PCNT_IFC_AUXOF (0x1UL << 3) /**< Auxiliary Overflow Interrupt Clear */
mbed_official 529:c320967f86b9 260 #define _PCNT_IFC_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */
mbed_official 529:c320967f86b9 261 #define _PCNT_IFC_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */
mbed_official 529:c320967f86b9 262 #define _PCNT_IFC_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 263 #define PCNT_IFC_AUXOF_DEFAULT (_PCNT_IFC_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IFC */
mbed_official 529:c320967f86b9 264
mbed_official 529:c320967f86b9 265 /* Bit fields for PCNT IEN */
mbed_official 529:c320967f86b9 266 #define _PCNT_IEN_RESETVALUE 0x00000000UL /**< Default value for PCNT_IEN */
mbed_official 529:c320967f86b9 267 #define _PCNT_IEN_MASK 0x0000000FUL /**< Mask for PCNT_IEN */
mbed_official 529:c320967f86b9 268 #define PCNT_IEN_UF (0x1UL << 0) /**< Underflow Interrupt Enable */
mbed_official 529:c320967f86b9 269 #define _PCNT_IEN_UF_SHIFT 0 /**< Shift value for PCNT_UF */
mbed_official 529:c320967f86b9 270 #define _PCNT_IEN_UF_MASK 0x1UL /**< Bit mask for PCNT_UF */
mbed_official 529:c320967f86b9 271 #define _PCNT_IEN_UF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 272 #define PCNT_IEN_UF_DEFAULT (_PCNT_IEN_UF_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 273 #define PCNT_IEN_OF (0x1UL << 1) /**< Overflow Interrupt Enable */
mbed_official 529:c320967f86b9 274 #define _PCNT_IEN_OF_SHIFT 1 /**< Shift value for PCNT_OF */
mbed_official 529:c320967f86b9 275 #define _PCNT_IEN_OF_MASK 0x2UL /**< Bit mask for PCNT_OF */
mbed_official 529:c320967f86b9 276 #define _PCNT_IEN_OF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 277 #define PCNT_IEN_OF_DEFAULT (_PCNT_IEN_OF_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 278 #define PCNT_IEN_DIRCNG (0x1UL << 2) /**< Direction Change Detect Interrupt Enable */
mbed_official 529:c320967f86b9 279 #define _PCNT_IEN_DIRCNG_SHIFT 2 /**< Shift value for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 280 #define _PCNT_IEN_DIRCNG_MASK 0x4UL /**< Bit mask for PCNT_DIRCNG */
mbed_official 529:c320967f86b9 281 #define _PCNT_IEN_DIRCNG_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 282 #define PCNT_IEN_DIRCNG_DEFAULT (_PCNT_IEN_DIRCNG_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 283 #define PCNT_IEN_AUXOF (0x1UL << 3) /**< Auxiliary Overflow Interrupt Enable */
mbed_official 529:c320967f86b9 284 #define _PCNT_IEN_AUXOF_SHIFT 3 /**< Shift value for PCNT_AUXOF */
mbed_official 529:c320967f86b9 285 #define _PCNT_IEN_AUXOF_MASK 0x8UL /**< Bit mask for PCNT_AUXOF */
mbed_official 529:c320967f86b9 286 #define _PCNT_IEN_AUXOF_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 287 #define PCNT_IEN_AUXOF_DEFAULT (_PCNT_IEN_AUXOF_DEFAULT << 3) /**< Shifted mode DEFAULT for PCNT_IEN */
mbed_official 529:c320967f86b9 288
mbed_official 529:c320967f86b9 289 /* Bit fields for PCNT ROUTE */
mbed_official 529:c320967f86b9 290 #define _PCNT_ROUTE_RESETVALUE 0x00000000UL /**< Default value for PCNT_ROUTE */
mbed_official 529:c320967f86b9 291 #define _PCNT_ROUTE_MASK 0x00000700UL /**< Mask for PCNT_ROUTE */
mbed_official 529:c320967f86b9 292 #define _PCNT_ROUTE_LOCATION_SHIFT 8 /**< Shift value for PCNT_LOCATION */
mbed_official 529:c320967f86b9 293 #define _PCNT_ROUTE_LOCATION_MASK 0x700UL /**< Bit mask for PCNT_LOCATION */
mbed_official 529:c320967f86b9 294 #define _PCNT_ROUTE_LOCATION_LOC0 0x00000000UL /**< Mode LOC0 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 295 #define _PCNT_ROUTE_LOCATION_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_ROUTE */
mbed_official 529:c320967f86b9 296 #define _PCNT_ROUTE_LOCATION_LOC1 0x00000001UL /**< Mode LOC1 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 297 #define _PCNT_ROUTE_LOCATION_LOC2 0x00000002UL /**< Mode LOC2 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 298 #define _PCNT_ROUTE_LOCATION_LOC3 0x00000003UL /**< Mode LOC3 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 299 #define PCNT_ROUTE_LOCATION_LOC0 (_PCNT_ROUTE_LOCATION_LOC0 << 8) /**< Shifted mode LOC0 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 300 #define PCNT_ROUTE_LOCATION_DEFAULT (_PCNT_ROUTE_LOCATION_DEFAULT << 8) /**< Shifted mode DEFAULT for PCNT_ROUTE */
mbed_official 529:c320967f86b9 301 #define PCNT_ROUTE_LOCATION_LOC1 (_PCNT_ROUTE_LOCATION_LOC1 << 8) /**< Shifted mode LOC1 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 302 #define PCNT_ROUTE_LOCATION_LOC2 (_PCNT_ROUTE_LOCATION_LOC2 << 8) /**< Shifted mode LOC2 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 303 #define PCNT_ROUTE_LOCATION_LOC3 (_PCNT_ROUTE_LOCATION_LOC3 << 8) /**< Shifted mode LOC3 for PCNT_ROUTE */
mbed_official 529:c320967f86b9 304
mbed_official 529:c320967f86b9 305 /* Bit fields for PCNT FREEZE */
mbed_official 529:c320967f86b9 306 #define _PCNT_FREEZE_RESETVALUE 0x00000000UL /**< Default value for PCNT_FREEZE */
mbed_official 529:c320967f86b9 307 #define _PCNT_FREEZE_MASK 0x00000001UL /**< Mask for PCNT_FREEZE */
mbed_official 529:c320967f86b9 308 #define PCNT_FREEZE_REGFREEZE (0x1UL << 0) /**< Register Update Freeze */
mbed_official 529:c320967f86b9 309 #define _PCNT_FREEZE_REGFREEZE_SHIFT 0 /**< Shift value for PCNT_REGFREEZE */
mbed_official 529:c320967f86b9 310 #define _PCNT_FREEZE_REGFREEZE_MASK 0x1UL /**< Bit mask for PCNT_REGFREEZE */
mbed_official 529:c320967f86b9 311 #define _PCNT_FREEZE_REGFREEZE_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_FREEZE */
mbed_official 529:c320967f86b9 312 #define _PCNT_FREEZE_REGFREEZE_UPDATE 0x00000000UL /**< Mode UPDATE for PCNT_FREEZE */
mbed_official 529:c320967f86b9 313 #define _PCNT_FREEZE_REGFREEZE_FREEZE 0x00000001UL /**< Mode FREEZE for PCNT_FREEZE */
mbed_official 529:c320967f86b9 314 #define PCNT_FREEZE_REGFREEZE_DEFAULT (_PCNT_FREEZE_REGFREEZE_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_FREEZE */
mbed_official 529:c320967f86b9 315 #define PCNT_FREEZE_REGFREEZE_UPDATE (_PCNT_FREEZE_REGFREEZE_UPDATE << 0) /**< Shifted mode UPDATE for PCNT_FREEZE */
mbed_official 529:c320967f86b9 316 #define PCNT_FREEZE_REGFREEZE_FREEZE (_PCNT_FREEZE_REGFREEZE_FREEZE << 0) /**< Shifted mode FREEZE for PCNT_FREEZE */
mbed_official 529:c320967f86b9 317
mbed_official 529:c320967f86b9 318 /* Bit fields for PCNT SYNCBUSY */
mbed_official 529:c320967f86b9 319 #define _PCNT_SYNCBUSY_RESETVALUE 0x00000000UL /**< Default value for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 320 #define _PCNT_SYNCBUSY_MASK 0x00000007UL /**< Mask for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 321 #define PCNT_SYNCBUSY_CTRL (0x1UL << 0) /**< CTRL Register Busy */
mbed_official 529:c320967f86b9 322 #define _PCNT_SYNCBUSY_CTRL_SHIFT 0 /**< Shift value for PCNT_CTRL */
mbed_official 529:c320967f86b9 323 #define _PCNT_SYNCBUSY_CTRL_MASK 0x1UL /**< Bit mask for PCNT_CTRL */
mbed_official 529:c320967f86b9 324 #define _PCNT_SYNCBUSY_CTRL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 325 #define PCNT_SYNCBUSY_CTRL_DEFAULT (_PCNT_SYNCBUSY_CTRL_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 326 #define PCNT_SYNCBUSY_CMD (0x1UL << 1) /**< CMD Register Busy */
mbed_official 529:c320967f86b9 327 #define _PCNT_SYNCBUSY_CMD_SHIFT 1 /**< Shift value for PCNT_CMD */
mbed_official 529:c320967f86b9 328 #define _PCNT_SYNCBUSY_CMD_MASK 0x2UL /**< Bit mask for PCNT_CMD */
mbed_official 529:c320967f86b9 329 #define _PCNT_SYNCBUSY_CMD_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 330 #define PCNT_SYNCBUSY_CMD_DEFAULT (_PCNT_SYNCBUSY_CMD_DEFAULT << 1) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 331 #define PCNT_SYNCBUSY_TOPB (0x1UL << 2) /**< TOPB Register Busy */
mbed_official 529:c320967f86b9 332 #define _PCNT_SYNCBUSY_TOPB_SHIFT 2 /**< Shift value for PCNT_TOPB */
mbed_official 529:c320967f86b9 333 #define _PCNT_SYNCBUSY_TOPB_MASK 0x4UL /**< Bit mask for PCNT_TOPB */
mbed_official 529:c320967f86b9 334 #define _PCNT_SYNCBUSY_TOPB_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 335 #define PCNT_SYNCBUSY_TOPB_DEFAULT (_PCNT_SYNCBUSY_TOPB_DEFAULT << 2) /**< Shifted mode DEFAULT for PCNT_SYNCBUSY */
mbed_official 529:c320967f86b9 336
mbed_official 529:c320967f86b9 337 /* Bit fields for PCNT AUXCNT */
mbed_official 529:c320967f86b9 338 #define _PCNT_AUXCNT_RESETVALUE 0x00000000UL /**< Default value for PCNT_AUXCNT */
mbed_official 529:c320967f86b9 339 #define _PCNT_AUXCNT_MASK 0x0000FFFFUL /**< Mask for PCNT_AUXCNT */
mbed_official 529:c320967f86b9 340 #define _PCNT_AUXCNT_AUXCNT_SHIFT 0 /**< Shift value for PCNT_AUXCNT */
mbed_official 529:c320967f86b9 341 #define _PCNT_AUXCNT_AUXCNT_MASK 0xFFFFUL /**< Bit mask for PCNT_AUXCNT */
mbed_official 529:c320967f86b9 342 #define _PCNT_AUXCNT_AUXCNT_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_AUXCNT */
mbed_official 529:c320967f86b9 343 #define PCNT_AUXCNT_AUXCNT_DEFAULT (_PCNT_AUXCNT_AUXCNT_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_AUXCNT */
mbed_official 529:c320967f86b9 344
mbed_official 529:c320967f86b9 345 /* Bit fields for PCNT INPUT */
mbed_official 529:c320967f86b9 346 #define _PCNT_INPUT_RESETVALUE 0x00000000UL /**< Default value for PCNT_INPUT */
mbed_official 529:c320967f86b9 347 #define _PCNT_INPUT_MASK 0x000007DFUL /**< Mask for PCNT_INPUT */
mbed_official 529:c320967f86b9 348 #define _PCNT_INPUT_S0PRSSEL_SHIFT 0 /**< Shift value for PCNT_S0PRSSEL */
mbed_official 529:c320967f86b9 349 #define _PCNT_INPUT_S0PRSSEL_MASK 0xFUL /**< Bit mask for PCNT_S0PRSSEL */
mbed_official 529:c320967f86b9 350 #define _PCNT_INPUT_S0PRSSEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 351 #define _PCNT_INPUT_S0PRSSEL_PRSCH0 0x00000000UL /**< Mode PRSCH0 for PCNT_INPUT */
mbed_official 529:c320967f86b9 352 #define _PCNT_INPUT_S0PRSSEL_PRSCH1 0x00000001UL /**< Mode PRSCH1 for PCNT_INPUT */
mbed_official 529:c320967f86b9 353 #define _PCNT_INPUT_S0PRSSEL_PRSCH2 0x00000002UL /**< Mode PRSCH2 for PCNT_INPUT */
mbed_official 529:c320967f86b9 354 #define _PCNT_INPUT_S0PRSSEL_PRSCH3 0x00000003UL /**< Mode PRSCH3 for PCNT_INPUT */
mbed_official 529:c320967f86b9 355 #define _PCNT_INPUT_S0PRSSEL_PRSCH4 0x00000004UL /**< Mode PRSCH4 for PCNT_INPUT */
mbed_official 529:c320967f86b9 356 #define _PCNT_INPUT_S0PRSSEL_PRSCH5 0x00000005UL /**< Mode PRSCH5 for PCNT_INPUT */
mbed_official 529:c320967f86b9 357 #define _PCNT_INPUT_S0PRSSEL_PRSCH6 0x00000006UL /**< Mode PRSCH6 for PCNT_INPUT */
mbed_official 529:c320967f86b9 358 #define _PCNT_INPUT_S0PRSSEL_PRSCH7 0x00000007UL /**< Mode PRSCH7 for PCNT_INPUT */
mbed_official 529:c320967f86b9 359 #define _PCNT_INPUT_S0PRSSEL_PRSCH8 0x00000008UL /**< Mode PRSCH8 for PCNT_INPUT */
mbed_official 529:c320967f86b9 360 #define _PCNT_INPUT_S0PRSSEL_PRSCH9 0x00000009UL /**< Mode PRSCH9 for PCNT_INPUT */
mbed_official 529:c320967f86b9 361 #define _PCNT_INPUT_S0PRSSEL_PRSCH10 0x0000000AUL /**< Mode PRSCH10 for PCNT_INPUT */
mbed_official 529:c320967f86b9 362 #define _PCNT_INPUT_S0PRSSEL_PRSCH11 0x0000000BUL /**< Mode PRSCH11 for PCNT_INPUT */
mbed_official 529:c320967f86b9 363 #define PCNT_INPUT_S0PRSSEL_DEFAULT (_PCNT_INPUT_S0PRSSEL_DEFAULT << 0) /**< Shifted mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 364 #define PCNT_INPUT_S0PRSSEL_PRSCH0 (_PCNT_INPUT_S0PRSSEL_PRSCH0 << 0) /**< Shifted mode PRSCH0 for PCNT_INPUT */
mbed_official 529:c320967f86b9 365 #define PCNT_INPUT_S0PRSSEL_PRSCH1 (_PCNT_INPUT_S0PRSSEL_PRSCH1 << 0) /**< Shifted mode PRSCH1 for PCNT_INPUT */
mbed_official 529:c320967f86b9 366 #define PCNT_INPUT_S0PRSSEL_PRSCH2 (_PCNT_INPUT_S0PRSSEL_PRSCH2 << 0) /**< Shifted mode PRSCH2 for PCNT_INPUT */
mbed_official 529:c320967f86b9 367 #define PCNT_INPUT_S0PRSSEL_PRSCH3 (_PCNT_INPUT_S0PRSSEL_PRSCH3 << 0) /**< Shifted mode PRSCH3 for PCNT_INPUT */
mbed_official 529:c320967f86b9 368 #define PCNT_INPUT_S0PRSSEL_PRSCH4 (_PCNT_INPUT_S0PRSSEL_PRSCH4 << 0) /**< Shifted mode PRSCH4 for PCNT_INPUT */
mbed_official 529:c320967f86b9 369 #define PCNT_INPUT_S0PRSSEL_PRSCH5 (_PCNT_INPUT_S0PRSSEL_PRSCH5 << 0) /**< Shifted mode PRSCH5 for PCNT_INPUT */
mbed_official 529:c320967f86b9 370 #define PCNT_INPUT_S0PRSSEL_PRSCH6 (_PCNT_INPUT_S0PRSSEL_PRSCH6 << 0) /**< Shifted mode PRSCH6 for PCNT_INPUT */
mbed_official 529:c320967f86b9 371 #define PCNT_INPUT_S0PRSSEL_PRSCH7 (_PCNT_INPUT_S0PRSSEL_PRSCH7 << 0) /**< Shifted mode PRSCH7 for PCNT_INPUT */
mbed_official 529:c320967f86b9 372 #define PCNT_INPUT_S0PRSSEL_PRSCH8 (_PCNT_INPUT_S0PRSSEL_PRSCH8 << 0) /**< Shifted mode PRSCH8 for PCNT_INPUT */
mbed_official 529:c320967f86b9 373 #define PCNT_INPUT_S0PRSSEL_PRSCH9 (_PCNT_INPUT_S0PRSSEL_PRSCH9 << 0) /**< Shifted mode PRSCH9 for PCNT_INPUT */
mbed_official 529:c320967f86b9 374 #define PCNT_INPUT_S0PRSSEL_PRSCH10 (_PCNT_INPUT_S0PRSSEL_PRSCH10 << 0) /**< Shifted mode PRSCH10 for PCNT_INPUT */
mbed_official 529:c320967f86b9 375 #define PCNT_INPUT_S0PRSSEL_PRSCH11 (_PCNT_INPUT_S0PRSSEL_PRSCH11 << 0) /**< Shifted mode PRSCH11 for PCNT_INPUT */
mbed_official 529:c320967f86b9 376 #define PCNT_INPUT_S0PRSEN (0x1UL << 4) /**< S0IN PRS Enable */
mbed_official 529:c320967f86b9 377 #define _PCNT_INPUT_S0PRSEN_SHIFT 4 /**< Shift value for PCNT_S0PRSEN */
mbed_official 529:c320967f86b9 378 #define _PCNT_INPUT_S0PRSEN_MASK 0x10UL /**< Bit mask for PCNT_S0PRSEN */
mbed_official 529:c320967f86b9 379 #define _PCNT_INPUT_S0PRSEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 380 #define PCNT_INPUT_S0PRSEN_DEFAULT (_PCNT_INPUT_S0PRSEN_DEFAULT << 4) /**< Shifted mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 381 #define _PCNT_INPUT_S1PRSSEL_SHIFT 6 /**< Shift value for PCNT_S1PRSSEL */
mbed_official 529:c320967f86b9 382 #define _PCNT_INPUT_S1PRSSEL_MASK 0x3C0UL /**< Bit mask for PCNT_S1PRSSEL */
mbed_official 529:c320967f86b9 383 #define _PCNT_INPUT_S1PRSSEL_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 384 #define _PCNT_INPUT_S1PRSSEL_PRSCH0 0x00000000UL /**< Mode PRSCH0 for PCNT_INPUT */
mbed_official 529:c320967f86b9 385 #define _PCNT_INPUT_S1PRSSEL_PRSCH1 0x00000001UL /**< Mode PRSCH1 for PCNT_INPUT */
mbed_official 529:c320967f86b9 386 #define _PCNT_INPUT_S1PRSSEL_PRSCH2 0x00000002UL /**< Mode PRSCH2 for PCNT_INPUT */
mbed_official 529:c320967f86b9 387 #define _PCNT_INPUT_S1PRSSEL_PRSCH3 0x00000003UL /**< Mode PRSCH3 for PCNT_INPUT */
mbed_official 529:c320967f86b9 388 #define _PCNT_INPUT_S1PRSSEL_PRSCH4 0x00000004UL /**< Mode PRSCH4 for PCNT_INPUT */
mbed_official 529:c320967f86b9 389 #define _PCNT_INPUT_S1PRSSEL_PRSCH5 0x00000005UL /**< Mode PRSCH5 for PCNT_INPUT */
mbed_official 529:c320967f86b9 390 #define _PCNT_INPUT_S1PRSSEL_PRSCH6 0x00000006UL /**< Mode PRSCH6 for PCNT_INPUT */
mbed_official 529:c320967f86b9 391 #define _PCNT_INPUT_S1PRSSEL_PRSCH7 0x00000007UL /**< Mode PRSCH7 for PCNT_INPUT */
mbed_official 529:c320967f86b9 392 #define _PCNT_INPUT_S1PRSSEL_PRSCH8 0x00000008UL /**< Mode PRSCH8 for PCNT_INPUT */
mbed_official 529:c320967f86b9 393 #define _PCNT_INPUT_S1PRSSEL_PRSCH9 0x00000009UL /**< Mode PRSCH9 for PCNT_INPUT */
mbed_official 529:c320967f86b9 394 #define _PCNT_INPUT_S1PRSSEL_PRSCH10 0x0000000AUL /**< Mode PRSCH10 for PCNT_INPUT */
mbed_official 529:c320967f86b9 395 #define _PCNT_INPUT_S1PRSSEL_PRSCH11 0x0000000BUL /**< Mode PRSCH11 for PCNT_INPUT */
mbed_official 529:c320967f86b9 396 #define PCNT_INPUT_S1PRSSEL_DEFAULT (_PCNT_INPUT_S1PRSSEL_DEFAULT << 6) /**< Shifted mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 397 #define PCNT_INPUT_S1PRSSEL_PRSCH0 (_PCNT_INPUT_S1PRSSEL_PRSCH0 << 6) /**< Shifted mode PRSCH0 for PCNT_INPUT */
mbed_official 529:c320967f86b9 398 #define PCNT_INPUT_S1PRSSEL_PRSCH1 (_PCNT_INPUT_S1PRSSEL_PRSCH1 << 6) /**< Shifted mode PRSCH1 for PCNT_INPUT */
mbed_official 529:c320967f86b9 399 #define PCNT_INPUT_S1PRSSEL_PRSCH2 (_PCNT_INPUT_S1PRSSEL_PRSCH2 << 6) /**< Shifted mode PRSCH2 for PCNT_INPUT */
mbed_official 529:c320967f86b9 400 #define PCNT_INPUT_S1PRSSEL_PRSCH3 (_PCNT_INPUT_S1PRSSEL_PRSCH3 << 6) /**< Shifted mode PRSCH3 for PCNT_INPUT */
mbed_official 529:c320967f86b9 401 #define PCNT_INPUT_S1PRSSEL_PRSCH4 (_PCNT_INPUT_S1PRSSEL_PRSCH4 << 6) /**< Shifted mode PRSCH4 for PCNT_INPUT */
mbed_official 529:c320967f86b9 402 #define PCNT_INPUT_S1PRSSEL_PRSCH5 (_PCNT_INPUT_S1PRSSEL_PRSCH5 << 6) /**< Shifted mode PRSCH5 for PCNT_INPUT */
mbed_official 529:c320967f86b9 403 #define PCNT_INPUT_S1PRSSEL_PRSCH6 (_PCNT_INPUT_S1PRSSEL_PRSCH6 << 6) /**< Shifted mode PRSCH6 for PCNT_INPUT */
mbed_official 529:c320967f86b9 404 #define PCNT_INPUT_S1PRSSEL_PRSCH7 (_PCNT_INPUT_S1PRSSEL_PRSCH7 << 6) /**< Shifted mode PRSCH7 for PCNT_INPUT */
mbed_official 529:c320967f86b9 405 #define PCNT_INPUT_S1PRSSEL_PRSCH8 (_PCNT_INPUT_S1PRSSEL_PRSCH8 << 6) /**< Shifted mode PRSCH8 for PCNT_INPUT */
mbed_official 529:c320967f86b9 406 #define PCNT_INPUT_S1PRSSEL_PRSCH9 (_PCNT_INPUT_S1PRSSEL_PRSCH9 << 6) /**< Shifted mode PRSCH9 for PCNT_INPUT */
mbed_official 529:c320967f86b9 407 #define PCNT_INPUT_S1PRSSEL_PRSCH10 (_PCNT_INPUT_S1PRSSEL_PRSCH10 << 6) /**< Shifted mode PRSCH10 for PCNT_INPUT */
mbed_official 529:c320967f86b9 408 #define PCNT_INPUT_S1PRSSEL_PRSCH11 (_PCNT_INPUT_S1PRSSEL_PRSCH11 << 6) /**< Shifted mode PRSCH11 for PCNT_INPUT */
mbed_official 529:c320967f86b9 409 #define PCNT_INPUT_S1PRSEN (0x1UL << 10) /**< S1IN PRS Enable */
mbed_official 529:c320967f86b9 410 #define _PCNT_INPUT_S1PRSEN_SHIFT 10 /**< Shift value for PCNT_S1PRSEN */
mbed_official 529:c320967f86b9 411 #define _PCNT_INPUT_S1PRSEN_MASK 0x400UL /**< Bit mask for PCNT_S1PRSEN */
mbed_official 529:c320967f86b9 412 #define _PCNT_INPUT_S1PRSEN_DEFAULT 0x00000000UL /**< Mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 413 #define PCNT_INPUT_S1PRSEN_DEFAULT (_PCNT_INPUT_S1PRSEN_DEFAULT << 10) /**< Shifted mode DEFAULT for PCNT_INPUT */
mbed_official 529:c320967f86b9 414
mbed_official 529:c320967f86b9 415 /** @} End of group EFM32WG_PCNT */
mbed_official 529:c320967f86b9 416
mbed_official 529:c320967f86b9 417