| M480 BSP V3.05.001 The Board Support Package for M480 Series

Data Structures
ecap_reg.h File Reference

ECAP register definition header file. More...

Go to the source code of this file.

## Data Structures
struct | ECAP_T

## Macros
#define | ECAP_CNT_CNT_Pos (0)
#define | ECAP_CNT_CNT_Msk (0xfffffful << ECAP_CNT_CNT_Pos)
#define | ECAP_HLD0_HOLD_Pos (0)
#define | ECAP_HLD0_HOLD_Msk (0xfffffful << ECAP_HLD0_HOLD_Pos)
#define | ECAP_HLD1_HOLD_Pos (0)
#define | ECAP_HLD1_HOLD_Msk (0xfffffful << ECAP_HLD1_HOLD_Pos)
#define | ECAP_HLD2_HOLD_Pos (0)
#define | ECAP_HLD2_HOLD_Msk (0xfffffful << ECAP_HLD2_HOLD_Pos)
#define | ECAP_CNTCMP_CNTCMP_Pos (0)
#define | ECAP_CNTCMP_CNTCMP_Msk (0xfffffful << ECAP_CNTCMP_CNTCMP_Pos)
#define | ECAP_CTL0_NFCLKSEL_Pos (0)
#define | ECAP_CTL0_NFCLKSEL_Msk (0x7ul << ECAP_CTL0_NFCLKSEL_Pos)
#define | ECAP_CTL0_CAPNFDIS_Pos (3)
#define | ECAP_CTL0_CAPNFDIS_Msk (0x1ul << ECAP_CTL0_CAPNFDIS_Pos)
#define | ECAP_CTL0_IC0EN_Pos (4)
#define | ECAP_CTL0_IC0EN_Msk (0x1ul << ECAP_CTL0_IC0EN_Pos)
#define | ECAP_CTL0_IC1EN_Pos (5)
#define | ECAP_CTL0_IC1EN_Msk (0x1ul << ECAP_CTL0_IC1EN_Pos)
#define | ECAP_CTL0_IC2EN_Pos (6)
#define | ECAP_CTL0_IC2EN_Msk (0x1ul << ECAP_CTL0_IC2EN_Pos)
#define | ECAP_CTL0_CAPSEL0_Pos (8)
#define | ECAP_CTL0_CAPSEL0_Msk (0x3ul << ECAP_CTL0_CAPSEL0_Pos)
#define | ECAP_CTL0_CAPSEL1_Pos (10)
#define | ECAP_CTL0_CAPSEL1_Msk (0x3ul << ECAP_CTL0_CAPSEL1_Pos)
#define | ECAP_CTL0_CAPSEL2_Pos (12)
#define | ECAP_CTL0_CAPSEL2_Msk (0x3ul << ECAP_CTL0_CAPSEL2_Pos)
#define | ECAP_CTL0_CAPIEN0_Pos (16)
#define | ECAP_CTL0_CAPIEN0_Msk (0x1ul << ECAP_CTL0_CAPIEN0_Pos)
#define | ECAP_CTL0_CAPIEN1_Pos (17)
#define | ECAP_CTL0_CAPIEN1_Msk (0x1ul << ECAP_CTL0_CAPIEN1_Pos)
#define | ECAP_CTL0_CAPIEN2_Pos (18)
#define | ECAP_CTL0_CAPIEN2_Msk (0x1ul << ECAP_CTL0_CAPIEN2_Pos)
#define | ECAP_CTL0_OVIEN_Pos (20)
#define | ECAP_CTL0_OVIEN_Msk (0x1ul << ECAP_CTL0_OVIEN_Pos)
#define | ECAP_CTL0_CMPIEN_Pos (21)
#define | ECAP_CTL0_CMPIEN_Msk (0x1ul << ECAP_CTL0_CMPIEN_Pos)
#define | ECAP_CTL0_CNTEN_Pos (24)
#define | ECAP_CTL0_CNTEN_Msk (0x1ul << ECAP_CTL0_CNTEN_Pos)
#define | ECAP_CTL0_CMPCLREN_Pos (25)
#define | ECAP_CTL0_CMPCLREN_Msk (0x1ul << ECAP_CTL0_CMPCLREN_Pos)
#define | ECAP_CTL0_CMPEN_Pos (28)
#define | ECAP_CTL0_CMPEN_Msk (0x1ul << ECAP_CTL0_CMPEN_Pos)
#define | ECAP_CTL0_CAPEN_Pos (29)
#define | ECAP_CTL0_CAPEN_Msk (0x1ul << ECAP_CTL0_CAPEN_Pos)
#define | ECAP_CTL1_EDGESEL0_Pos (0)
#define | ECAP_CTL1_EDGESEL0_Msk (0x3ul << ECAP_CTL1_EDGESEL0_Pos)
#define | ECAP_CTL1_EDGESEL1_Pos (2)
#define | ECAP_CTL1_EDGESEL1_Msk (0x3ul << ECAP_CTL1_EDGESEL1_Pos)
#define | ECAP_CTL1_EDGESEL2_Pos (4)
#define | ECAP_CTL1_EDGESEL2_Msk (0x3ul << ECAP_CTL1_EDGESEL2_Pos)
#define | ECAP_CTL1_CAP0RLDEN_Pos (8)
#define | ECAP_CTL1_CAP0RLDEN_Msk (0x1ul << ECAP_CTL1_CAP0RLDEN_Pos)
#define | ECAP_CTL1_CAP1RLDEN_Pos (9)
#define | ECAP_CTL1_CAP1RLDEN_Msk (0x1ul << ECAP_CTL1_CAP1RLDEN_Pos)
#define | ECAP_CTL1_CAP2RLDEN_Pos (10)
#define | ECAP_CTL1_CAP2RLDEN_Msk (0x1ul << ECAP_CTL1_CAP2RLDEN_Pos)
#define | ECAP_CTL1_OVRLDEN_Pos (11)
#define | ECAP_CTL1_OVRLDEN_Msk (0x1ul << ECAP_CTL1_OVRLDEN_Pos)
#define | ECAP_CTL1_CLKSEL_Pos (12)
#define | ECAP_CTL1_CLKSEL_Msk (0x7ul << ECAP_CTL1_CLKSEL_Pos)
#define | ECAP_CTL1_CNTSRCSEL_Pos (16)
#define | ECAP_CTL1_CNTSRCSEL_Msk (0x3ul << ECAP_CTL1_CNTSRCSEL_Pos)
#define | ECAP_CTL1_CAP0CLREN_Pos (20)
#define | ECAP_CTL1_CAP0CLREN_Msk (0x1ul << ECAP_CTL1_CAP0CLREN_Pos)
#define | ECAP_CTL1_CAP1CLREN_Pos (21)
#define | ECAP_CTL1_CAP1CLREN_Msk (0x1ul << ECAP_CTL1_CAP1CLREN_Pos)
#define | ECAP_CTL1_CAP2CLREN_Pos (22)
#define | ECAP_CTL1_CAP2CLREN_Msk (0x1ul << ECAP_CTL1_CAP2CLREN_Pos)
#define | ECAP_STATUS_CAPTF0_Pos (0)
#define | ECAP_STATUS_CAPTF0_Msk (0x1ul << ECAP_STATUS_CAPTF0_Pos)
#define | ECAP_STATUS_CAPTF1_Pos (1)
#define | ECAP_STATUS_CAPTF1_Msk (0x1ul << ECAP_STATUS_CAPTF1_Pos)
#define | ECAP_STATUS_CAPTF2_Pos (2)
#define | ECAP_STATUS_CAPTF2_Msk (0x1ul << ECAP_STATUS_CAPTF2_Pos)
#define | ECAP_STATUS_CAPCMPF_Pos (4)
#define | ECAP_STATUS_CAPCMPF_Msk (0x1ul << ECAP_STATUS_CAPCMPF_Pos)
#define | ECAP_STATUS_CAPOVF_Pos (5)
#define | ECAP_STATUS_CAPOVF_Msk (0x1ul << ECAP_STATUS_CAPOVF_Pos)
#define | ECAP_STATUS_CAP0_Pos (8)
#define | ECAP_STATUS_CAP0_Msk (0x1ul << ECAP_STATUS_CAP0_Pos)
#define | ECAP_STATUS_CAP1_Pos (9)
#define | ECAP_STATUS_CAP1_Msk (0x1ul << ECAP_STATUS_CAP1_Pos)
#define | ECAP_STATUS_CAP2_Pos (10)
#define | ECAP_STATUS_CAP2_Msk (0x1ul << ECAP_STATUS_CAP2_Pos)

## Detailed Description

ECAP register definition header file.

Version
  V1.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2017-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file ecap_reg.h.