Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
113:f141b2784e32
.

Who changed what in which revision?

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