1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027 |
- /**
- * \file
- *
- * \brief Component description for TC
- *
- * Copyright (c) 2018 Microchip Technology Inc.
- *
- * \license_start
- *
- * \page License
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * \license_stop
- *
- */
- /* file generated from device description version 2018-05-30T11:07:17Z */
- #ifndef _SAML11_TC_COMPONENT_H_
- #define _SAML11_TC_COMPONENT_H_
- #define _SAML11_TC_COMPONENT_ /**< \deprecated Backward compatibility for ASF */
- /** \addtogroup SAML_SAML11 Basic Timer Counter
- * @{
- */
- /* ========================================================================== */
- /** SOFTWARE API DEFINITION FOR TC */
- /* ========================================================================== */
- #define TC_U2249 /**< (TC) Module ID */
- #define REV_TC 0x310 /**< (TC) Module revision */
- /* -------- TC_CTRLA : (TC Offset: 0x00) (R/W 32) Control A -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t SWRST:1; /**< bit: 0 Software Reset */
- uint32_t ENABLE:1; /**< bit: 1 Enable */
- uint32_t MODE:2; /**< bit: 2..3 Timer Counter Mode */
- uint32_t PRESCSYNC:2; /**< bit: 4..5 Prescaler and Counter Synchronization */
- uint32_t RUNSTDBY:1; /**< bit: 6 Run during Standby */
- uint32_t ONDEMAND:1; /**< bit: 7 Clock On Demand */
- uint32_t PRESCALER:3; /**< bit: 8..10 Prescaler */
- uint32_t ALOCK:1; /**< bit: 11 Auto Lock */
- uint32_t :4; /**< bit: 12..15 Reserved */
- uint32_t CAPTEN0:1; /**< bit: 16 Capture Channel 0 Enable */
- uint32_t CAPTEN1:1; /**< bit: 17 Capture Channel 1 Enable */
- uint32_t :2; /**< bit: 18..19 Reserved */
- uint32_t COPEN0:1; /**< bit: 20 Capture On Pin 0 Enable */
- uint32_t COPEN1:1; /**< bit: 21 Capture On Pin 1 Enable */
- uint32_t :2; /**< bit: 22..23 Reserved */
- uint32_t CAPTMODE0:2; /**< bit: 24..25 Capture Mode Channel 0 */
- uint32_t :1; /**< bit: 26 Reserved */
- uint32_t CAPTMODE1:2; /**< bit: 27..28 Capture mode Channel 1 */
- uint32_t :3; /**< bit: 29..31 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint32_t :16; /**< bit: 0..15 Reserved */
- uint32_t CAPTEN:2; /**< bit: 16..17 Capture Channel x Enable */
- uint32_t :2; /**< bit: 18..19 Reserved */
- uint32_t COPEN:2; /**< bit: 20..21 Capture On Pin x Enable */
- uint32_t :10; /**< bit: 22..31 Reserved */
- } vec; /**< Structure used for vec access */
- uint32_t reg; /**< Type used for register access */
- } TC_CTRLA_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_CTRLA_OFFSET (0x00) /**< (TC_CTRLA) Control A Offset */
- #define TC_CTRLA_RESETVALUE _U_(0x00) /**< (TC_CTRLA) Control A Reset Value */
- #define TC_CTRLA_SWRST_Pos 0 /**< (TC_CTRLA) Software Reset Position */
- #define TC_CTRLA_SWRST_Msk (_U_(0x1) << TC_CTRLA_SWRST_Pos) /**< (TC_CTRLA) Software Reset Mask */
- #define TC_CTRLA_SWRST TC_CTRLA_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_SWRST_Msk instead */
- #define TC_CTRLA_ENABLE_Pos 1 /**< (TC_CTRLA) Enable Position */
- #define TC_CTRLA_ENABLE_Msk (_U_(0x1) << TC_CTRLA_ENABLE_Pos) /**< (TC_CTRLA) Enable Mask */
- #define TC_CTRLA_ENABLE TC_CTRLA_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_ENABLE_Msk instead */
- #define TC_CTRLA_MODE_Pos 2 /**< (TC_CTRLA) Timer Counter Mode Position */
- #define TC_CTRLA_MODE_Msk (_U_(0x3) << TC_CTRLA_MODE_Pos) /**< (TC_CTRLA) Timer Counter Mode Mask */
- #define TC_CTRLA_MODE(value) (TC_CTRLA_MODE_Msk & ((value) << TC_CTRLA_MODE_Pos))
- #define TC_CTRLA_MODE_COUNT16_Val _U_(0x0) /**< (TC_CTRLA) Counter in 16-bit mode */
- #define TC_CTRLA_MODE_COUNT8_Val _U_(0x1) /**< (TC_CTRLA) Counter in 8-bit mode */
- #define TC_CTRLA_MODE_COUNT32_Val _U_(0x2) /**< (TC_CTRLA) Counter in 32-bit mode */
- #define TC_CTRLA_MODE_COUNT16 (TC_CTRLA_MODE_COUNT16_Val << TC_CTRLA_MODE_Pos) /**< (TC_CTRLA) Counter in 16-bit mode Position */
- #define TC_CTRLA_MODE_COUNT8 (TC_CTRLA_MODE_COUNT8_Val << TC_CTRLA_MODE_Pos) /**< (TC_CTRLA) Counter in 8-bit mode Position */
- #define TC_CTRLA_MODE_COUNT32 (TC_CTRLA_MODE_COUNT32_Val << TC_CTRLA_MODE_Pos) /**< (TC_CTRLA) Counter in 32-bit mode Position */
- #define TC_CTRLA_PRESCSYNC_Pos 4 /**< (TC_CTRLA) Prescaler and Counter Synchronization Position */
- #define TC_CTRLA_PRESCSYNC_Msk (_U_(0x3) << TC_CTRLA_PRESCSYNC_Pos) /**< (TC_CTRLA) Prescaler and Counter Synchronization Mask */
- #define TC_CTRLA_PRESCSYNC(value) (TC_CTRLA_PRESCSYNC_Msk & ((value) << TC_CTRLA_PRESCSYNC_Pos))
- #define TC_CTRLA_PRESCSYNC_GCLK_Val _U_(0x0) /**< (TC_CTRLA) Reload or reset the counter on next generic clock */
- #define TC_CTRLA_PRESCSYNC_PRESC_Val _U_(0x1) /**< (TC_CTRLA) Reload or reset the counter on next prescaler clock */
- #define TC_CTRLA_PRESCSYNC_RESYNC_Val _U_(0x2) /**< (TC_CTRLA) Reload or reset the counter on next generic clock and reset the prescaler counter */
- #define TC_CTRLA_PRESCSYNC_GCLK (TC_CTRLA_PRESCSYNC_GCLK_Val << TC_CTRLA_PRESCSYNC_Pos) /**< (TC_CTRLA) Reload or reset the counter on next generic clock Position */
- #define TC_CTRLA_PRESCSYNC_PRESC (TC_CTRLA_PRESCSYNC_PRESC_Val << TC_CTRLA_PRESCSYNC_Pos) /**< (TC_CTRLA) Reload or reset the counter on next prescaler clock Position */
- #define TC_CTRLA_PRESCSYNC_RESYNC (TC_CTRLA_PRESCSYNC_RESYNC_Val << TC_CTRLA_PRESCSYNC_Pos) /**< (TC_CTRLA) Reload or reset the counter on next generic clock and reset the prescaler counter Position */
- #define TC_CTRLA_RUNSTDBY_Pos 6 /**< (TC_CTRLA) Run during Standby Position */
- #define TC_CTRLA_RUNSTDBY_Msk (_U_(0x1) << TC_CTRLA_RUNSTDBY_Pos) /**< (TC_CTRLA) Run during Standby Mask */
- #define TC_CTRLA_RUNSTDBY TC_CTRLA_RUNSTDBY_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_RUNSTDBY_Msk instead */
- #define TC_CTRLA_ONDEMAND_Pos 7 /**< (TC_CTRLA) Clock On Demand Position */
- #define TC_CTRLA_ONDEMAND_Msk (_U_(0x1) << TC_CTRLA_ONDEMAND_Pos) /**< (TC_CTRLA) Clock On Demand Mask */
- #define TC_CTRLA_ONDEMAND TC_CTRLA_ONDEMAND_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_ONDEMAND_Msk instead */
- #define TC_CTRLA_PRESCALER_Pos 8 /**< (TC_CTRLA) Prescaler Position */
- #define TC_CTRLA_PRESCALER_Msk (_U_(0x7) << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler Mask */
- #define TC_CTRLA_PRESCALER(value) (TC_CTRLA_PRESCALER_Msk & ((value) << TC_CTRLA_PRESCALER_Pos))
- #define TC_CTRLA_PRESCALER_DIV1_Val _U_(0x0) /**< (TC_CTRLA) Prescaler: GCLK_TC */
- #define TC_CTRLA_PRESCALER_DIV2_Val _U_(0x1) /**< (TC_CTRLA) Prescaler: GCLK_TC/2 */
- #define TC_CTRLA_PRESCALER_DIV4_Val _U_(0x2) /**< (TC_CTRLA) Prescaler: GCLK_TC/4 */
- #define TC_CTRLA_PRESCALER_DIV8_Val _U_(0x3) /**< (TC_CTRLA) Prescaler: GCLK_TC/8 */
- #define TC_CTRLA_PRESCALER_DIV16_Val _U_(0x4) /**< (TC_CTRLA) Prescaler: GCLK_TC/16 */
- #define TC_CTRLA_PRESCALER_DIV64_Val _U_(0x5) /**< (TC_CTRLA) Prescaler: GCLK_TC/64 */
- #define TC_CTRLA_PRESCALER_DIV256_Val _U_(0x6) /**< (TC_CTRLA) Prescaler: GCLK_TC/256 */
- #define TC_CTRLA_PRESCALER_DIV1024_Val _U_(0x7) /**< (TC_CTRLA) Prescaler: GCLK_TC/1024 */
- #define TC_CTRLA_PRESCALER_DIV1 (TC_CTRLA_PRESCALER_DIV1_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC Position */
- #define TC_CTRLA_PRESCALER_DIV2 (TC_CTRLA_PRESCALER_DIV2_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/2 Position */
- #define TC_CTRLA_PRESCALER_DIV4 (TC_CTRLA_PRESCALER_DIV4_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/4 Position */
- #define TC_CTRLA_PRESCALER_DIV8 (TC_CTRLA_PRESCALER_DIV8_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/8 Position */
- #define TC_CTRLA_PRESCALER_DIV16 (TC_CTRLA_PRESCALER_DIV16_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/16 Position */
- #define TC_CTRLA_PRESCALER_DIV64 (TC_CTRLA_PRESCALER_DIV64_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/64 Position */
- #define TC_CTRLA_PRESCALER_DIV256 (TC_CTRLA_PRESCALER_DIV256_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/256 Position */
- #define TC_CTRLA_PRESCALER_DIV1024 (TC_CTRLA_PRESCALER_DIV1024_Val << TC_CTRLA_PRESCALER_Pos) /**< (TC_CTRLA) Prescaler: GCLK_TC/1024 Position */
- #define TC_CTRLA_ALOCK_Pos 11 /**< (TC_CTRLA) Auto Lock Position */
- #define TC_CTRLA_ALOCK_Msk (_U_(0x1) << TC_CTRLA_ALOCK_Pos) /**< (TC_CTRLA) Auto Lock Mask */
- #define TC_CTRLA_ALOCK TC_CTRLA_ALOCK_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_ALOCK_Msk instead */
- #define TC_CTRLA_CAPTEN0_Pos 16 /**< (TC_CTRLA) Capture Channel 0 Enable Position */
- #define TC_CTRLA_CAPTEN0_Msk (_U_(0x1) << TC_CTRLA_CAPTEN0_Pos) /**< (TC_CTRLA) Capture Channel 0 Enable Mask */
- #define TC_CTRLA_CAPTEN0 TC_CTRLA_CAPTEN0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_CAPTEN0_Msk instead */
- #define TC_CTRLA_CAPTEN1_Pos 17 /**< (TC_CTRLA) Capture Channel 1 Enable Position */
- #define TC_CTRLA_CAPTEN1_Msk (_U_(0x1) << TC_CTRLA_CAPTEN1_Pos) /**< (TC_CTRLA) Capture Channel 1 Enable Mask */
- #define TC_CTRLA_CAPTEN1 TC_CTRLA_CAPTEN1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_CAPTEN1_Msk instead */
- #define TC_CTRLA_COPEN0_Pos 20 /**< (TC_CTRLA) Capture On Pin 0 Enable Position */
- #define TC_CTRLA_COPEN0_Msk (_U_(0x1) << TC_CTRLA_COPEN0_Pos) /**< (TC_CTRLA) Capture On Pin 0 Enable Mask */
- #define TC_CTRLA_COPEN0 TC_CTRLA_COPEN0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_COPEN0_Msk instead */
- #define TC_CTRLA_COPEN1_Pos 21 /**< (TC_CTRLA) Capture On Pin 1 Enable Position */
- #define TC_CTRLA_COPEN1_Msk (_U_(0x1) << TC_CTRLA_COPEN1_Pos) /**< (TC_CTRLA) Capture On Pin 1 Enable Mask */
- #define TC_CTRLA_COPEN1 TC_CTRLA_COPEN1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLA_COPEN1_Msk instead */
- #define TC_CTRLA_CAPTMODE0_Pos 24 /**< (TC_CTRLA) Capture Mode Channel 0 Position */
- #define TC_CTRLA_CAPTMODE0_Msk (_U_(0x3) << TC_CTRLA_CAPTMODE0_Pos) /**< (TC_CTRLA) Capture Mode Channel 0 Mask */
- #define TC_CTRLA_CAPTMODE0(value) (TC_CTRLA_CAPTMODE0_Msk & ((value) << TC_CTRLA_CAPTMODE0_Pos))
- #define TC_CTRLA_CAPTMODE0_DEFAULT_Val _U_(0x0) /**< (TC_CTRLA) Default capture */
- #define TC_CTRLA_CAPTMODE0_CAPTMIN_Val _U_(0x1) /**< (TC_CTRLA) Minimum capture */
- #define TC_CTRLA_CAPTMODE0_CAPTMAX_Val _U_(0x2) /**< (TC_CTRLA) Maximum capture */
- #define TC_CTRLA_CAPTMODE0_DEFAULT (TC_CTRLA_CAPTMODE0_DEFAULT_Val << TC_CTRLA_CAPTMODE0_Pos) /**< (TC_CTRLA) Default capture Position */
- #define TC_CTRLA_CAPTMODE0_CAPTMIN (TC_CTRLA_CAPTMODE0_CAPTMIN_Val << TC_CTRLA_CAPTMODE0_Pos) /**< (TC_CTRLA) Minimum capture Position */
- #define TC_CTRLA_CAPTMODE0_CAPTMAX (TC_CTRLA_CAPTMODE0_CAPTMAX_Val << TC_CTRLA_CAPTMODE0_Pos) /**< (TC_CTRLA) Maximum capture Position */
- #define TC_CTRLA_CAPTMODE1_Pos 27 /**< (TC_CTRLA) Capture mode Channel 1 Position */
- #define TC_CTRLA_CAPTMODE1_Msk (_U_(0x3) << TC_CTRLA_CAPTMODE1_Pos) /**< (TC_CTRLA) Capture mode Channel 1 Mask */
- #define TC_CTRLA_CAPTMODE1(value) (TC_CTRLA_CAPTMODE1_Msk & ((value) << TC_CTRLA_CAPTMODE1_Pos))
- #define TC_CTRLA_CAPTMODE1_DEFAULT_Val _U_(0x0) /**< (TC_CTRLA) Default capture */
- #define TC_CTRLA_CAPTMODE1_CAPTMIN_Val _U_(0x1) /**< (TC_CTRLA) Minimum capture */
- #define TC_CTRLA_CAPTMODE1_CAPTMAX_Val _U_(0x2) /**< (TC_CTRLA) Maximum capture */
- #define TC_CTRLA_CAPTMODE1_DEFAULT (TC_CTRLA_CAPTMODE1_DEFAULT_Val << TC_CTRLA_CAPTMODE1_Pos) /**< (TC_CTRLA) Default capture Position */
- #define TC_CTRLA_CAPTMODE1_CAPTMIN (TC_CTRLA_CAPTMODE1_CAPTMIN_Val << TC_CTRLA_CAPTMODE1_Pos) /**< (TC_CTRLA) Minimum capture Position */
- #define TC_CTRLA_CAPTMODE1_CAPTMAX (TC_CTRLA_CAPTMODE1_CAPTMAX_Val << TC_CTRLA_CAPTMODE1_Pos) /**< (TC_CTRLA) Maximum capture Position */
- #define TC_CTRLA_MASK _U_(0x1B330FFF) /**< \deprecated (TC_CTRLA) Register MASK (Use TC_CTRLA_Msk instead) */
- #define TC_CTRLA_Msk _U_(0x1B330FFF) /**< (TC_CTRLA) Register Mask */
- #define TC_CTRLA_CAPTEN_Pos 16 /**< (TC_CTRLA Position) Capture Channel x Enable */
- #define TC_CTRLA_CAPTEN_Msk (_U_(0x3) << TC_CTRLA_CAPTEN_Pos) /**< (TC_CTRLA Mask) CAPTEN */
- #define TC_CTRLA_CAPTEN(value) (TC_CTRLA_CAPTEN_Msk & ((value) << TC_CTRLA_CAPTEN_Pos))
- #define TC_CTRLA_COPEN_Pos 20 /**< (TC_CTRLA Position) Capture On Pin x Enable */
- #define TC_CTRLA_COPEN_Msk (_U_(0x3) << TC_CTRLA_COPEN_Pos) /**< (TC_CTRLA Mask) COPEN */
- #define TC_CTRLA_COPEN(value) (TC_CTRLA_COPEN_Msk & ((value) << TC_CTRLA_COPEN_Pos))
- /* -------- TC_CTRLBCLR : (TC Offset: 0x04) (R/W 8) Control B Clear -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t DIR:1; /**< bit: 0 Counter Direction */
- uint8_t LUPD:1; /**< bit: 1 Lock Update */
- uint8_t ONESHOT:1; /**< bit: 2 One-Shot on Counter */
- uint8_t :2; /**< bit: 3..4 Reserved */
- uint8_t CMD:3; /**< bit: 5..7 Command */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_CTRLBCLR_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_CTRLBCLR_OFFSET (0x04) /**< (TC_CTRLBCLR) Control B Clear Offset */
- #define TC_CTRLBCLR_RESETVALUE _U_(0x00) /**< (TC_CTRLBCLR) Control B Clear Reset Value */
- #define TC_CTRLBCLR_DIR_Pos 0 /**< (TC_CTRLBCLR) Counter Direction Position */
- #define TC_CTRLBCLR_DIR_Msk (_U_(0x1) << TC_CTRLBCLR_DIR_Pos) /**< (TC_CTRLBCLR) Counter Direction Mask */
- #define TC_CTRLBCLR_DIR TC_CTRLBCLR_DIR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLBCLR_DIR_Msk instead */
- #define TC_CTRLBCLR_LUPD_Pos 1 /**< (TC_CTRLBCLR) Lock Update Position */
- #define TC_CTRLBCLR_LUPD_Msk (_U_(0x1) << TC_CTRLBCLR_LUPD_Pos) /**< (TC_CTRLBCLR) Lock Update Mask */
- #define TC_CTRLBCLR_LUPD TC_CTRLBCLR_LUPD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLBCLR_LUPD_Msk instead */
- #define TC_CTRLBCLR_ONESHOT_Pos 2 /**< (TC_CTRLBCLR) One-Shot on Counter Position */
- #define TC_CTRLBCLR_ONESHOT_Msk (_U_(0x1) << TC_CTRLBCLR_ONESHOT_Pos) /**< (TC_CTRLBCLR) One-Shot on Counter Mask */
- #define TC_CTRLBCLR_ONESHOT TC_CTRLBCLR_ONESHOT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLBCLR_ONESHOT_Msk instead */
- #define TC_CTRLBCLR_CMD_Pos 5 /**< (TC_CTRLBCLR) Command Position */
- #define TC_CTRLBCLR_CMD_Msk (_U_(0x7) << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) Command Mask */
- #define TC_CTRLBCLR_CMD(value) (TC_CTRLBCLR_CMD_Msk & ((value) << TC_CTRLBCLR_CMD_Pos))
- #define TC_CTRLBCLR_CMD_NONE_Val _U_(0x0) /**< (TC_CTRLBCLR) No action */
- #define TC_CTRLBCLR_CMD_RETRIGGER_Val _U_(0x1) /**< (TC_CTRLBCLR) Force a start, restart or retrigger */
- #define TC_CTRLBCLR_CMD_STOP_Val _U_(0x2) /**< (TC_CTRLBCLR) Force a stop */
- #define TC_CTRLBCLR_CMD_UPDATE_Val _U_(0x3) /**< (TC_CTRLBCLR) Force update of double-buffered register */
- #define TC_CTRLBCLR_CMD_READSYNC_Val _U_(0x4) /**< (TC_CTRLBCLR) Force a read synchronization of COUNT */
- #define TC_CTRLBCLR_CMD_DMAOS_Val _U_(0x5) /**< (TC_CTRLBCLR) One-shot DMA trigger */
- #define TC_CTRLBCLR_CMD_NONE (TC_CTRLBCLR_CMD_NONE_Val << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) No action Position */
- #define TC_CTRLBCLR_CMD_RETRIGGER (TC_CTRLBCLR_CMD_RETRIGGER_Val << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) Force a start, restart or retrigger Position */
- #define TC_CTRLBCLR_CMD_STOP (TC_CTRLBCLR_CMD_STOP_Val << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) Force a stop Position */
- #define TC_CTRLBCLR_CMD_UPDATE (TC_CTRLBCLR_CMD_UPDATE_Val << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) Force update of double-buffered register Position */
- #define TC_CTRLBCLR_CMD_READSYNC (TC_CTRLBCLR_CMD_READSYNC_Val << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) Force a read synchronization of COUNT Position */
- #define TC_CTRLBCLR_CMD_DMAOS (TC_CTRLBCLR_CMD_DMAOS_Val << TC_CTRLBCLR_CMD_Pos) /**< (TC_CTRLBCLR) One-shot DMA trigger Position */
- #define TC_CTRLBCLR_MASK _U_(0xE7) /**< \deprecated (TC_CTRLBCLR) Register MASK (Use TC_CTRLBCLR_Msk instead) */
- #define TC_CTRLBCLR_Msk _U_(0xE7) /**< (TC_CTRLBCLR) Register Mask */
- /* -------- TC_CTRLBSET : (TC Offset: 0x05) (R/W 8) Control B Set -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t DIR:1; /**< bit: 0 Counter Direction */
- uint8_t LUPD:1; /**< bit: 1 Lock Update */
- uint8_t ONESHOT:1; /**< bit: 2 One-Shot on Counter */
- uint8_t :2; /**< bit: 3..4 Reserved */
- uint8_t CMD:3; /**< bit: 5..7 Command */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_CTRLBSET_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_CTRLBSET_OFFSET (0x05) /**< (TC_CTRLBSET) Control B Set Offset */
- #define TC_CTRLBSET_RESETVALUE _U_(0x00) /**< (TC_CTRLBSET) Control B Set Reset Value */
- #define TC_CTRLBSET_DIR_Pos 0 /**< (TC_CTRLBSET) Counter Direction Position */
- #define TC_CTRLBSET_DIR_Msk (_U_(0x1) << TC_CTRLBSET_DIR_Pos) /**< (TC_CTRLBSET) Counter Direction Mask */
- #define TC_CTRLBSET_DIR TC_CTRLBSET_DIR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLBSET_DIR_Msk instead */
- #define TC_CTRLBSET_LUPD_Pos 1 /**< (TC_CTRLBSET) Lock Update Position */
- #define TC_CTRLBSET_LUPD_Msk (_U_(0x1) << TC_CTRLBSET_LUPD_Pos) /**< (TC_CTRLBSET) Lock Update Mask */
- #define TC_CTRLBSET_LUPD TC_CTRLBSET_LUPD_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLBSET_LUPD_Msk instead */
- #define TC_CTRLBSET_ONESHOT_Pos 2 /**< (TC_CTRLBSET) One-Shot on Counter Position */
- #define TC_CTRLBSET_ONESHOT_Msk (_U_(0x1) << TC_CTRLBSET_ONESHOT_Pos) /**< (TC_CTRLBSET) One-Shot on Counter Mask */
- #define TC_CTRLBSET_ONESHOT TC_CTRLBSET_ONESHOT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_CTRLBSET_ONESHOT_Msk instead */
- #define TC_CTRLBSET_CMD_Pos 5 /**< (TC_CTRLBSET) Command Position */
- #define TC_CTRLBSET_CMD_Msk (_U_(0x7) << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) Command Mask */
- #define TC_CTRLBSET_CMD(value) (TC_CTRLBSET_CMD_Msk & ((value) << TC_CTRLBSET_CMD_Pos))
- #define TC_CTRLBSET_CMD_NONE_Val _U_(0x0) /**< (TC_CTRLBSET) No action */
- #define TC_CTRLBSET_CMD_RETRIGGER_Val _U_(0x1) /**< (TC_CTRLBSET) Force a start, restart or retrigger */
- #define TC_CTRLBSET_CMD_STOP_Val _U_(0x2) /**< (TC_CTRLBSET) Force a stop */
- #define TC_CTRLBSET_CMD_UPDATE_Val _U_(0x3) /**< (TC_CTRLBSET) Force update of double-buffered register */
- #define TC_CTRLBSET_CMD_READSYNC_Val _U_(0x4) /**< (TC_CTRLBSET) Force a read synchronization of COUNT */
- #define TC_CTRLBSET_CMD_DMAOS_Val _U_(0x5) /**< (TC_CTRLBSET) One-shot DMA trigger */
- #define TC_CTRLBSET_CMD_NONE (TC_CTRLBSET_CMD_NONE_Val << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) No action Position */
- #define TC_CTRLBSET_CMD_RETRIGGER (TC_CTRLBSET_CMD_RETRIGGER_Val << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) Force a start, restart or retrigger Position */
- #define TC_CTRLBSET_CMD_STOP (TC_CTRLBSET_CMD_STOP_Val << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) Force a stop Position */
- #define TC_CTRLBSET_CMD_UPDATE (TC_CTRLBSET_CMD_UPDATE_Val << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) Force update of double-buffered register Position */
- #define TC_CTRLBSET_CMD_READSYNC (TC_CTRLBSET_CMD_READSYNC_Val << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) Force a read synchronization of COUNT Position */
- #define TC_CTRLBSET_CMD_DMAOS (TC_CTRLBSET_CMD_DMAOS_Val << TC_CTRLBSET_CMD_Pos) /**< (TC_CTRLBSET) One-shot DMA trigger Position */
- #define TC_CTRLBSET_MASK _U_(0xE7) /**< \deprecated (TC_CTRLBSET) Register MASK (Use TC_CTRLBSET_Msk instead) */
- #define TC_CTRLBSET_Msk _U_(0xE7) /**< (TC_CTRLBSET) Register Mask */
- /* -------- TC_EVCTRL : (TC Offset: 0x06) (R/W 16) Event Control -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint16_t EVACT:3; /**< bit: 0..2 Event Action */
- uint16_t :1; /**< bit: 3 Reserved */
- uint16_t TCINV:1; /**< bit: 4 TC Event Input Polarity */
- uint16_t TCEI:1; /**< bit: 5 TC Event Enable */
- uint16_t :2; /**< bit: 6..7 Reserved */
- uint16_t OVFEO:1; /**< bit: 8 Event Output Enable */
- uint16_t :3; /**< bit: 9..11 Reserved */
- uint16_t MCEO0:1; /**< bit: 12 MC Event Output Enable 0 */
- uint16_t MCEO1:1; /**< bit: 13 MC Event Output Enable 1 */
- uint16_t :2; /**< bit: 14..15 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint16_t :12; /**< bit: 0..11 Reserved */
- uint16_t MCEO:2; /**< bit: 12..13 MC Event Output Enable x */
- uint16_t :2; /**< bit: 14..15 Reserved */
- } vec; /**< Structure used for vec access */
- uint16_t reg; /**< Type used for register access */
- } TC_EVCTRL_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_EVCTRL_OFFSET (0x06) /**< (TC_EVCTRL) Event Control Offset */
- #define TC_EVCTRL_RESETVALUE _U_(0x00) /**< (TC_EVCTRL) Event Control Reset Value */
- #define TC_EVCTRL_EVACT_Pos 0 /**< (TC_EVCTRL) Event Action Position */
- #define TC_EVCTRL_EVACT_Msk (_U_(0x7) << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Event Action Mask */
- #define TC_EVCTRL_EVACT(value) (TC_EVCTRL_EVACT_Msk & ((value) << TC_EVCTRL_EVACT_Pos))
- #define TC_EVCTRL_EVACT_OFF_Val _U_(0x0) /**< (TC_EVCTRL) Event action disabled */
- #define TC_EVCTRL_EVACT_RETRIGGER_Val _U_(0x1) /**< (TC_EVCTRL) Start, restart or retrigger TC on event */
- #define TC_EVCTRL_EVACT_COUNT_Val _U_(0x2) /**< (TC_EVCTRL) Count on event */
- #define TC_EVCTRL_EVACT_START_Val _U_(0x3) /**< (TC_EVCTRL) Start TC on event */
- #define TC_EVCTRL_EVACT_STAMP_Val _U_(0x4) /**< (TC_EVCTRL) Time stamp capture */
- #define TC_EVCTRL_EVACT_PPW_Val _U_(0x5) /**< (TC_EVCTRL) Period catured in CC0, pulse width in CC1 */
- #define TC_EVCTRL_EVACT_PWP_Val _U_(0x6) /**< (TC_EVCTRL) Period catured in CC1, pulse width in CC0 */
- #define TC_EVCTRL_EVACT_PW_Val _U_(0x7) /**< (TC_EVCTRL) Pulse width capture */
- #define TC_EVCTRL_EVACT_OFF (TC_EVCTRL_EVACT_OFF_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Event action disabled Position */
- #define TC_EVCTRL_EVACT_RETRIGGER (TC_EVCTRL_EVACT_RETRIGGER_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Start, restart or retrigger TC on event Position */
- #define TC_EVCTRL_EVACT_COUNT (TC_EVCTRL_EVACT_COUNT_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Count on event Position */
- #define TC_EVCTRL_EVACT_START (TC_EVCTRL_EVACT_START_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Start TC on event Position */
- #define TC_EVCTRL_EVACT_STAMP (TC_EVCTRL_EVACT_STAMP_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Time stamp capture Position */
- #define TC_EVCTRL_EVACT_PPW (TC_EVCTRL_EVACT_PPW_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Period catured in CC0, pulse width in CC1 Position */
- #define TC_EVCTRL_EVACT_PWP (TC_EVCTRL_EVACT_PWP_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Period catured in CC1, pulse width in CC0 Position */
- #define TC_EVCTRL_EVACT_PW (TC_EVCTRL_EVACT_PW_Val << TC_EVCTRL_EVACT_Pos) /**< (TC_EVCTRL) Pulse width capture Position */
- #define TC_EVCTRL_TCINV_Pos 4 /**< (TC_EVCTRL) TC Event Input Polarity Position */
- #define TC_EVCTRL_TCINV_Msk (_U_(0x1) << TC_EVCTRL_TCINV_Pos) /**< (TC_EVCTRL) TC Event Input Polarity Mask */
- #define TC_EVCTRL_TCINV TC_EVCTRL_TCINV_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_EVCTRL_TCINV_Msk instead */
- #define TC_EVCTRL_TCEI_Pos 5 /**< (TC_EVCTRL) TC Event Enable Position */
- #define TC_EVCTRL_TCEI_Msk (_U_(0x1) << TC_EVCTRL_TCEI_Pos) /**< (TC_EVCTRL) TC Event Enable Mask */
- #define TC_EVCTRL_TCEI TC_EVCTRL_TCEI_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_EVCTRL_TCEI_Msk instead */
- #define TC_EVCTRL_OVFEO_Pos 8 /**< (TC_EVCTRL) Event Output Enable Position */
- #define TC_EVCTRL_OVFEO_Msk (_U_(0x1) << TC_EVCTRL_OVFEO_Pos) /**< (TC_EVCTRL) Event Output Enable Mask */
- #define TC_EVCTRL_OVFEO TC_EVCTRL_OVFEO_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_EVCTRL_OVFEO_Msk instead */
- #define TC_EVCTRL_MCEO0_Pos 12 /**< (TC_EVCTRL) MC Event Output Enable 0 Position */
- #define TC_EVCTRL_MCEO0_Msk (_U_(0x1) << TC_EVCTRL_MCEO0_Pos) /**< (TC_EVCTRL) MC Event Output Enable 0 Mask */
- #define TC_EVCTRL_MCEO0 TC_EVCTRL_MCEO0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_EVCTRL_MCEO0_Msk instead */
- #define TC_EVCTRL_MCEO1_Pos 13 /**< (TC_EVCTRL) MC Event Output Enable 1 Position */
- #define TC_EVCTRL_MCEO1_Msk (_U_(0x1) << TC_EVCTRL_MCEO1_Pos) /**< (TC_EVCTRL) MC Event Output Enable 1 Mask */
- #define TC_EVCTRL_MCEO1 TC_EVCTRL_MCEO1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_EVCTRL_MCEO1_Msk instead */
- #define TC_EVCTRL_MASK _U_(0x3137) /**< \deprecated (TC_EVCTRL) Register MASK (Use TC_EVCTRL_Msk instead) */
- #define TC_EVCTRL_Msk _U_(0x3137) /**< (TC_EVCTRL) Register Mask */
- #define TC_EVCTRL_MCEO_Pos 12 /**< (TC_EVCTRL Position) MC Event Output Enable x */
- #define TC_EVCTRL_MCEO_Msk (_U_(0x3) << TC_EVCTRL_MCEO_Pos) /**< (TC_EVCTRL Mask) MCEO */
- #define TC_EVCTRL_MCEO(value) (TC_EVCTRL_MCEO_Msk & ((value) << TC_EVCTRL_MCEO_Pos))
- /* -------- TC_INTENCLR : (TC Offset: 0x08) (R/W 8) Interrupt Enable Clear -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t OVF:1; /**< bit: 0 OVF Interrupt Disable */
- uint8_t ERR:1; /**< bit: 1 ERR Interrupt Disable */
- uint8_t :2; /**< bit: 2..3 Reserved */
- uint8_t MC0:1; /**< bit: 4 MC Interrupt Disable 0 */
- uint8_t MC1:1; /**< bit: 5 MC Interrupt Disable 1 */
- uint8_t :2; /**< bit: 6..7 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint8_t :4; /**< bit: 0..3 Reserved */
- uint8_t MC:2; /**< bit: 4..5 MC Interrupt Disable x */
- uint8_t :2; /**< bit: 6..7 Reserved */
- } vec; /**< Structure used for vec access */
- uint8_t reg; /**< Type used for register access */
- } TC_INTENCLR_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_INTENCLR_OFFSET (0x08) /**< (TC_INTENCLR) Interrupt Enable Clear Offset */
- #define TC_INTENCLR_RESETVALUE _U_(0x00) /**< (TC_INTENCLR) Interrupt Enable Clear Reset Value */
- #define TC_INTENCLR_OVF_Pos 0 /**< (TC_INTENCLR) OVF Interrupt Disable Position */
- #define TC_INTENCLR_OVF_Msk (_U_(0x1) << TC_INTENCLR_OVF_Pos) /**< (TC_INTENCLR) OVF Interrupt Disable Mask */
- #define TC_INTENCLR_OVF TC_INTENCLR_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENCLR_OVF_Msk instead */
- #define TC_INTENCLR_ERR_Pos 1 /**< (TC_INTENCLR) ERR Interrupt Disable Position */
- #define TC_INTENCLR_ERR_Msk (_U_(0x1) << TC_INTENCLR_ERR_Pos) /**< (TC_INTENCLR) ERR Interrupt Disable Mask */
- #define TC_INTENCLR_ERR TC_INTENCLR_ERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENCLR_ERR_Msk instead */
- #define TC_INTENCLR_MC0_Pos 4 /**< (TC_INTENCLR) MC Interrupt Disable 0 Position */
- #define TC_INTENCLR_MC0_Msk (_U_(0x1) << TC_INTENCLR_MC0_Pos) /**< (TC_INTENCLR) MC Interrupt Disable 0 Mask */
- #define TC_INTENCLR_MC0 TC_INTENCLR_MC0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENCLR_MC0_Msk instead */
- #define TC_INTENCLR_MC1_Pos 5 /**< (TC_INTENCLR) MC Interrupt Disable 1 Position */
- #define TC_INTENCLR_MC1_Msk (_U_(0x1) << TC_INTENCLR_MC1_Pos) /**< (TC_INTENCLR) MC Interrupt Disable 1 Mask */
- #define TC_INTENCLR_MC1 TC_INTENCLR_MC1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENCLR_MC1_Msk instead */
- #define TC_INTENCLR_MASK _U_(0x33) /**< \deprecated (TC_INTENCLR) Register MASK (Use TC_INTENCLR_Msk instead) */
- #define TC_INTENCLR_Msk _U_(0x33) /**< (TC_INTENCLR) Register Mask */
- #define TC_INTENCLR_MC_Pos 4 /**< (TC_INTENCLR Position) MC Interrupt Disable x */
- #define TC_INTENCLR_MC_Msk (_U_(0x3) << TC_INTENCLR_MC_Pos) /**< (TC_INTENCLR Mask) MC */
- #define TC_INTENCLR_MC(value) (TC_INTENCLR_MC_Msk & ((value) << TC_INTENCLR_MC_Pos))
- /* -------- TC_INTENSET : (TC Offset: 0x09) (R/W 8) Interrupt Enable Set -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t OVF:1; /**< bit: 0 OVF Interrupt Enable */
- uint8_t ERR:1; /**< bit: 1 ERR Interrupt Enable */
- uint8_t :2; /**< bit: 2..3 Reserved */
- uint8_t MC0:1; /**< bit: 4 MC Interrupt Enable 0 */
- uint8_t MC1:1; /**< bit: 5 MC Interrupt Enable 1 */
- uint8_t :2; /**< bit: 6..7 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint8_t :4; /**< bit: 0..3 Reserved */
- uint8_t MC:2; /**< bit: 4..5 MC Interrupt Enable x */
- uint8_t :2; /**< bit: 6..7 Reserved */
- } vec; /**< Structure used for vec access */
- uint8_t reg; /**< Type used for register access */
- } TC_INTENSET_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_INTENSET_OFFSET (0x09) /**< (TC_INTENSET) Interrupt Enable Set Offset */
- #define TC_INTENSET_RESETVALUE _U_(0x00) /**< (TC_INTENSET) Interrupt Enable Set Reset Value */
- #define TC_INTENSET_OVF_Pos 0 /**< (TC_INTENSET) OVF Interrupt Enable Position */
- #define TC_INTENSET_OVF_Msk (_U_(0x1) << TC_INTENSET_OVF_Pos) /**< (TC_INTENSET) OVF Interrupt Enable Mask */
- #define TC_INTENSET_OVF TC_INTENSET_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENSET_OVF_Msk instead */
- #define TC_INTENSET_ERR_Pos 1 /**< (TC_INTENSET) ERR Interrupt Enable Position */
- #define TC_INTENSET_ERR_Msk (_U_(0x1) << TC_INTENSET_ERR_Pos) /**< (TC_INTENSET) ERR Interrupt Enable Mask */
- #define TC_INTENSET_ERR TC_INTENSET_ERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENSET_ERR_Msk instead */
- #define TC_INTENSET_MC0_Pos 4 /**< (TC_INTENSET) MC Interrupt Enable 0 Position */
- #define TC_INTENSET_MC0_Msk (_U_(0x1) << TC_INTENSET_MC0_Pos) /**< (TC_INTENSET) MC Interrupt Enable 0 Mask */
- #define TC_INTENSET_MC0 TC_INTENSET_MC0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENSET_MC0_Msk instead */
- #define TC_INTENSET_MC1_Pos 5 /**< (TC_INTENSET) MC Interrupt Enable 1 Position */
- #define TC_INTENSET_MC1_Msk (_U_(0x1) << TC_INTENSET_MC1_Pos) /**< (TC_INTENSET) MC Interrupt Enable 1 Mask */
- #define TC_INTENSET_MC1 TC_INTENSET_MC1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTENSET_MC1_Msk instead */
- #define TC_INTENSET_MASK _U_(0x33) /**< \deprecated (TC_INTENSET) Register MASK (Use TC_INTENSET_Msk instead) */
- #define TC_INTENSET_Msk _U_(0x33) /**< (TC_INTENSET) Register Mask */
- #define TC_INTENSET_MC_Pos 4 /**< (TC_INTENSET Position) MC Interrupt Enable x */
- #define TC_INTENSET_MC_Msk (_U_(0x3) << TC_INTENSET_MC_Pos) /**< (TC_INTENSET Mask) MC */
- #define TC_INTENSET_MC(value) (TC_INTENSET_MC_Msk & ((value) << TC_INTENSET_MC_Pos))
- /* -------- TC_INTFLAG : (TC Offset: 0x0a) (R/W 8) Interrupt Flag Status and Clear -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union { // __I to avoid read-modify-write on write-to-clear register
- struct {
- __I uint8_t OVF:1; /**< bit: 0 OVF Interrupt Flag */
- __I uint8_t ERR:1; /**< bit: 1 ERR Interrupt Flag */
- __I uint8_t :2; /**< bit: 2..3 Reserved */
- __I uint8_t MC0:1; /**< bit: 4 MC Interrupt Flag 0 */
- __I uint8_t MC1:1; /**< bit: 5 MC Interrupt Flag 1 */
- __I uint8_t :2; /**< bit: 6..7 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- __I uint8_t :4; /**< bit: 0..3 Reserved */
- __I uint8_t MC:2; /**< bit: 4..5 MC Interrupt Flag x */
- __I uint8_t :2; /**< bit: 6..7 Reserved */
- } vec; /**< Structure used for vec access */
- uint8_t reg; /**< Type used for register access */
- } TC_INTFLAG_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_INTFLAG_OFFSET (0x0A) /**< (TC_INTFLAG) Interrupt Flag Status and Clear Offset */
- #define TC_INTFLAG_RESETVALUE _U_(0x00) /**< (TC_INTFLAG) Interrupt Flag Status and Clear Reset Value */
- #define TC_INTFLAG_OVF_Pos 0 /**< (TC_INTFLAG) OVF Interrupt Flag Position */
- #define TC_INTFLAG_OVF_Msk (_U_(0x1) << TC_INTFLAG_OVF_Pos) /**< (TC_INTFLAG) OVF Interrupt Flag Mask */
- #define TC_INTFLAG_OVF TC_INTFLAG_OVF_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTFLAG_OVF_Msk instead */
- #define TC_INTFLAG_ERR_Pos 1 /**< (TC_INTFLAG) ERR Interrupt Flag Position */
- #define TC_INTFLAG_ERR_Msk (_U_(0x1) << TC_INTFLAG_ERR_Pos) /**< (TC_INTFLAG) ERR Interrupt Flag Mask */
- #define TC_INTFLAG_ERR TC_INTFLAG_ERR_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTFLAG_ERR_Msk instead */
- #define TC_INTFLAG_MC0_Pos 4 /**< (TC_INTFLAG) MC Interrupt Flag 0 Position */
- #define TC_INTFLAG_MC0_Msk (_U_(0x1) << TC_INTFLAG_MC0_Pos) /**< (TC_INTFLAG) MC Interrupt Flag 0 Mask */
- #define TC_INTFLAG_MC0 TC_INTFLAG_MC0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTFLAG_MC0_Msk instead */
- #define TC_INTFLAG_MC1_Pos 5 /**< (TC_INTFLAG) MC Interrupt Flag 1 Position */
- #define TC_INTFLAG_MC1_Msk (_U_(0x1) << TC_INTFLAG_MC1_Pos) /**< (TC_INTFLAG) MC Interrupt Flag 1 Mask */
- #define TC_INTFLAG_MC1 TC_INTFLAG_MC1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_INTFLAG_MC1_Msk instead */
- #define TC_INTFLAG_MASK _U_(0x33) /**< \deprecated (TC_INTFLAG) Register MASK (Use TC_INTFLAG_Msk instead) */
- #define TC_INTFLAG_Msk _U_(0x33) /**< (TC_INTFLAG) Register Mask */
- #define TC_INTFLAG_MC_Pos 4 /**< (TC_INTFLAG Position) MC Interrupt Flag x */
- #define TC_INTFLAG_MC_Msk (_U_(0x3) << TC_INTFLAG_MC_Pos) /**< (TC_INTFLAG Mask) MC */
- #define TC_INTFLAG_MC(value) (TC_INTFLAG_MC_Msk & ((value) << TC_INTFLAG_MC_Pos))
- /* -------- TC_STATUS : (TC Offset: 0x0b) (R/W 8) Status -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t STOP:1; /**< bit: 0 Stop Status Flag */
- uint8_t SLAVE:1; /**< bit: 1 Slave Status Flag */
- uint8_t :1; /**< bit: 2 Reserved */
- uint8_t PERBUFV:1; /**< bit: 3 Synchronization Busy Status */
- uint8_t CCBUFV0:1; /**< bit: 4 Compare channel buffer 0 valid */
- uint8_t CCBUFV1:1; /**< bit: 5 Compare channel buffer 1 valid */
- uint8_t :2; /**< bit: 6..7 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint8_t :4; /**< bit: 0..3 Reserved */
- uint8_t CCBUFV:2; /**< bit: 4..5 Compare channel buffer x valid */
- uint8_t :2; /**< bit: 6..7 Reserved */
- } vec; /**< Structure used for vec access */
- uint8_t reg; /**< Type used for register access */
- } TC_STATUS_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_STATUS_OFFSET (0x0B) /**< (TC_STATUS) Status Offset */
- #define TC_STATUS_RESETVALUE _U_(0x01) /**< (TC_STATUS) Status Reset Value */
- #define TC_STATUS_STOP_Pos 0 /**< (TC_STATUS) Stop Status Flag Position */
- #define TC_STATUS_STOP_Msk (_U_(0x1) << TC_STATUS_STOP_Pos) /**< (TC_STATUS) Stop Status Flag Mask */
- #define TC_STATUS_STOP TC_STATUS_STOP_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_STATUS_STOP_Msk instead */
- #define TC_STATUS_SLAVE_Pos 1 /**< (TC_STATUS) Slave Status Flag Position */
- #define TC_STATUS_SLAVE_Msk (_U_(0x1) << TC_STATUS_SLAVE_Pos) /**< (TC_STATUS) Slave Status Flag Mask */
- #define TC_STATUS_SLAVE TC_STATUS_SLAVE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_STATUS_SLAVE_Msk instead */
- #define TC_STATUS_PERBUFV_Pos 3 /**< (TC_STATUS) Synchronization Busy Status Position */
- #define TC_STATUS_PERBUFV_Msk (_U_(0x1) << TC_STATUS_PERBUFV_Pos) /**< (TC_STATUS) Synchronization Busy Status Mask */
- #define TC_STATUS_PERBUFV TC_STATUS_PERBUFV_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_STATUS_PERBUFV_Msk instead */
- #define TC_STATUS_CCBUFV0_Pos 4 /**< (TC_STATUS) Compare channel buffer 0 valid Position */
- #define TC_STATUS_CCBUFV0_Msk (_U_(0x1) << TC_STATUS_CCBUFV0_Pos) /**< (TC_STATUS) Compare channel buffer 0 valid Mask */
- #define TC_STATUS_CCBUFV0 TC_STATUS_CCBUFV0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_STATUS_CCBUFV0_Msk instead */
- #define TC_STATUS_CCBUFV1_Pos 5 /**< (TC_STATUS) Compare channel buffer 1 valid Position */
- #define TC_STATUS_CCBUFV1_Msk (_U_(0x1) << TC_STATUS_CCBUFV1_Pos) /**< (TC_STATUS) Compare channel buffer 1 valid Mask */
- #define TC_STATUS_CCBUFV1 TC_STATUS_CCBUFV1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_STATUS_CCBUFV1_Msk instead */
- #define TC_STATUS_MASK _U_(0x3B) /**< \deprecated (TC_STATUS) Register MASK (Use TC_STATUS_Msk instead) */
- #define TC_STATUS_Msk _U_(0x3B) /**< (TC_STATUS) Register Mask */
- #define TC_STATUS_CCBUFV_Pos 4 /**< (TC_STATUS Position) Compare channel buffer x valid */
- #define TC_STATUS_CCBUFV_Msk (_U_(0x3) << TC_STATUS_CCBUFV_Pos) /**< (TC_STATUS Mask) CCBUFV */
- #define TC_STATUS_CCBUFV(value) (TC_STATUS_CCBUFV_Msk & ((value) << TC_STATUS_CCBUFV_Pos))
- /* -------- TC_WAVE : (TC Offset: 0x0c) (R/W 8) Waveform Generation Control -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t WAVEGEN:2; /**< bit: 0..1 Waveform Generation Mode */
- uint8_t :6; /**< bit: 2..7 Reserved */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_WAVE_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_WAVE_OFFSET (0x0C) /**< (TC_WAVE) Waveform Generation Control Offset */
- #define TC_WAVE_RESETVALUE _U_(0x00) /**< (TC_WAVE) Waveform Generation Control Reset Value */
- #define TC_WAVE_WAVEGEN_Pos 0 /**< (TC_WAVE) Waveform Generation Mode Position */
- #define TC_WAVE_WAVEGEN_Msk (_U_(0x3) << TC_WAVE_WAVEGEN_Pos) /**< (TC_WAVE) Waveform Generation Mode Mask */
- #define TC_WAVE_WAVEGEN(value) (TC_WAVE_WAVEGEN_Msk & ((value) << TC_WAVE_WAVEGEN_Pos))
- #define TC_WAVE_WAVEGEN_NFRQ_Val _U_(0x0) /**< (TC_WAVE) Normal frequency */
- #define TC_WAVE_WAVEGEN_MFRQ_Val _U_(0x1) /**< (TC_WAVE) Match frequency */
- #define TC_WAVE_WAVEGEN_NPWM_Val _U_(0x2) /**< (TC_WAVE) Normal PWM */
- #define TC_WAVE_WAVEGEN_MPWM_Val _U_(0x3) /**< (TC_WAVE) Match PWM */
- #define TC_WAVE_WAVEGEN_NFRQ (TC_WAVE_WAVEGEN_NFRQ_Val << TC_WAVE_WAVEGEN_Pos) /**< (TC_WAVE) Normal frequency Position */
- #define TC_WAVE_WAVEGEN_MFRQ (TC_WAVE_WAVEGEN_MFRQ_Val << TC_WAVE_WAVEGEN_Pos) /**< (TC_WAVE) Match frequency Position */
- #define TC_WAVE_WAVEGEN_NPWM (TC_WAVE_WAVEGEN_NPWM_Val << TC_WAVE_WAVEGEN_Pos) /**< (TC_WAVE) Normal PWM Position */
- #define TC_WAVE_WAVEGEN_MPWM (TC_WAVE_WAVEGEN_MPWM_Val << TC_WAVE_WAVEGEN_Pos) /**< (TC_WAVE) Match PWM Position */
- #define TC_WAVE_MASK _U_(0x03) /**< \deprecated (TC_WAVE) Register MASK (Use TC_WAVE_Msk instead) */
- #define TC_WAVE_Msk _U_(0x03) /**< (TC_WAVE) Register Mask */
- /* -------- TC_DRVCTRL : (TC Offset: 0x0d) (R/W 8) Control C -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t INVEN0:1; /**< bit: 0 Output Waveform Invert Enable 0 */
- uint8_t INVEN1:1; /**< bit: 1 Output Waveform Invert Enable 1 */
- uint8_t :6; /**< bit: 2..7 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint8_t INVEN:2; /**< bit: 0..1 Output Waveform Invert Enable x */
- uint8_t :6; /**< bit: 2..7 Reserved */
- } vec; /**< Structure used for vec access */
- uint8_t reg; /**< Type used for register access */
- } TC_DRVCTRL_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_DRVCTRL_OFFSET (0x0D) /**< (TC_DRVCTRL) Control C Offset */
- #define TC_DRVCTRL_RESETVALUE _U_(0x00) /**< (TC_DRVCTRL) Control C Reset Value */
- #define TC_DRVCTRL_INVEN0_Pos 0 /**< (TC_DRVCTRL) Output Waveform Invert Enable 0 Position */
- #define TC_DRVCTRL_INVEN0_Msk (_U_(0x1) << TC_DRVCTRL_INVEN0_Pos) /**< (TC_DRVCTRL) Output Waveform Invert Enable 0 Mask */
- #define TC_DRVCTRL_INVEN0 TC_DRVCTRL_INVEN0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_DRVCTRL_INVEN0_Msk instead */
- #define TC_DRVCTRL_INVEN1_Pos 1 /**< (TC_DRVCTRL) Output Waveform Invert Enable 1 Position */
- #define TC_DRVCTRL_INVEN1_Msk (_U_(0x1) << TC_DRVCTRL_INVEN1_Pos) /**< (TC_DRVCTRL) Output Waveform Invert Enable 1 Mask */
- #define TC_DRVCTRL_INVEN1 TC_DRVCTRL_INVEN1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_DRVCTRL_INVEN1_Msk instead */
- #define TC_DRVCTRL_MASK _U_(0x03) /**< \deprecated (TC_DRVCTRL) Register MASK (Use TC_DRVCTRL_Msk instead) */
- #define TC_DRVCTRL_Msk _U_(0x03) /**< (TC_DRVCTRL) Register Mask */
- #define TC_DRVCTRL_INVEN_Pos 0 /**< (TC_DRVCTRL Position) Output Waveform Invert Enable x */
- #define TC_DRVCTRL_INVEN_Msk (_U_(0x3) << TC_DRVCTRL_INVEN_Pos) /**< (TC_DRVCTRL Mask) INVEN */
- #define TC_DRVCTRL_INVEN(value) (TC_DRVCTRL_INVEN_Msk & ((value) << TC_DRVCTRL_INVEN_Pos))
- /* -------- TC_DBGCTRL : (TC Offset: 0x0f) (R/W 8) Debug Control -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t DBGRUN:1; /**< bit: 0 Run During Debug */
- uint8_t :7; /**< bit: 1..7 Reserved */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_DBGCTRL_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_DBGCTRL_OFFSET (0x0F) /**< (TC_DBGCTRL) Debug Control Offset */
- #define TC_DBGCTRL_RESETVALUE _U_(0x00) /**< (TC_DBGCTRL) Debug Control Reset Value */
- #define TC_DBGCTRL_DBGRUN_Pos 0 /**< (TC_DBGCTRL) Run During Debug Position */
- #define TC_DBGCTRL_DBGRUN_Msk (_U_(0x1) << TC_DBGCTRL_DBGRUN_Pos) /**< (TC_DBGCTRL) Run During Debug Mask */
- #define TC_DBGCTRL_DBGRUN TC_DBGCTRL_DBGRUN_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_DBGCTRL_DBGRUN_Msk instead */
- #define TC_DBGCTRL_MASK _U_(0x01) /**< \deprecated (TC_DBGCTRL) Register MASK (Use TC_DBGCTRL_Msk instead) */
- #define TC_DBGCTRL_Msk _U_(0x01) /**< (TC_DBGCTRL) Register Mask */
- /* -------- TC_SYNCBUSY : (TC Offset: 0x10) (R/ 32) Synchronization Status -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t SWRST:1; /**< bit: 0 swrst */
- uint32_t ENABLE:1; /**< bit: 1 enable */
- uint32_t CTRLB:1; /**< bit: 2 CTRLB */
- uint32_t STATUS:1; /**< bit: 3 STATUS */
- uint32_t COUNT:1; /**< bit: 4 Counter */
- uint32_t PER:1; /**< bit: 5 Period */
- uint32_t CC0:1; /**< bit: 6 Compare Channel 0 */
- uint32_t CC1:1; /**< bit: 7 Compare Channel 1 */
- uint32_t :24; /**< bit: 8..31 Reserved */
- } bit; /**< Structure used for bit access */
- struct {
- uint32_t :6; /**< bit: 0..5 Reserved */
- uint32_t CC:2; /**< bit: 6..7 Compare Channel x */
- uint32_t :24; /**< bit: 8..31 Reserved */
- } vec; /**< Structure used for vec access */
- uint32_t reg; /**< Type used for register access */
- } TC_SYNCBUSY_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_SYNCBUSY_OFFSET (0x10) /**< (TC_SYNCBUSY) Synchronization Status Offset */
- #define TC_SYNCBUSY_RESETVALUE _U_(0x00) /**< (TC_SYNCBUSY) Synchronization Status Reset Value */
- #define TC_SYNCBUSY_SWRST_Pos 0 /**< (TC_SYNCBUSY) swrst Position */
- #define TC_SYNCBUSY_SWRST_Msk (_U_(0x1) << TC_SYNCBUSY_SWRST_Pos) /**< (TC_SYNCBUSY) swrst Mask */
- #define TC_SYNCBUSY_SWRST TC_SYNCBUSY_SWRST_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_SWRST_Msk instead */
- #define TC_SYNCBUSY_ENABLE_Pos 1 /**< (TC_SYNCBUSY) enable Position */
- #define TC_SYNCBUSY_ENABLE_Msk (_U_(0x1) << TC_SYNCBUSY_ENABLE_Pos) /**< (TC_SYNCBUSY) enable Mask */
- #define TC_SYNCBUSY_ENABLE TC_SYNCBUSY_ENABLE_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_ENABLE_Msk instead */
- #define TC_SYNCBUSY_CTRLB_Pos 2 /**< (TC_SYNCBUSY) CTRLB Position */
- #define TC_SYNCBUSY_CTRLB_Msk (_U_(0x1) << TC_SYNCBUSY_CTRLB_Pos) /**< (TC_SYNCBUSY) CTRLB Mask */
- #define TC_SYNCBUSY_CTRLB TC_SYNCBUSY_CTRLB_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_CTRLB_Msk instead */
- #define TC_SYNCBUSY_STATUS_Pos 3 /**< (TC_SYNCBUSY) STATUS Position */
- #define TC_SYNCBUSY_STATUS_Msk (_U_(0x1) << TC_SYNCBUSY_STATUS_Pos) /**< (TC_SYNCBUSY) STATUS Mask */
- #define TC_SYNCBUSY_STATUS TC_SYNCBUSY_STATUS_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_STATUS_Msk instead */
- #define TC_SYNCBUSY_COUNT_Pos 4 /**< (TC_SYNCBUSY) Counter Position */
- #define TC_SYNCBUSY_COUNT_Msk (_U_(0x1) << TC_SYNCBUSY_COUNT_Pos) /**< (TC_SYNCBUSY) Counter Mask */
- #define TC_SYNCBUSY_COUNT TC_SYNCBUSY_COUNT_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_COUNT_Msk instead */
- #define TC_SYNCBUSY_PER_Pos 5 /**< (TC_SYNCBUSY) Period Position */
- #define TC_SYNCBUSY_PER_Msk (_U_(0x1) << TC_SYNCBUSY_PER_Pos) /**< (TC_SYNCBUSY) Period Mask */
- #define TC_SYNCBUSY_PER TC_SYNCBUSY_PER_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_PER_Msk instead */
- #define TC_SYNCBUSY_CC0_Pos 6 /**< (TC_SYNCBUSY) Compare Channel 0 Position */
- #define TC_SYNCBUSY_CC0_Msk (_U_(0x1) << TC_SYNCBUSY_CC0_Pos) /**< (TC_SYNCBUSY) Compare Channel 0 Mask */
- #define TC_SYNCBUSY_CC0 TC_SYNCBUSY_CC0_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_CC0_Msk instead */
- #define TC_SYNCBUSY_CC1_Pos 7 /**< (TC_SYNCBUSY) Compare Channel 1 Position */
- #define TC_SYNCBUSY_CC1_Msk (_U_(0x1) << TC_SYNCBUSY_CC1_Pos) /**< (TC_SYNCBUSY) Compare Channel 1 Mask */
- #define TC_SYNCBUSY_CC1 TC_SYNCBUSY_CC1_Msk /**< \deprecated Old style mask definition for 1 bit bitfield. Use TC_SYNCBUSY_CC1_Msk instead */
- #define TC_SYNCBUSY_MASK _U_(0xFF) /**< \deprecated (TC_SYNCBUSY) Register MASK (Use TC_SYNCBUSY_Msk instead) */
- #define TC_SYNCBUSY_Msk _U_(0xFF) /**< (TC_SYNCBUSY) Register Mask */
- #define TC_SYNCBUSY_CC_Pos 6 /**< (TC_SYNCBUSY Position) Compare Channel x */
- #define TC_SYNCBUSY_CC_Msk (_U_(0x3) << TC_SYNCBUSY_CC_Pos) /**< (TC_SYNCBUSY Mask) CC */
- #define TC_SYNCBUSY_CC(value) (TC_SYNCBUSY_CC_Msk & ((value) << TC_SYNCBUSY_CC_Pos))
- /* -------- TC_COUNT8_COUNT : (TC Offset: 0x14) (R/W 8) COUNT8 Count -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t COUNT:8; /**< bit: 0..7 Counter Value */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_COUNT8_COUNT_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT8_COUNT_OFFSET (0x14) /**< (TC_COUNT8_COUNT) COUNT8 Count Offset */
- #define TC_COUNT8_COUNT_RESETVALUE _U_(0x00) /**< (TC_COUNT8_COUNT) COUNT8 Count Reset Value */
- #define TC_COUNT8_COUNT_COUNT_Pos 0 /**< (TC_COUNT8_COUNT) Counter Value Position */
- #define TC_COUNT8_COUNT_COUNT_Msk (_U_(0xFF) << TC_COUNT8_COUNT_COUNT_Pos) /**< (TC_COUNT8_COUNT) Counter Value Mask */
- #define TC_COUNT8_COUNT_COUNT(value) (TC_COUNT8_COUNT_COUNT_Msk & ((value) << TC_COUNT8_COUNT_COUNT_Pos))
- #define TC_COUNT8_COUNT_MASK _U_(0xFF) /**< \deprecated (TC_COUNT8_COUNT) Register MASK (Use TC_COUNT8_COUNT_Msk instead) */
- #define TC_COUNT8_COUNT_Msk _U_(0xFF) /**< (TC_COUNT8_COUNT) Register Mask */
- /* -------- TC_COUNT16_COUNT : (TC Offset: 0x14) (R/W 16) COUNT16 Count -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint16_t COUNT:16; /**< bit: 0..15 Counter Value */
- } bit; /**< Structure used for bit access */
- uint16_t reg; /**< Type used for register access */
- } TC_COUNT16_COUNT_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT16_COUNT_OFFSET (0x14) /**< (TC_COUNT16_COUNT) COUNT16 Count Offset */
- #define TC_COUNT16_COUNT_RESETVALUE _U_(0x00) /**< (TC_COUNT16_COUNT) COUNT16 Count Reset Value */
- #define TC_COUNT16_COUNT_COUNT_Pos 0 /**< (TC_COUNT16_COUNT) Counter Value Position */
- #define TC_COUNT16_COUNT_COUNT_Msk (_U_(0xFFFF) << TC_COUNT16_COUNT_COUNT_Pos) /**< (TC_COUNT16_COUNT) Counter Value Mask */
- #define TC_COUNT16_COUNT_COUNT(value) (TC_COUNT16_COUNT_COUNT_Msk & ((value) << TC_COUNT16_COUNT_COUNT_Pos))
- #define TC_COUNT16_COUNT_MASK _U_(0xFFFF) /**< \deprecated (TC_COUNT16_COUNT) Register MASK (Use TC_COUNT16_COUNT_Msk instead) */
- #define TC_COUNT16_COUNT_Msk _U_(0xFFFF) /**< (TC_COUNT16_COUNT) Register Mask */
- /* -------- TC_COUNT32_COUNT : (TC Offset: 0x14) (R/W 32) COUNT32 Count -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t COUNT:32; /**< bit: 0..31 Counter Value */
- } bit; /**< Structure used for bit access */
- uint32_t reg; /**< Type used for register access */
- } TC_COUNT32_COUNT_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT32_COUNT_OFFSET (0x14) /**< (TC_COUNT32_COUNT) COUNT32 Count Offset */
- #define TC_COUNT32_COUNT_RESETVALUE _U_(0x00) /**< (TC_COUNT32_COUNT) COUNT32 Count Reset Value */
- #define TC_COUNT32_COUNT_COUNT_Pos 0 /**< (TC_COUNT32_COUNT) Counter Value Position */
- #define TC_COUNT32_COUNT_COUNT_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_COUNT_COUNT_Pos) /**< (TC_COUNT32_COUNT) Counter Value Mask */
- #define TC_COUNT32_COUNT_COUNT(value) (TC_COUNT32_COUNT_COUNT_Msk & ((value) << TC_COUNT32_COUNT_COUNT_Pos))
- #define TC_COUNT32_COUNT_MASK _U_(0xFFFFFFFF) /**< \deprecated (TC_COUNT32_COUNT) Register MASK (Use TC_COUNT32_COUNT_Msk instead) */
- #define TC_COUNT32_COUNT_Msk _U_(0xFFFFFFFF) /**< (TC_COUNT32_COUNT) Register Mask */
- /* -------- TC_COUNT32_PER : (TC Offset: 0x18) (R/W 32) COUNT32 Period -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t PER:32; /**< bit: 0..31 Period Value */
- } bit; /**< Structure used for bit access */
- uint32_t reg; /**< Type used for register access */
- } TC_COUNT32_PER_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT32_PER_OFFSET (0x18) /**< (TC_COUNT32_PER) COUNT32 Period Offset */
- #define TC_COUNT32_PER_RESETVALUE _U_(0xFFFFFFFF) /**< (TC_COUNT32_PER) COUNT32 Period Reset Value */
- #define TC_COUNT32_PER_PER_Pos 0 /**< (TC_COUNT32_PER) Period Value Position */
- #define TC_COUNT32_PER_PER_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_PER_PER_Pos) /**< (TC_COUNT32_PER) Period Value Mask */
- #define TC_COUNT32_PER_PER(value) (TC_COUNT32_PER_PER_Msk & ((value) << TC_COUNT32_PER_PER_Pos))
- #define TC_COUNT32_PER_MASK _U_(0xFFFFFFFF) /**< \deprecated (TC_COUNT32_PER) Register MASK (Use TC_COUNT32_PER_Msk instead) */
- #define TC_COUNT32_PER_Msk _U_(0xFFFFFFFF) /**< (TC_COUNT32_PER) Register Mask */
- /* -------- TC_COUNT16_PER : (TC Offset: 0x1a) (R/W 16) COUNT16 Period -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint16_t PER:16; /**< bit: 0..15 Period Value */
- } bit; /**< Structure used for bit access */
- uint16_t reg; /**< Type used for register access */
- } TC_COUNT16_PER_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT16_PER_OFFSET (0x1A) /**< (TC_COUNT16_PER) COUNT16 Period Offset */
- #define TC_COUNT16_PER_RESETVALUE _U_(0xFFFF) /**< (TC_COUNT16_PER) COUNT16 Period Reset Value */
- #define TC_COUNT16_PER_PER_Pos 0 /**< (TC_COUNT16_PER) Period Value Position */
- #define TC_COUNT16_PER_PER_Msk (_U_(0xFFFF) << TC_COUNT16_PER_PER_Pos) /**< (TC_COUNT16_PER) Period Value Mask */
- #define TC_COUNT16_PER_PER(value) (TC_COUNT16_PER_PER_Msk & ((value) << TC_COUNT16_PER_PER_Pos))
- #define TC_COUNT16_PER_MASK _U_(0xFFFF) /**< \deprecated (TC_COUNT16_PER) Register MASK (Use TC_COUNT16_PER_Msk instead) */
- #define TC_COUNT16_PER_Msk _U_(0xFFFF) /**< (TC_COUNT16_PER) Register Mask */
- /* -------- TC_COUNT8_PER : (TC Offset: 0x1b) (R/W 8) COUNT8 Period -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t PER:8; /**< bit: 0..7 Period Value */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_COUNT8_PER_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT8_PER_OFFSET (0x1B) /**< (TC_COUNT8_PER) COUNT8 Period Offset */
- #define TC_COUNT8_PER_RESETVALUE _U_(0xFF) /**< (TC_COUNT8_PER) COUNT8 Period Reset Value */
- #define TC_COUNT8_PER_PER_Pos 0 /**< (TC_COUNT8_PER) Period Value Position */
- #define TC_COUNT8_PER_PER_Msk (_U_(0xFF) << TC_COUNT8_PER_PER_Pos) /**< (TC_COUNT8_PER) Period Value Mask */
- #define TC_COUNT8_PER_PER(value) (TC_COUNT8_PER_PER_Msk & ((value) << TC_COUNT8_PER_PER_Pos))
- #define TC_COUNT8_PER_MASK _U_(0xFF) /**< \deprecated (TC_COUNT8_PER) Register MASK (Use TC_COUNT8_PER_Msk instead) */
- #define TC_COUNT8_PER_Msk _U_(0xFF) /**< (TC_COUNT8_PER) Register Mask */
- /* -------- TC_COUNT8_CC : (TC Offset: 0x1c) (R/W 8) COUNT8 Compare and Capture -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t CC:8; /**< bit: 0..7 Counter/Compare Value */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_COUNT8_CC_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT8_CC_OFFSET (0x1C) /**< (TC_COUNT8_CC) COUNT8 Compare and Capture Offset */
- #define TC_COUNT8_CC_RESETVALUE _U_(0x00) /**< (TC_COUNT8_CC) COUNT8 Compare and Capture Reset Value */
- #define TC_COUNT8_CC_CC_Pos 0 /**< (TC_COUNT8_CC) Counter/Compare Value Position */
- #define TC_COUNT8_CC_CC_Msk (_U_(0xFF) << TC_COUNT8_CC_CC_Pos) /**< (TC_COUNT8_CC) Counter/Compare Value Mask */
- #define TC_COUNT8_CC_CC(value) (TC_COUNT8_CC_CC_Msk & ((value) << TC_COUNT8_CC_CC_Pos))
- #define TC_COUNT8_CC_MASK _U_(0xFF) /**< \deprecated (TC_COUNT8_CC) Register MASK (Use TC_COUNT8_CC_Msk instead) */
- #define TC_COUNT8_CC_Msk _U_(0xFF) /**< (TC_COUNT8_CC) Register Mask */
- /* -------- TC_COUNT16_CC : (TC Offset: 0x1c) (R/W 16) COUNT16 Compare and Capture -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint16_t CC:16; /**< bit: 0..15 Counter/Compare Value */
- } bit; /**< Structure used for bit access */
- uint16_t reg; /**< Type used for register access */
- } TC_COUNT16_CC_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT16_CC_OFFSET (0x1C) /**< (TC_COUNT16_CC) COUNT16 Compare and Capture Offset */
- #define TC_COUNT16_CC_RESETVALUE _U_(0x00) /**< (TC_COUNT16_CC) COUNT16 Compare and Capture Reset Value */
- #define TC_COUNT16_CC_CC_Pos 0 /**< (TC_COUNT16_CC) Counter/Compare Value Position */
- #define TC_COUNT16_CC_CC_Msk (_U_(0xFFFF) << TC_COUNT16_CC_CC_Pos) /**< (TC_COUNT16_CC) Counter/Compare Value Mask */
- #define TC_COUNT16_CC_CC(value) (TC_COUNT16_CC_CC_Msk & ((value) << TC_COUNT16_CC_CC_Pos))
- #define TC_COUNT16_CC_MASK _U_(0xFFFF) /**< \deprecated (TC_COUNT16_CC) Register MASK (Use TC_COUNT16_CC_Msk instead) */
- #define TC_COUNT16_CC_Msk _U_(0xFFFF) /**< (TC_COUNT16_CC) Register Mask */
- /* -------- TC_COUNT32_CC : (TC Offset: 0x1c) (R/W 32) COUNT32 Compare and Capture -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t CC:32; /**< bit: 0..31 Counter/Compare Value */
- } bit; /**< Structure used for bit access */
- uint32_t reg; /**< Type used for register access */
- } TC_COUNT32_CC_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT32_CC_OFFSET (0x1C) /**< (TC_COUNT32_CC) COUNT32 Compare and Capture Offset */
- #define TC_COUNT32_CC_RESETVALUE _U_(0x00) /**< (TC_COUNT32_CC) COUNT32 Compare and Capture Reset Value */
- #define TC_COUNT32_CC_CC_Pos 0 /**< (TC_COUNT32_CC) Counter/Compare Value Position */
- #define TC_COUNT32_CC_CC_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_CC_CC_Pos) /**< (TC_COUNT32_CC) Counter/Compare Value Mask */
- #define TC_COUNT32_CC_CC(value) (TC_COUNT32_CC_CC_Msk & ((value) << TC_COUNT32_CC_CC_Pos))
- #define TC_COUNT32_CC_MASK _U_(0xFFFFFFFF) /**< \deprecated (TC_COUNT32_CC) Register MASK (Use TC_COUNT32_CC_Msk instead) */
- #define TC_COUNT32_CC_Msk _U_(0xFFFFFFFF) /**< (TC_COUNT32_CC) Register Mask */
- /* -------- TC_COUNT32_PERBUF : (TC Offset: 0x2c) (R/W 32) COUNT32 Period Buffer -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t PERBUF:32; /**< bit: 0..31 Period Buffer Value */
- } bit; /**< Structure used for bit access */
- uint32_t reg; /**< Type used for register access */
- } TC_COUNT32_PERBUF_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT32_PERBUF_OFFSET (0x2C) /**< (TC_COUNT32_PERBUF) COUNT32 Period Buffer Offset */
- #define TC_COUNT32_PERBUF_RESETVALUE _U_(0xFFFFFFFF) /**< (TC_COUNT32_PERBUF) COUNT32 Period Buffer Reset Value */
- #define TC_COUNT32_PERBUF_PERBUF_Pos 0 /**< (TC_COUNT32_PERBUF) Period Buffer Value Position */
- #define TC_COUNT32_PERBUF_PERBUF_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_PERBUF_PERBUF_Pos) /**< (TC_COUNT32_PERBUF) Period Buffer Value Mask */
- #define TC_COUNT32_PERBUF_PERBUF(value) (TC_COUNT32_PERBUF_PERBUF_Msk & ((value) << TC_COUNT32_PERBUF_PERBUF_Pos))
- #define TC_COUNT32_PERBUF_MASK _U_(0xFFFFFFFF) /**< \deprecated (TC_COUNT32_PERBUF) Register MASK (Use TC_COUNT32_PERBUF_Msk instead) */
- #define TC_COUNT32_PERBUF_Msk _U_(0xFFFFFFFF) /**< (TC_COUNT32_PERBUF) Register Mask */
- /* -------- TC_COUNT16_PERBUF : (TC Offset: 0x2e) (R/W 16) COUNT16 Period Buffer -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint16_t PERBUF:16; /**< bit: 0..15 Period Buffer Value */
- } bit; /**< Structure used for bit access */
- uint16_t reg; /**< Type used for register access */
- } TC_COUNT16_PERBUF_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT16_PERBUF_OFFSET (0x2E) /**< (TC_COUNT16_PERBUF) COUNT16 Period Buffer Offset */
- #define TC_COUNT16_PERBUF_RESETVALUE _U_(0xFFFF) /**< (TC_COUNT16_PERBUF) COUNT16 Period Buffer Reset Value */
- #define TC_COUNT16_PERBUF_PERBUF_Pos 0 /**< (TC_COUNT16_PERBUF) Period Buffer Value Position */
- #define TC_COUNT16_PERBUF_PERBUF_Msk (_U_(0xFFFF) << TC_COUNT16_PERBUF_PERBUF_Pos) /**< (TC_COUNT16_PERBUF) Period Buffer Value Mask */
- #define TC_COUNT16_PERBUF_PERBUF(value) (TC_COUNT16_PERBUF_PERBUF_Msk & ((value) << TC_COUNT16_PERBUF_PERBUF_Pos))
- #define TC_COUNT16_PERBUF_MASK _U_(0xFFFF) /**< \deprecated (TC_COUNT16_PERBUF) Register MASK (Use TC_COUNT16_PERBUF_Msk instead) */
- #define TC_COUNT16_PERBUF_Msk _U_(0xFFFF) /**< (TC_COUNT16_PERBUF) Register Mask */
- /* -------- TC_COUNT8_PERBUF : (TC Offset: 0x2f) (R/W 8) COUNT8 Period Buffer -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t PERBUF:8; /**< bit: 0..7 Period Buffer Value */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_COUNT8_PERBUF_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT8_PERBUF_OFFSET (0x2F) /**< (TC_COUNT8_PERBUF) COUNT8 Period Buffer Offset */
- #define TC_COUNT8_PERBUF_RESETVALUE _U_(0xFF) /**< (TC_COUNT8_PERBUF) COUNT8 Period Buffer Reset Value */
- #define TC_COUNT8_PERBUF_PERBUF_Pos 0 /**< (TC_COUNT8_PERBUF) Period Buffer Value Position */
- #define TC_COUNT8_PERBUF_PERBUF_Msk (_U_(0xFF) << TC_COUNT8_PERBUF_PERBUF_Pos) /**< (TC_COUNT8_PERBUF) Period Buffer Value Mask */
- #define TC_COUNT8_PERBUF_PERBUF(value) (TC_COUNT8_PERBUF_PERBUF_Msk & ((value) << TC_COUNT8_PERBUF_PERBUF_Pos))
- #define TC_COUNT8_PERBUF_MASK _U_(0xFF) /**< \deprecated (TC_COUNT8_PERBUF) Register MASK (Use TC_COUNT8_PERBUF_Msk instead) */
- #define TC_COUNT8_PERBUF_Msk _U_(0xFF) /**< (TC_COUNT8_PERBUF) Register Mask */
- /* -------- TC_COUNT8_CCBUF : (TC Offset: 0x30) (R/W 8) COUNT8 Compare and Capture Buffer -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint8_t CCBUF:8; /**< bit: 0..7 Counter/Compare Buffer Value */
- } bit; /**< Structure used for bit access */
- uint8_t reg; /**< Type used for register access */
- } TC_COUNT8_CCBUF_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT8_CCBUF_OFFSET (0x30) /**< (TC_COUNT8_CCBUF) COUNT8 Compare and Capture Buffer Offset */
- #define TC_COUNT8_CCBUF_RESETVALUE _U_(0x00) /**< (TC_COUNT8_CCBUF) COUNT8 Compare and Capture Buffer Reset Value */
- #define TC_COUNT8_CCBUF_CCBUF_Pos 0 /**< (TC_COUNT8_CCBUF) Counter/Compare Buffer Value Position */
- #define TC_COUNT8_CCBUF_CCBUF_Msk (_U_(0xFF) << TC_COUNT8_CCBUF_CCBUF_Pos) /**< (TC_COUNT8_CCBUF) Counter/Compare Buffer Value Mask */
- #define TC_COUNT8_CCBUF_CCBUF(value) (TC_COUNT8_CCBUF_CCBUF_Msk & ((value) << TC_COUNT8_CCBUF_CCBUF_Pos))
- #define TC_COUNT8_CCBUF_MASK _U_(0xFF) /**< \deprecated (TC_COUNT8_CCBUF) Register MASK (Use TC_COUNT8_CCBUF_Msk instead) */
- #define TC_COUNT8_CCBUF_Msk _U_(0xFF) /**< (TC_COUNT8_CCBUF) Register Mask */
- /* -------- TC_COUNT16_CCBUF : (TC Offset: 0x30) (R/W 16) COUNT16 Compare and Capture Buffer -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint16_t CCBUF:16; /**< bit: 0..15 Counter/Compare Buffer Value */
- } bit; /**< Structure used for bit access */
- uint16_t reg; /**< Type used for register access */
- } TC_COUNT16_CCBUF_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT16_CCBUF_OFFSET (0x30) /**< (TC_COUNT16_CCBUF) COUNT16 Compare and Capture Buffer Offset */
- #define TC_COUNT16_CCBUF_RESETVALUE _U_(0x00) /**< (TC_COUNT16_CCBUF) COUNT16 Compare and Capture Buffer Reset Value */
- #define TC_COUNT16_CCBUF_CCBUF_Pos 0 /**< (TC_COUNT16_CCBUF) Counter/Compare Buffer Value Position */
- #define TC_COUNT16_CCBUF_CCBUF_Msk (_U_(0xFFFF) << TC_COUNT16_CCBUF_CCBUF_Pos) /**< (TC_COUNT16_CCBUF) Counter/Compare Buffer Value Mask */
- #define TC_COUNT16_CCBUF_CCBUF(value) (TC_COUNT16_CCBUF_CCBUF_Msk & ((value) << TC_COUNT16_CCBUF_CCBUF_Pos))
- #define TC_COUNT16_CCBUF_MASK _U_(0xFFFF) /**< \deprecated (TC_COUNT16_CCBUF) Register MASK (Use TC_COUNT16_CCBUF_Msk instead) */
- #define TC_COUNT16_CCBUF_Msk _U_(0xFFFF) /**< (TC_COUNT16_CCBUF) Register Mask */
- /* -------- TC_COUNT32_CCBUF : (TC Offset: 0x30) (R/W 32) COUNT32 Compare and Capture Buffer -------- */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- typedef union {
- struct {
- uint32_t CCBUF:32; /**< bit: 0..31 Counter/Compare Buffer Value */
- } bit; /**< Structure used for bit access */
- uint32_t reg; /**< Type used for register access */
- } TC_COUNT32_CCBUF_Type;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- #define TC_COUNT32_CCBUF_OFFSET (0x30) /**< (TC_COUNT32_CCBUF) COUNT32 Compare and Capture Buffer Offset */
- #define TC_COUNT32_CCBUF_RESETVALUE _U_(0x00) /**< (TC_COUNT32_CCBUF) COUNT32 Compare and Capture Buffer Reset Value */
- #define TC_COUNT32_CCBUF_CCBUF_Pos 0 /**< (TC_COUNT32_CCBUF) Counter/Compare Buffer Value Position */
- #define TC_COUNT32_CCBUF_CCBUF_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_CCBUF_CCBUF_Pos) /**< (TC_COUNT32_CCBUF) Counter/Compare Buffer Value Mask */
- #define TC_COUNT32_CCBUF_CCBUF(value) (TC_COUNT32_CCBUF_CCBUF_Msk & ((value) << TC_COUNT32_CCBUF_CCBUF_Pos))
- #define TC_COUNT32_CCBUF_MASK _U_(0xFFFFFFFF) /**< \deprecated (TC_COUNT32_CCBUF) Register MASK (Use TC_COUNT32_CCBUF_Msk instead) */
- #define TC_COUNT32_CCBUF_Msk _U_(0xFFFFFFFF) /**< (TC_COUNT32_CCBUF) Register Mask */
- #if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
- /** \brief TC hardware registers */
- typedef struct { /* Basic Timer Counter */
- __IO TC_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) Control A */
- __IO TC_CTRLBCLR_Type CTRLBCLR; /**< Offset: 0x04 (R/W 8) Control B Clear */
- __IO TC_CTRLBSET_Type CTRLBSET; /**< Offset: 0x05 (R/W 8) Control B Set */
- __IO TC_EVCTRL_Type EVCTRL; /**< Offset: 0x06 (R/W 16) Event Control */
- __IO TC_INTENCLR_Type INTENCLR; /**< Offset: 0x08 (R/W 8) Interrupt Enable Clear */
- __IO TC_INTENSET_Type INTENSET; /**< Offset: 0x09 (R/W 8) Interrupt Enable Set */
- __IO TC_INTFLAG_Type INTFLAG; /**< Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear */
- __IO TC_STATUS_Type STATUS; /**< Offset: 0x0B (R/W 8) Status */
- __IO TC_WAVE_Type WAVE; /**< Offset: 0x0C (R/W 8) Waveform Generation Control */
- __IO TC_DRVCTRL_Type DRVCTRL; /**< Offset: 0x0D (R/W 8) Control C */
- __I uint8_t Reserved1[1];
- __IO TC_DBGCTRL_Type DBGCTRL; /**< Offset: 0x0F (R/W 8) Debug Control */
- __I TC_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x10 (R/ 32) Synchronization Status */
- __IO TC_COUNT8_COUNT_Type COUNT; /**< Offset: 0x14 (R/W 8) COUNT8 Count */
- __I uint8_t Reserved2[6];
- __IO TC_COUNT8_PER_Type PER; /**< Offset: 0x1B (R/W 8) COUNT8 Period */
- __IO TC_COUNT8_CC_Type CC[2]; /**< Offset: 0x1C (R/W 8) COUNT8 Compare and Capture */
- __I uint8_t Reserved3[17];
- __IO TC_COUNT8_PERBUF_Type PERBUF; /**< Offset: 0x2F (R/W 8) COUNT8 Period Buffer */
- __IO TC_COUNT8_CCBUF_Type CCBUF[2]; /**< Offset: 0x30 (R/W 8) COUNT8 Compare and Capture Buffer */
- } TcCount8;
- /** \brief TC hardware registers */
- typedef struct { /* Basic Timer Counter */
- __IO TC_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) Control A */
- __IO TC_CTRLBCLR_Type CTRLBCLR; /**< Offset: 0x04 (R/W 8) Control B Clear */
- __IO TC_CTRLBSET_Type CTRLBSET; /**< Offset: 0x05 (R/W 8) Control B Set */
- __IO TC_EVCTRL_Type EVCTRL; /**< Offset: 0x06 (R/W 16) Event Control */
- __IO TC_INTENCLR_Type INTENCLR; /**< Offset: 0x08 (R/W 8) Interrupt Enable Clear */
- __IO TC_INTENSET_Type INTENSET; /**< Offset: 0x09 (R/W 8) Interrupt Enable Set */
- __IO TC_INTFLAG_Type INTFLAG; /**< Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear */
- __IO TC_STATUS_Type STATUS; /**< Offset: 0x0B (R/W 8) Status */
- __IO TC_WAVE_Type WAVE; /**< Offset: 0x0C (R/W 8) Waveform Generation Control */
- __IO TC_DRVCTRL_Type DRVCTRL; /**< Offset: 0x0D (R/W 8) Control C */
- __I uint8_t Reserved1[1];
- __IO TC_DBGCTRL_Type DBGCTRL; /**< Offset: 0x0F (R/W 8) Debug Control */
- __I TC_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x10 (R/ 32) Synchronization Status */
- __IO TC_COUNT16_COUNT_Type COUNT; /**< Offset: 0x14 (R/W 16) COUNT16 Count */
- __I uint8_t Reserved2[4];
- __IO TC_COUNT16_PER_Type PER; /**< Offset: 0x1A (R/W 16) COUNT16 Period */
- __IO TC_COUNT16_CC_Type CC[2]; /**< Offset: 0x1C (R/W 16) COUNT16 Compare and Capture */
- __I uint8_t Reserved3[14];
- __IO TC_COUNT16_PERBUF_Type PERBUF; /**< Offset: 0x2E (R/W 16) COUNT16 Period Buffer */
- __IO TC_COUNT16_CCBUF_Type CCBUF[2]; /**< Offset: 0x30 (R/W 16) COUNT16 Compare and Capture Buffer */
- } TcCount16;
- /** \brief TC hardware registers */
- typedef struct { /* Basic Timer Counter */
- __IO TC_CTRLA_Type CTRLA; /**< Offset: 0x00 (R/W 32) Control A */
- __IO TC_CTRLBCLR_Type CTRLBCLR; /**< Offset: 0x04 (R/W 8) Control B Clear */
- __IO TC_CTRLBSET_Type CTRLBSET; /**< Offset: 0x05 (R/W 8) Control B Set */
- __IO TC_EVCTRL_Type EVCTRL; /**< Offset: 0x06 (R/W 16) Event Control */
- __IO TC_INTENCLR_Type INTENCLR; /**< Offset: 0x08 (R/W 8) Interrupt Enable Clear */
- __IO TC_INTENSET_Type INTENSET; /**< Offset: 0x09 (R/W 8) Interrupt Enable Set */
- __IO TC_INTFLAG_Type INTFLAG; /**< Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear */
- __IO TC_STATUS_Type STATUS; /**< Offset: 0x0B (R/W 8) Status */
- __IO TC_WAVE_Type WAVE; /**< Offset: 0x0C (R/W 8) Waveform Generation Control */
- __IO TC_DRVCTRL_Type DRVCTRL; /**< Offset: 0x0D (R/W 8) Control C */
- __I uint8_t Reserved1[1];
- __IO TC_DBGCTRL_Type DBGCTRL; /**< Offset: 0x0F (R/W 8) Debug Control */
- __I TC_SYNCBUSY_Type SYNCBUSY; /**< Offset: 0x10 (R/ 32) Synchronization Status */
- __IO TC_COUNT32_COUNT_Type COUNT; /**< Offset: 0x14 (R/W 32) COUNT32 Count */
- __IO TC_COUNT32_PER_Type PER; /**< Offset: 0x18 (R/W 32) COUNT32 Period */
- __IO TC_COUNT32_CC_Type CC[2]; /**< Offset: 0x1C (R/W 32) COUNT32 Compare and Capture */
- __I uint8_t Reserved2[8];
- __IO TC_COUNT32_PERBUF_Type PERBUF; /**< Offset: 0x2C (R/W 32) COUNT32 Period Buffer */
- __IO TC_COUNT32_CCBUF_Type CCBUF[2]; /**< Offset: 0x30 (R/W 32) COUNT32 Compare and Capture Buffer */
- } TcCount32;
- /** \brief TC hardware registers */
- typedef union { /* Basic Timer Counter */
- TcCount8 COUNT8; /**< 8-bit Counter Mode */
- TcCount16 COUNT16; /**< 16-bit Counter Mode */
- TcCount32 COUNT32; /**< 32-bit Counter Mode */
- } Tc;
- #endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
- /** @} end of Basic Timer Counter */
- #endif /* _SAML11_TC_COMPONENT_H_ */
|