RTEMS 6.1-rc1

CTRL - Control Register

#define ENC_CTRL_CMPIE_MASK   (0x1U)
 
#define ENC_CTRL_CMPIE_SHIFT   (0U)
 
#define ENC_CTRL_CMPIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK)
 
#define ENC_CTRL_CMPIRQ_MASK   (0x2U)
 
#define ENC_CTRL_CMPIRQ_SHIFT   (1U)
 
#define ENC_CTRL_CMPIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIRQ_SHIFT)) & ENC_CTRL_CMPIRQ_MASK)
 
#define ENC_CTRL_WDE_MASK   (0x4U)
 
#define ENC_CTRL_WDE_SHIFT   (2U)
 
#define ENC_CTRL_WDE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK)
 
#define ENC_CTRL_DIE_MASK   (0x8U)
 
#define ENC_CTRL_DIE_SHIFT   (3U)
 
#define ENC_CTRL_DIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK)
 
#define ENC_CTRL_DIRQ_MASK   (0x10U)
 
#define ENC_CTRL_DIRQ_SHIFT   (4U)
 
#define ENC_CTRL_DIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIRQ_SHIFT)) & ENC_CTRL_DIRQ_MASK)
 
#define ENC_CTRL_XNE_MASK   (0x20U)
 
#define ENC_CTRL_XNE_SHIFT   (5U)
 
#define ENC_CTRL_XNE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XNE_SHIFT)) & ENC_CTRL_XNE_MASK)
 
#define ENC_CTRL_XIP_MASK   (0x40U)
 
#define ENC_CTRL_XIP_SHIFT   (6U)
 
#define ENC_CTRL_XIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIP_SHIFT)) & ENC_CTRL_XIP_MASK)
 
#define ENC_CTRL_XIE_MASK   (0x80U)
 
#define ENC_CTRL_XIE_SHIFT   (7U)
 
#define ENC_CTRL_XIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK)
 
#define ENC_CTRL_XIRQ_MASK   (0x100U)
 
#define ENC_CTRL_XIRQ_SHIFT   (8U)
 
#define ENC_CTRL_XIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK)
 
#define ENC_CTRL_PH1_MASK   (0x200U)
 
#define ENC_CTRL_PH1_SHIFT   (9U)
 
#define ENC_CTRL_PH1(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_PH1_SHIFT)) & ENC_CTRL_PH1_MASK)
 
#define ENC_CTRL_REV_MASK   (0x400U)
 
#define ENC_CTRL_REV_SHIFT   (10U)
 
#define ENC_CTRL_REV(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_REV_SHIFT)) & ENC_CTRL_REV_MASK)
 
#define ENC_CTRL_SWIP_MASK   (0x800U)
 
#define ENC_CTRL_SWIP_SHIFT   (11U)
 
#define ENC_CTRL_SWIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_SWIP_SHIFT)) & ENC_CTRL_SWIP_MASK)
 
#define ENC_CTRL_HNE_MASK   (0x1000U)
 
#define ENC_CTRL_HNE_SHIFT   (12U)
 
#define ENC_CTRL_HNE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HNE_SHIFT)) & ENC_CTRL_HNE_MASK)
 
#define ENC_CTRL_HIP_MASK   (0x2000U)
 
#define ENC_CTRL_HIP_SHIFT   (13U)
 
#define ENC_CTRL_HIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIP_SHIFT)) & ENC_CTRL_HIP_MASK)
 
#define ENC_CTRL_HIE_MASK   (0x4000U)
 
#define ENC_CTRL_HIE_SHIFT   (14U)
 
#define ENC_CTRL_HIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK)
 
#define ENC_CTRL_HIRQ_MASK   (0x8000U)
 
#define ENC_CTRL_HIRQ_SHIFT   (15U)
 
#define ENC_CTRL_HIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIRQ_SHIFT)) & ENC_CTRL_HIRQ_MASK)
 

FILT - Input Filter Register

#define ENC_FILT_FILT_PER_MASK   (0xFFU)
 
#define ENC_FILT_FILT_PER_SHIFT   (0U)
 
#define ENC_FILT_FILT_PER(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PER_SHIFT)) & ENC_FILT_FILT_PER_MASK)
 
#define ENC_FILT_FILT_CNT_MASK   (0x700U)
 
#define ENC_FILT_FILT_CNT_SHIFT   (8U)
 
#define ENC_FILT_FILT_CNT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_CNT_SHIFT)) & ENC_FILT_FILT_CNT_MASK)
 

WTR - Watchdog Timeout Register

#define ENC_WTR_WDOG_MASK   (0xFFFFU)
 
#define ENC_WTR_WDOG_SHIFT   (0U)
 
#define ENC_WTR_WDOG(x)   (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK)
 

POSD - Position Difference Counter Register

#define ENC_POSD_POSD_MASK   (0xFFFFU)
 
#define ENC_POSD_POSD_SHIFT   (0U)
 
#define ENC_POSD_POSD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK)
 

POSDH - Position Difference Hold Register

#define ENC_POSDH_POSDH_MASK   (0xFFFFU)
 
#define ENC_POSDH_POSDH_SHIFT   (0U)
 
#define ENC_POSDH_POSDH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK)
 

REV - Revolution Counter Register

#define ENC_REV_REV_MASK   (0xFFFFU)
 
#define ENC_REV_REV_SHIFT   (0U)
 
#define ENC_REV_REV(x)   (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK)
 

REVH - Revolution Hold Register

#define ENC_REVH_REVH_MASK   (0xFFFFU)
 
#define ENC_REVH_REVH_SHIFT   (0U)
 
#define ENC_REVH_REVH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK)
 

UPOS - Upper Position Counter Register

#define ENC_UPOS_POS_MASK   (0xFFFFU)
 
#define ENC_UPOS_POS_SHIFT   (0U)
 
#define ENC_UPOS_POS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK)
 

LPOS - Lower Position Counter Register

#define ENC_LPOS_POS_MASK   (0xFFFFU)
 
#define ENC_LPOS_POS_SHIFT   (0U)
 
#define ENC_LPOS_POS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK)
 

UPOSH - Upper Position Hold Register

#define ENC_UPOSH_POSH_MASK   (0xFFFFU)
 
#define ENC_UPOSH_POSH_SHIFT   (0U)
 
#define ENC_UPOSH_POSH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK)
 

LPOSH - Lower Position Hold Register

#define ENC_LPOSH_POSH_MASK   (0xFFFFU)
 
#define ENC_LPOSH_POSH_SHIFT   (0U)
 
#define ENC_LPOSH_POSH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK)
 

UINIT - Upper Initialization Register

#define ENC_UINIT_INIT_MASK   (0xFFFFU)
 
#define ENC_UINIT_INIT_SHIFT   (0U)
 
#define ENC_UINIT_INIT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK)
 

LINIT - Lower Initialization Register

#define ENC_LINIT_INIT_MASK   (0xFFFFU)
 
#define ENC_LINIT_INIT_SHIFT   (0U)
 
#define ENC_LINIT_INIT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK)
 

IMR - Input Monitor Register

#define ENC_IMR_HOME_MASK   (0x1U)
 
#define ENC_IMR_HOME_SHIFT   (0U)
 
#define ENC_IMR_HOME(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK)
 
#define ENC_IMR_INDEX_MASK   (0x2U)
 
#define ENC_IMR_INDEX_SHIFT   (1U)
 
#define ENC_IMR_INDEX(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK)
 
#define ENC_IMR_PHB_MASK   (0x4U)
 
#define ENC_IMR_PHB_SHIFT   (2U)
 
#define ENC_IMR_PHB(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK)
 
#define ENC_IMR_PHA_MASK   (0x8U)
 
#define ENC_IMR_PHA_SHIFT   (3U)
 
#define ENC_IMR_PHA(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK)
 
#define ENC_IMR_FHOM_MASK   (0x10U)
 
#define ENC_IMR_FHOM_SHIFT   (4U)
 
#define ENC_IMR_FHOM(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK)
 
#define ENC_IMR_FIND_MASK   (0x20U)
 
#define ENC_IMR_FIND_SHIFT   (5U)
 
#define ENC_IMR_FIND(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK)
 
#define ENC_IMR_FPHB_MASK   (0x40U)
 
#define ENC_IMR_FPHB_SHIFT   (6U)
 
#define ENC_IMR_FPHB(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK)
 
#define ENC_IMR_FPHA_MASK   (0x80U)
 
#define ENC_IMR_FPHA_SHIFT   (7U)
 
#define ENC_IMR_FPHA(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK)
 

TST - Test Register

#define ENC_TST_TEST_COUNT_MASK   (0xFFU)
 
#define ENC_TST_TEST_COUNT_SHIFT   (0U)
 
#define ENC_TST_TEST_COUNT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK)
 
#define ENC_TST_TEST_PERIOD_MASK   (0x1F00U)
 
#define ENC_TST_TEST_PERIOD_SHIFT   (8U)
 
#define ENC_TST_TEST_PERIOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK)
 
#define ENC_TST_QDN_MASK   (0x2000U)
 
#define ENC_TST_QDN_SHIFT   (13U)
 
#define ENC_TST_QDN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK)
 
#define ENC_TST_TCE_MASK   (0x4000U)
 
#define ENC_TST_TCE_SHIFT   (14U)
 
#define ENC_TST_TCE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK)
 
#define ENC_TST_TEN_MASK   (0x8000U)
 
#define ENC_TST_TEN_SHIFT   (15U)
 
#define ENC_TST_TEN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK)
 

CTRL2 - Control 2 Register

#define ENC_CTRL2_UPDHLD_MASK   (0x1U)
 
#define ENC_CTRL2_UPDHLD_SHIFT   (0U)
 
#define ENC_CTRL2_UPDHLD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDHLD_SHIFT)) & ENC_CTRL2_UPDHLD_MASK)
 
#define ENC_CTRL2_UPDPOS_MASK   (0x2U)
 
#define ENC_CTRL2_UPDPOS_SHIFT   (1U)
 
#define ENC_CTRL2_UPDPOS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDPOS_SHIFT)) & ENC_CTRL2_UPDPOS_MASK)
 
#define ENC_CTRL2_MOD_MASK   (0x4U)
 
#define ENC_CTRL2_MOD_SHIFT   (2U)
 
#define ENC_CTRL2_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_MOD_SHIFT)) & ENC_CTRL2_MOD_MASK)
 
#define ENC_CTRL2_DIR_MASK   (0x8U)
 
#define ENC_CTRL2_DIR_SHIFT   (3U)
 
#define ENC_CTRL2_DIR(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_DIR_SHIFT)) & ENC_CTRL2_DIR_MASK)
 
#define ENC_CTRL2_RUIE_MASK   (0x10U)
 
#define ENC_CTRL2_RUIE_SHIFT   (4U)
 
#define ENC_CTRL2_RUIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK)
 
#define ENC_CTRL2_RUIRQ_MASK   (0x20U)
 
#define ENC_CTRL2_RUIRQ_SHIFT   (5U)
 
#define ENC_CTRL2_RUIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIRQ_SHIFT)) & ENC_CTRL2_RUIRQ_MASK)
 
#define ENC_CTRL2_ROIE_MASK   (0x40U)
 
#define ENC_CTRL2_ROIE_SHIFT   (6U)
 
#define ENC_CTRL2_ROIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK)
 
#define ENC_CTRL2_ROIRQ_MASK   (0x80U)
 
#define ENC_CTRL2_ROIRQ_SHIFT   (7U)
 
#define ENC_CTRL2_ROIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIRQ_SHIFT)) & ENC_CTRL2_ROIRQ_MASK)
 
#define ENC_CTRL2_REVMOD_MASK   (0x100U)
 
#define ENC_CTRL2_REVMOD_SHIFT   (8U)
 
#define ENC_CTRL2_REVMOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_REVMOD_SHIFT)) & ENC_CTRL2_REVMOD_MASK)
 
#define ENC_CTRL2_OUTCTL_MASK   (0x200U)
 
#define ENC_CTRL2_OUTCTL_SHIFT   (9U)
 
#define ENC_CTRL2_OUTCTL(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_OUTCTL_SHIFT)) & ENC_CTRL2_OUTCTL_MASK)
 

UMOD - Upper Modulus Register

#define ENC_UMOD_MOD_MASK   (0xFFFFU)
 
#define ENC_UMOD_MOD_SHIFT   (0U)
 
#define ENC_UMOD_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK)
 

LMOD - Lower Modulus Register

#define ENC_LMOD_MOD_MASK   (0xFFFFU)
 
#define ENC_LMOD_MOD_SHIFT   (0U)
 
#define ENC_LMOD_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK)
 

UCOMP - Upper Position Compare Register

#define ENC_UCOMP_COMP_MASK   (0xFFFFU)
 
#define ENC_UCOMP_COMP_SHIFT   (0U)
 
#define ENC_UCOMP_COMP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK)
 

LCOMP - Lower Position Compare Register

#define ENC_LCOMP_COMP_MASK   (0xFFFFU)
 
#define ENC_LCOMP_COMP_SHIFT   (0U)
 
#define ENC_LCOMP_COMP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK)
 

CTRL - Control Register

#define ENC_CTRL_CMPIE_MASK   (0x1U)
 
#define ENC_CTRL_CMPIE_SHIFT   (0U)
 
#define ENC_CTRL_CMPIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK)
 
#define ENC_CTRL_CMPIRQ_MASK   (0x2U)
 
#define ENC_CTRL_CMPIRQ_SHIFT   (1U)
 
#define ENC_CTRL_CMPIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIRQ_SHIFT)) & ENC_CTRL_CMPIRQ_MASK)
 
#define ENC_CTRL_WDE_MASK   (0x4U)
 
#define ENC_CTRL_WDE_SHIFT   (2U)
 
#define ENC_CTRL_WDE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK)
 
#define ENC_CTRL_DIE_MASK   (0x8U)
 
#define ENC_CTRL_DIE_SHIFT   (3U)
 
#define ENC_CTRL_DIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK)
 
#define ENC_CTRL_DIRQ_MASK   (0x10U)
 
#define ENC_CTRL_DIRQ_SHIFT   (4U)
 
#define ENC_CTRL_DIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIRQ_SHIFT)) & ENC_CTRL_DIRQ_MASK)
 
#define ENC_CTRL_XNE_MASK   (0x20U)
 
#define ENC_CTRL_XNE_SHIFT   (5U)
 
#define ENC_CTRL_XNE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XNE_SHIFT)) & ENC_CTRL_XNE_MASK)
 
#define ENC_CTRL_XIP_MASK   (0x40U)
 
#define ENC_CTRL_XIP_SHIFT   (6U)
 
#define ENC_CTRL_XIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIP_SHIFT)) & ENC_CTRL_XIP_MASK)
 
#define ENC_CTRL_XIE_MASK   (0x80U)
 
#define ENC_CTRL_XIE_SHIFT   (7U)
 
#define ENC_CTRL_XIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK)
 
#define ENC_CTRL_XIRQ_MASK   (0x100U)
 
#define ENC_CTRL_XIRQ_SHIFT   (8U)
 
#define ENC_CTRL_XIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK)
 
#define ENC_CTRL_PH1_MASK   (0x200U)
 
#define ENC_CTRL_PH1_SHIFT   (9U)
 
#define ENC_CTRL_PH1(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_PH1_SHIFT)) & ENC_CTRL_PH1_MASK)
 
#define ENC_CTRL_REV_MASK   (0x400U)
 
#define ENC_CTRL_REV_SHIFT   (10U)
 
#define ENC_CTRL_REV(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_REV_SHIFT)) & ENC_CTRL_REV_MASK)
 
#define ENC_CTRL_SWIP_MASK   (0x800U)
 
#define ENC_CTRL_SWIP_SHIFT   (11U)
 
#define ENC_CTRL_SWIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_SWIP_SHIFT)) & ENC_CTRL_SWIP_MASK)
 
#define ENC_CTRL_HNE_MASK   (0x1000U)
 
#define ENC_CTRL_HNE_SHIFT   (12U)
 
#define ENC_CTRL_HNE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HNE_SHIFT)) & ENC_CTRL_HNE_MASK)
 
#define ENC_CTRL_HIP_MASK   (0x2000U)
 
#define ENC_CTRL_HIP_SHIFT   (13U)
 
#define ENC_CTRL_HIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIP_SHIFT)) & ENC_CTRL_HIP_MASK)
 
#define ENC_CTRL_HIE_MASK   (0x4000U)
 
#define ENC_CTRL_HIE_SHIFT   (14U)
 
#define ENC_CTRL_HIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK)
 
#define ENC_CTRL_HIRQ_MASK   (0x8000U)
 
#define ENC_CTRL_HIRQ_SHIFT   (15U)
 
#define ENC_CTRL_HIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIRQ_SHIFT)) & ENC_CTRL_HIRQ_MASK)
 

FILT - Input Filter Register

#define ENC_FILT_FILT_PER_MASK   (0xFFU)
 
#define ENC_FILT_FILT_PER_SHIFT   (0U)
 
#define ENC_FILT_FILT_PER(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PER_SHIFT)) & ENC_FILT_FILT_PER_MASK)
 
#define ENC_FILT_FILT_CNT_MASK   (0x700U)
 
#define ENC_FILT_FILT_CNT_SHIFT   (8U)
 
#define ENC_FILT_FILT_CNT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_CNT_SHIFT)) & ENC_FILT_FILT_CNT_MASK)
 
#define ENC_FILT_FILT_PRSC_MASK   (0xE000U)
 
#define ENC_FILT_FILT_PRSC_SHIFT   (13U)
 
#define ENC_FILT_FILT_PRSC(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PRSC_SHIFT)) & ENC_FILT_FILT_PRSC_MASK)
 

WTR - Watchdog Timeout Register

#define ENC_WTR_WDOG_MASK   (0xFFFFU)
 
#define ENC_WTR_WDOG_SHIFT   (0U)
 
#define ENC_WTR_WDOG(x)   (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK)
 

POSD - Position Difference Counter Register

#define ENC_POSD_POSD_MASK   (0xFFFFU)
 
#define ENC_POSD_POSD_SHIFT   (0U)
 
#define ENC_POSD_POSD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK)
 

POSDH - Position Difference Hold Register

#define ENC_POSDH_POSDH_MASK   (0xFFFFU)
 
#define ENC_POSDH_POSDH_SHIFT   (0U)
 
#define ENC_POSDH_POSDH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK)
 

REV - Revolution Counter Register

#define ENC_REV_REV_MASK   (0xFFFFU)
 
#define ENC_REV_REV_SHIFT   (0U)
 
#define ENC_REV_REV(x)   (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK)
 

REVH - Revolution Hold Register

#define ENC_REVH_REVH_MASK   (0xFFFFU)
 
#define ENC_REVH_REVH_SHIFT   (0U)
 
#define ENC_REVH_REVH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK)
 

UPOS - Upper Position Counter Register

#define ENC_UPOS_POS_MASK   (0xFFFFU)
 
#define ENC_UPOS_POS_SHIFT   (0U)
 
#define ENC_UPOS_POS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK)
 

LPOS - Lower Position Counter Register

#define ENC_LPOS_POS_MASK   (0xFFFFU)
 
#define ENC_LPOS_POS_SHIFT   (0U)
 
#define ENC_LPOS_POS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK)
 

UPOSH - Upper Position Hold Register

#define ENC_UPOSH_POSH_MASK   (0xFFFFU)
 
#define ENC_UPOSH_POSH_SHIFT   (0U)
 
#define ENC_UPOSH_POSH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK)
 

LPOSH - Lower Position Hold Register

#define ENC_LPOSH_POSH_MASK   (0xFFFFU)
 
#define ENC_LPOSH_POSH_SHIFT   (0U)
 
#define ENC_LPOSH_POSH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK)
 

UINIT - Upper Initialization Register

#define ENC_UINIT_INIT_MASK   (0xFFFFU)
 
#define ENC_UINIT_INIT_SHIFT   (0U)
 
#define ENC_UINIT_INIT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK)
 

LINIT - Lower Initialization Register

#define ENC_LINIT_INIT_MASK   (0xFFFFU)
 
#define ENC_LINIT_INIT_SHIFT   (0U)
 
#define ENC_LINIT_INIT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK)
 

IMR - Input Monitor Register

#define ENC_IMR_HOME_MASK   (0x1U)
 
#define ENC_IMR_HOME_SHIFT   (0U)
 
#define ENC_IMR_HOME(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK)
 
#define ENC_IMR_INDEX_MASK   (0x2U)
 
#define ENC_IMR_INDEX_SHIFT   (1U)
 
#define ENC_IMR_INDEX(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK)
 
#define ENC_IMR_PHB_MASK   (0x4U)
 
#define ENC_IMR_PHB_SHIFT   (2U)
 
#define ENC_IMR_PHB(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK)
 
#define ENC_IMR_PHA_MASK   (0x8U)
 
#define ENC_IMR_PHA_SHIFT   (3U)
 
#define ENC_IMR_PHA(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK)
 
#define ENC_IMR_FHOM_MASK   (0x10U)
 
#define ENC_IMR_FHOM_SHIFT   (4U)
 
#define ENC_IMR_FHOM(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK)
 
#define ENC_IMR_FIND_MASK   (0x20U)
 
#define ENC_IMR_FIND_SHIFT   (5U)
 
#define ENC_IMR_FIND(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK)
 
#define ENC_IMR_FPHB_MASK   (0x40U)
 
#define ENC_IMR_FPHB_SHIFT   (6U)
 
#define ENC_IMR_FPHB(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK)
 
#define ENC_IMR_FPHA_MASK   (0x80U)
 
#define ENC_IMR_FPHA_SHIFT   (7U)
 
#define ENC_IMR_FPHA(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK)
 

TST - Test Register

#define ENC_TST_TEST_COUNT_MASK   (0xFFU)
 
#define ENC_TST_TEST_COUNT_SHIFT   (0U)
 
#define ENC_TST_TEST_COUNT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK)
 
#define ENC_TST_TEST_PERIOD_MASK   (0x1F00U)
 
#define ENC_TST_TEST_PERIOD_SHIFT   (8U)
 
#define ENC_TST_TEST_PERIOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK)
 
#define ENC_TST_QDN_MASK   (0x2000U)
 
#define ENC_TST_QDN_SHIFT   (13U)
 
#define ENC_TST_QDN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK)
 
#define ENC_TST_TCE_MASK   (0x4000U)
 
#define ENC_TST_TCE_SHIFT   (14U)
 
#define ENC_TST_TCE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK)
 
#define ENC_TST_TEN_MASK   (0x8000U)
 
#define ENC_TST_TEN_SHIFT   (15U)
 
#define ENC_TST_TEN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK)
 

CTRL2 - Control 2 register

#define ENC_CTRL2_UPDHLD_MASK   (0x1U)
 
#define ENC_CTRL2_UPDHLD_SHIFT   (0U)
 
#define ENC_CTRL2_UPDHLD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDHLD_SHIFT)) & ENC_CTRL2_UPDHLD_MASK)
 
#define ENC_CTRL2_UPDPOS_MASK   (0x2U)
 
#define ENC_CTRL2_UPDPOS_SHIFT   (1U)
 
#define ENC_CTRL2_UPDPOS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDPOS_SHIFT)) & ENC_CTRL2_UPDPOS_MASK)
 
#define ENC_CTRL2_MOD_MASK   (0x4U)
 
#define ENC_CTRL2_MOD_SHIFT   (2U)
 
#define ENC_CTRL2_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_MOD_SHIFT)) & ENC_CTRL2_MOD_MASK)
 
#define ENC_CTRL2_DIR_MASK   (0x8U)
 
#define ENC_CTRL2_DIR_SHIFT   (3U)
 
#define ENC_CTRL2_DIR(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_DIR_SHIFT)) & ENC_CTRL2_DIR_MASK)
 
#define ENC_CTRL2_RUIE_MASK   (0x10U)
 
#define ENC_CTRL2_RUIE_SHIFT   (4U)
 
#define ENC_CTRL2_RUIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK)
 
#define ENC_CTRL2_RUIRQ_MASK   (0x20U)
 
#define ENC_CTRL2_RUIRQ_SHIFT   (5U)
 
#define ENC_CTRL2_RUIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIRQ_SHIFT)) & ENC_CTRL2_RUIRQ_MASK)
 
#define ENC_CTRL2_ROIE_MASK   (0x40U)
 
#define ENC_CTRL2_ROIE_SHIFT   (6U)
 
#define ENC_CTRL2_ROIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK)
 
#define ENC_CTRL2_ROIRQ_MASK   (0x80U)
 
#define ENC_CTRL2_ROIRQ_SHIFT   (7U)
 
#define ENC_CTRL2_ROIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIRQ_SHIFT)) & ENC_CTRL2_ROIRQ_MASK)
 
#define ENC_CTRL2_REVMOD_MASK   (0x100U)
 
#define ENC_CTRL2_REVMOD_SHIFT   (8U)
 
#define ENC_CTRL2_REVMOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_REVMOD_SHIFT)) & ENC_CTRL2_REVMOD_MASK)
 
#define ENC_CTRL2_OUTCTL_MASK   (0x200U)
 
#define ENC_CTRL2_OUTCTL_SHIFT   (9U)
 
#define ENC_CTRL2_OUTCTL(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_OUTCTL_SHIFT)) & ENC_CTRL2_OUTCTL_MASK)
 
#define ENC_CTRL2_SABIE_MASK   (0x400U)
 
#define ENC_CTRL2_SABIE_SHIFT   (10U)
 
#define ENC_CTRL2_SABIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIE_SHIFT)) & ENC_CTRL2_SABIE_MASK)
 
#define ENC_CTRL2_SABIRQ_MASK   (0x800U)
 
#define ENC_CTRL2_SABIRQ_SHIFT   (11U)
 
#define ENC_CTRL2_SABIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIRQ_SHIFT)) & ENC_CTRL2_SABIRQ_MASK)
 

UMOD - Upper Modulus Register

#define ENC_UMOD_MOD_MASK   (0xFFFFU)
 
#define ENC_UMOD_MOD_SHIFT   (0U)
 
#define ENC_UMOD_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK)
 

LMOD - Lower Modulus Register

#define ENC_LMOD_MOD_MASK   (0xFFFFU)
 
#define ENC_LMOD_MOD_SHIFT   (0U)
 
#define ENC_LMOD_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK)
 

UCOMP - Upper Position Compare Register

#define ENC_UCOMP_COMP_MASK   (0xFFFFU)
 
#define ENC_UCOMP_COMP_SHIFT   (0U)
 
#define ENC_UCOMP_COMP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK)
 

LCOMP - Lower Position Compare Register

#define ENC_LCOMP_COMP_MASK   (0xFFFFU)
 
#define ENC_LCOMP_COMP_SHIFT   (0U)
 
#define ENC_LCOMP_COMP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK)
 

LASTEDGE - Last Edge Time Register

#define ENC_LASTEDGE_LASTEDGE_MASK   (0xFFFFU)
 
#define ENC_LASTEDGE_LASTEDGE_SHIFT   (0U)
 
#define ENC_LASTEDGE_LASTEDGE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGE_LASTEDGE_SHIFT)) & ENC_LASTEDGE_LASTEDGE_MASK)
 

LASTEDGEH - Last Edge Time Hold Register

#define ENC_LASTEDGEH_LASTEDGEH_MASK   (0xFFFFU)
 
#define ENC_LASTEDGEH_LASTEDGEH_SHIFT   (0U)
 
#define ENC_LASTEDGEH_LASTEDGEH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGEH_LASTEDGEH_SHIFT)) & ENC_LASTEDGEH_LASTEDGEH_MASK)
 

POSDPER - Position Difference Period Counter Register

#define ENC_POSDPER_POSDPER_MASK   (0xFFFFU)
 
#define ENC_POSDPER_POSDPER_SHIFT   (0U)
 
#define ENC_POSDPER_POSDPER(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDPER_POSDPER_SHIFT)) & ENC_POSDPER_POSDPER_MASK)
 

POSDPERBFR - Position Difference Period Buffer Register

#define ENC_POSDPERBFR_POSDPERBFR_MASK   (0xFFFFU)
 
#define ENC_POSDPERBFR_POSDPERBFR_SHIFT   (0U)
 
#define ENC_POSDPERBFR_POSDPERBFR(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERBFR_POSDPERBFR_SHIFT)) & ENC_POSDPERBFR_POSDPERBFR_MASK)
 

POSDPERH - Position Difference Period Hold Register

#define ENC_POSDPERH_POSDPERH_MASK   (0xFFFFU)
 
#define ENC_POSDPERH_POSDPERH_SHIFT   (0U)
 
#define ENC_POSDPERH_POSDPERH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERH_POSDPERH_SHIFT)) & ENC_POSDPERH_POSDPERH_MASK)
 

CTRL3 - Control 3 Register

#define ENC_CTRL3_PMEN_MASK   (0x1U)
 
#define ENC_CTRL3_PMEN_SHIFT   (0U)
 
#define ENC_CTRL3_PMEN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PMEN_SHIFT)) & ENC_CTRL3_PMEN_MASK)
 
#define ENC_CTRL3_PRSC_MASK   (0xF0U)
 
#define ENC_CTRL3_PRSC_SHIFT   (4U)
 
#define ENC_CTRL3_PRSC(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PRSC_SHIFT)) & ENC_CTRL3_PRSC_MASK)
 

CTRL - Control Register

#define ENC_CTRL_CMPIE_MASK   (0x1U)
 
#define ENC_CTRL_CMPIE_SHIFT   (0U)
 
#define ENC_CTRL_CMPIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK)
 
#define ENC_CTRL_CMPIRQ_MASK   (0x2U)
 
#define ENC_CTRL_CMPIRQ_SHIFT   (1U)
 
#define ENC_CTRL_CMPIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIRQ_SHIFT)) & ENC_CTRL_CMPIRQ_MASK)
 
#define ENC_CTRL_WDE_MASK   (0x4U)
 
#define ENC_CTRL_WDE_SHIFT   (2U)
 
#define ENC_CTRL_WDE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK)
 
#define ENC_CTRL_DIE_MASK   (0x8U)
 
#define ENC_CTRL_DIE_SHIFT   (3U)
 
#define ENC_CTRL_DIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK)
 
#define ENC_CTRL_DIRQ_MASK   (0x10U)
 
#define ENC_CTRL_DIRQ_SHIFT   (4U)
 
#define ENC_CTRL_DIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIRQ_SHIFT)) & ENC_CTRL_DIRQ_MASK)
 
#define ENC_CTRL_XNE_MASK   (0x20U)
 
#define ENC_CTRL_XNE_SHIFT   (5U)
 
#define ENC_CTRL_XNE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XNE_SHIFT)) & ENC_CTRL_XNE_MASK)
 
#define ENC_CTRL_XIP_MASK   (0x40U)
 
#define ENC_CTRL_XIP_SHIFT   (6U)
 
#define ENC_CTRL_XIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIP_SHIFT)) & ENC_CTRL_XIP_MASK)
 
#define ENC_CTRL_XIE_MASK   (0x80U)
 
#define ENC_CTRL_XIE_SHIFT   (7U)
 
#define ENC_CTRL_XIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK)
 
#define ENC_CTRL_XIRQ_MASK   (0x100U)
 
#define ENC_CTRL_XIRQ_SHIFT   (8U)
 
#define ENC_CTRL_XIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK)
 
#define ENC_CTRL_PH1_MASK   (0x200U)
 
#define ENC_CTRL_PH1_SHIFT   (9U)
 
#define ENC_CTRL_PH1(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_PH1_SHIFT)) & ENC_CTRL_PH1_MASK)
 
#define ENC_CTRL_REV_MASK   (0x400U)
 
#define ENC_CTRL_REV_SHIFT   (10U)
 
#define ENC_CTRL_REV(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_REV_SHIFT)) & ENC_CTRL_REV_MASK)
 
#define ENC_CTRL_SWIP_MASK   (0x800U)
 
#define ENC_CTRL_SWIP_SHIFT   (11U)
 
#define ENC_CTRL_SWIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_SWIP_SHIFT)) & ENC_CTRL_SWIP_MASK)
 
#define ENC_CTRL_HNE_MASK   (0x1000U)
 
#define ENC_CTRL_HNE_SHIFT   (12U)
 
#define ENC_CTRL_HNE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HNE_SHIFT)) & ENC_CTRL_HNE_MASK)
 
#define ENC_CTRL_HIP_MASK   (0x2000U)
 
#define ENC_CTRL_HIP_SHIFT   (13U)
 
#define ENC_CTRL_HIP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIP_SHIFT)) & ENC_CTRL_HIP_MASK)
 
#define ENC_CTRL_HIE_MASK   (0x4000U)
 
#define ENC_CTRL_HIE_SHIFT   (14U)
 
#define ENC_CTRL_HIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK)
 
#define ENC_CTRL_HIRQ_MASK   (0x8000U)
 
#define ENC_CTRL_HIRQ_SHIFT   (15U)
 
#define ENC_CTRL_HIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIRQ_SHIFT)) & ENC_CTRL_HIRQ_MASK)
 

FILT - Input Filter Register

#define ENC_FILT_FILT_PER_MASK   (0xFFU)
 
#define ENC_FILT_FILT_PER_SHIFT   (0U)
 
#define ENC_FILT_FILT_PER(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PER_SHIFT)) & ENC_FILT_FILT_PER_MASK)
 
#define ENC_FILT_FILT_CNT_MASK   (0x700U)
 
#define ENC_FILT_FILT_CNT_SHIFT   (8U)
 
#define ENC_FILT_FILT_CNT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_CNT_SHIFT)) & ENC_FILT_FILT_CNT_MASK)
 
#define ENC_FILT_FILT_PRSC_MASK   (0xE000U)
 
#define ENC_FILT_FILT_PRSC_SHIFT   (13U)
 
#define ENC_FILT_FILT_PRSC(x)   (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PRSC_SHIFT)) & ENC_FILT_FILT_PRSC_MASK)
 

WTR - Watchdog Timeout Register

#define ENC_WTR_WDOG_MASK   (0xFFFFU)
 
#define ENC_WTR_WDOG_SHIFT   (0U)
 
#define ENC_WTR_WDOG(x)   (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK)
 

POSD - Position Difference Counter Register

#define ENC_POSD_POSD_MASK   (0xFFFFU)
 
#define ENC_POSD_POSD_SHIFT   (0U)
 
#define ENC_POSD_POSD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK)
 

POSDH - Position Difference Hold Register

#define ENC_POSDH_POSDH_MASK   (0xFFFFU)
 
#define ENC_POSDH_POSDH_SHIFT   (0U)
 
#define ENC_POSDH_POSDH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK)
 

REV - Revolution Counter Register

#define ENC_REV_REV_MASK   (0xFFFFU)
 
#define ENC_REV_REV_SHIFT   (0U)
 
#define ENC_REV_REV(x)   (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK)
 

REVH - Revolution Hold Register

#define ENC_REVH_REVH_MASK   (0xFFFFU)
 
#define ENC_REVH_REVH_SHIFT   (0U)
 
#define ENC_REVH_REVH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK)
 

UPOS - Upper Position Counter Register

#define ENC_UPOS_POS_MASK   (0xFFFFU)
 
#define ENC_UPOS_POS_SHIFT   (0U)
 
#define ENC_UPOS_POS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK)
 

LPOS - Lower Position Counter Register

#define ENC_LPOS_POS_MASK   (0xFFFFU)
 
#define ENC_LPOS_POS_SHIFT   (0U)
 
#define ENC_LPOS_POS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK)
 

UPOSH - Upper Position Hold Register

#define ENC_UPOSH_POSH_MASK   (0xFFFFU)
 
#define ENC_UPOSH_POSH_SHIFT   (0U)
 
#define ENC_UPOSH_POSH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK)
 

LPOSH - Lower Position Hold Register

#define ENC_LPOSH_POSH_MASK   (0xFFFFU)
 
#define ENC_LPOSH_POSH_SHIFT   (0U)
 
#define ENC_LPOSH_POSH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK)
 

UINIT - Upper Initialization Register

#define ENC_UINIT_INIT_MASK   (0xFFFFU)
 
#define ENC_UINIT_INIT_SHIFT   (0U)
 
#define ENC_UINIT_INIT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK)
 

LINIT - Lower Initialization Register

#define ENC_LINIT_INIT_MASK   (0xFFFFU)
 
#define ENC_LINIT_INIT_SHIFT   (0U)
 
#define ENC_LINIT_INIT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK)
 

IMR - Input Monitor Register

#define ENC_IMR_HOME_MASK   (0x1U)
 
#define ENC_IMR_HOME_SHIFT   (0U)
 
#define ENC_IMR_HOME(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK)
 
#define ENC_IMR_INDEX_MASK   (0x2U)
 
#define ENC_IMR_INDEX_SHIFT   (1U)
 
#define ENC_IMR_INDEX(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK)
 
#define ENC_IMR_PHB_MASK   (0x4U)
 
#define ENC_IMR_PHB_SHIFT   (2U)
 
#define ENC_IMR_PHB(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK)
 
#define ENC_IMR_PHA_MASK   (0x8U)
 
#define ENC_IMR_PHA_SHIFT   (3U)
 
#define ENC_IMR_PHA(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK)
 
#define ENC_IMR_FHOM_MASK   (0x10U)
 
#define ENC_IMR_FHOM_SHIFT   (4U)
 
#define ENC_IMR_FHOM(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK)
 
#define ENC_IMR_FIND_MASK   (0x20U)
 
#define ENC_IMR_FIND_SHIFT   (5U)
 
#define ENC_IMR_FIND(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK)
 
#define ENC_IMR_FPHB_MASK   (0x40U)
 
#define ENC_IMR_FPHB_SHIFT   (6U)
 
#define ENC_IMR_FPHB(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK)
 
#define ENC_IMR_FPHA_MASK   (0x80U)
 
#define ENC_IMR_FPHA_SHIFT   (7U)
 
#define ENC_IMR_FPHA(x)   (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK)
 

TST - Test Register

#define ENC_TST_TEST_COUNT_MASK   (0xFFU)
 
#define ENC_TST_TEST_COUNT_SHIFT   (0U)
 
#define ENC_TST_TEST_COUNT(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK)
 
#define ENC_TST_TEST_PERIOD_MASK   (0x1F00U)
 
#define ENC_TST_TEST_PERIOD_SHIFT   (8U)
 
#define ENC_TST_TEST_PERIOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK)
 
#define ENC_TST_QDN_MASK   (0x2000U)
 
#define ENC_TST_QDN_SHIFT   (13U)
 
#define ENC_TST_QDN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK)
 
#define ENC_TST_TCE_MASK   (0x4000U)
 
#define ENC_TST_TCE_SHIFT   (14U)
 
#define ENC_TST_TCE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK)
 
#define ENC_TST_TEN_MASK   (0x8000U)
 
#define ENC_TST_TEN_SHIFT   (15U)
 
#define ENC_TST_TEN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK)
 

CTRL2 - Control 2 register

#define ENC_CTRL2_UPDHLD_MASK   (0x1U)
 
#define ENC_CTRL2_UPDHLD_SHIFT   (0U)
 
#define ENC_CTRL2_UPDHLD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDHLD_SHIFT)) & ENC_CTRL2_UPDHLD_MASK)
 
#define ENC_CTRL2_UPDPOS_MASK   (0x2U)
 
#define ENC_CTRL2_UPDPOS_SHIFT   (1U)
 
#define ENC_CTRL2_UPDPOS(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDPOS_SHIFT)) & ENC_CTRL2_UPDPOS_MASK)
 
#define ENC_CTRL2_MOD_MASK   (0x4U)
 
#define ENC_CTRL2_MOD_SHIFT   (2U)
 
#define ENC_CTRL2_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_MOD_SHIFT)) & ENC_CTRL2_MOD_MASK)
 
#define ENC_CTRL2_DIR_MASK   (0x8U)
 
#define ENC_CTRL2_DIR_SHIFT   (3U)
 
#define ENC_CTRL2_DIR(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_DIR_SHIFT)) & ENC_CTRL2_DIR_MASK)
 
#define ENC_CTRL2_RUIE_MASK   (0x10U)
 
#define ENC_CTRL2_RUIE_SHIFT   (4U)
 
#define ENC_CTRL2_RUIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK)
 
#define ENC_CTRL2_RUIRQ_MASK   (0x20U)
 
#define ENC_CTRL2_RUIRQ_SHIFT   (5U)
 
#define ENC_CTRL2_RUIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIRQ_SHIFT)) & ENC_CTRL2_RUIRQ_MASK)
 
#define ENC_CTRL2_ROIE_MASK   (0x40U)
 
#define ENC_CTRL2_ROIE_SHIFT   (6U)
 
#define ENC_CTRL2_ROIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK)
 
#define ENC_CTRL2_ROIRQ_MASK   (0x80U)
 
#define ENC_CTRL2_ROIRQ_SHIFT   (7U)
 
#define ENC_CTRL2_ROIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIRQ_SHIFT)) & ENC_CTRL2_ROIRQ_MASK)
 
#define ENC_CTRL2_REVMOD_MASK   (0x100U)
 
#define ENC_CTRL2_REVMOD_SHIFT   (8U)
 
#define ENC_CTRL2_REVMOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_REVMOD_SHIFT)) & ENC_CTRL2_REVMOD_MASK)
 
#define ENC_CTRL2_OUTCTL_MASK   (0x200U)
 
#define ENC_CTRL2_OUTCTL_SHIFT   (9U)
 
#define ENC_CTRL2_OUTCTL(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_OUTCTL_SHIFT)) & ENC_CTRL2_OUTCTL_MASK)
 
#define ENC_CTRL2_SABIE_MASK   (0x400U)
 
#define ENC_CTRL2_SABIE_SHIFT   (10U)
 
#define ENC_CTRL2_SABIE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIE_SHIFT)) & ENC_CTRL2_SABIE_MASK)
 
#define ENC_CTRL2_SABIRQ_MASK   (0x800U)
 
#define ENC_CTRL2_SABIRQ_SHIFT   (11U)
 
#define ENC_CTRL2_SABIRQ(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIRQ_SHIFT)) & ENC_CTRL2_SABIRQ_MASK)
 

UMOD - Upper Modulus Register

#define ENC_UMOD_MOD_MASK   (0xFFFFU)
 
#define ENC_UMOD_MOD_SHIFT   (0U)
 
#define ENC_UMOD_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK)
 

LMOD - Lower Modulus Register

#define ENC_LMOD_MOD_MASK   (0xFFFFU)
 
#define ENC_LMOD_MOD_SHIFT   (0U)
 
#define ENC_LMOD_MOD(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK)
 

UCOMP - Upper Position Compare Register

#define ENC_UCOMP_COMP_MASK   (0xFFFFU)
 
#define ENC_UCOMP_COMP_SHIFT   (0U)
 
#define ENC_UCOMP_COMP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK)
 

LCOMP - Lower Position Compare Register

#define ENC_LCOMP_COMP_MASK   (0xFFFFU)
 
#define ENC_LCOMP_COMP_SHIFT   (0U)
 
#define ENC_LCOMP_COMP(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK)
 

LASTEDGE - Last Edge Time Register

#define ENC_LASTEDGE_LASTEDGE_MASK   (0xFFFFU)
 
#define ENC_LASTEDGE_LASTEDGE_SHIFT   (0U)
 
#define ENC_LASTEDGE_LASTEDGE(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGE_LASTEDGE_SHIFT)) & ENC_LASTEDGE_LASTEDGE_MASK)
 

LASTEDGEH - Last Edge Time Hold Register

#define ENC_LASTEDGEH_LASTEDGEH_MASK   (0xFFFFU)
 
#define ENC_LASTEDGEH_LASTEDGEH_SHIFT   (0U)
 
#define ENC_LASTEDGEH_LASTEDGEH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGEH_LASTEDGEH_SHIFT)) & ENC_LASTEDGEH_LASTEDGEH_MASK)
 

POSDPER - Position Difference Period Counter Register

#define ENC_POSDPER_POSDPER_MASK   (0xFFFFU)
 
#define ENC_POSDPER_POSDPER_SHIFT   (0U)
 
#define ENC_POSDPER_POSDPER(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDPER_POSDPER_SHIFT)) & ENC_POSDPER_POSDPER_MASK)
 

POSDPERBFR - Position Difference Period Buffer Register

#define ENC_POSDPERBFR_POSDPERBFR_MASK   (0xFFFFU)
 
#define ENC_POSDPERBFR_POSDPERBFR_SHIFT   (0U)
 
#define ENC_POSDPERBFR_POSDPERBFR(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERBFR_POSDPERBFR_SHIFT)) & ENC_POSDPERBFR_POSDPERBFR_MASK)
 

POSDPERH - Position Difference Period Hold Register

#define ENC_POSDPERH_POSDPERH_MASK   (0xFFFFU)
 
#define ENC_POSDPERH_POSDPERH_SHIFT   (0U)
 
#define ENC_POSDPERH_POSDPERH(x)   (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERH_POSDPERH_SHIFT)) & ENC_POSDPERH_POSDPERH_MASK)
 

CTRL3 - Control 3 Register

#define ENC_CTRL3_PMEN_MASK   (0x1U)
 
#define ENC_CTRL3_PMEN_SHIFT   (0U)
 
#define ENC_CTRL3_PMEN(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PMEN_SHIFT)) & ENC_CTRL3_PMEN_MASK)
 
#define ENC_CTRL3_PRSC_MASK   (0xF0U)
 
#define ENC_CTRL3_PRSC_SHIFT   (4U)
 
#define ENC_CTRL3_PRSC(x)   (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PRSC_SHIFT)) & ENC_CTRL3_PRSC_MASK)
 

Detailed Description

Macro Definition Documentation

◆ ENC_CTRL2_DIR [1/3]

#define ENC_CTRL2_DIR (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_DIR_SHIFT)) & ENC_CTRL2_DIR_MASK)

DIR - Count Direction Flag 0b0..Last count was in the down direction 0b1..Last count was in the up direction

◆ ENC_CTRL2_DIR [2/3]

#define ENC_CTRL2_DIR (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_DIR_SHIFT)) & ENC_CTRL2_DIR_MASK)

DIR - Count Direction Flag 0b0..Last count was in the down direction 0b1..Last count was in the up direction

◆ ENC_CTRL2_DIR [3/3]

#define ENC_CTRL2_DIR (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_DIR_SHIFT)) & ENC_CTRL2_DIR_MASK)

DIR - Count Direction Flag 0b0..Last count was in the down direction 0b1..Last count was in the up direction

◆ ENC_CTRL2_MOD [1/3]

#define ENC_CTRL2_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_MOD_SHIFT)) & ENC_CTRL2_MOD_MASK)

MOD - Enable Modulo Counting 0b0..Disable modulo counting 0b1..Enable modulo counting

◆ ENC_CTRL2_MOD [2/3]

#define ENC_CTRL2_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_MOD_SHIFT)) & ENC_CTRL2_MOD_MASK)

MOD - Enable Modulo Counting 0b0..Disable modulo counting 0b1..Enable modulo counting

◆ ENC_CTRL2_MOD [3/3]

#define ENC_CTRL2_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_MOD_SHIFT)) & ENC_CTRL2_MOD_MASK)

MOD - Enable Modulo Counting 0b0..Disable modulo counting 0b1..Enable modulo counting

◆ ENC_CTRL2_OUTCTL [1/3]

#define ENC_CTRL2_OUTCTL (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_OUTCTL_SHIFT)) & ENC_CTRL2_OUTCTL_MASK)

OUTCTL - Output Control 0b0..POSMATCH pulses when a match occurs between the position counters (POS) and the corresponding compare value (COMP ) 0b1..POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read

◆ ENC_CTRL2_OUTCTL [2/3]

#define ENC_CTRL2_OUTCTL (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_OUTCTL_SHIFT)) & ENC_CTRL2_OUTCTL_MASK)

OUTCTL - Output Control 0b0..POSMATCH pulses when a match occurs between the position counters (POS) and the corresponding compare value (COMP ) 0b1..POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read

◆ ENC_CTRL2_OUTCTL [3/3]

#define ENC_CTRL2_OUTCTL (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_OUTCTL_SHIFT)) & ENC_CTRL2_OUTCTL_MASK)

OUTCTL - Output Control 0b0..POSMATCH pulses when a match occurs between the position counters (POS) and the corresponding compare value (COMP ) 0b1..POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read

◆ ENC_CTRL2_REVMOD [1/3]

#define ENC_CTRL2_REVMOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_REVMOD_SHIFT)) & ENC_CTRL2_REVMOD_MASK)

REVMOD - Revolution Counter Modulus Enable 0b0..Use INDEX pulse to increment/decrement revolution counter (REV) 0b1..Use modulus counting roll-over/under to increment/decrement revolution counter (REV)

◆ ENC_CTRL2_REVMOD [2/3]

#define ENC_CTRL2_REVMOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_REVMOD_SHIFT)) & ENC_CTRL2_REVMOD_MASK)

REVMOD - Revolution Counter Modulus Enable 0b0..Use INDEX pulse to increment/decrement revolution counter (REV) 0b1..Use modulus counting roll-over/under to increment/decrement revolution counter (REV)

◆ ENC_CTRL2_REVMOD [3/3]

#define ENC_CTRL2_REVMOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_REVMOD_SHIFT)) & ENC_CTRL2_REVMOD_MASK)

REVMOD - Revolution Counter Modulus Enable 0b0..Use INDEX pulse to increment/decrement revolution counter (REV) 0b1..Use modulus counting roll-over/under to increment/decrement revolution counter (REV)

◆ ENC_CTRL2_ROIE [1/3]

#define ENC_CTRL2_ROIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK)

ROIE - Roll-over Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_ROIE [2/3]

#define ENC_CTRL2_ROIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK)

ROIE - Roll-over Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_ROIE [3/3]

#define ENC_CTRL2_ROIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK)

ROIE - Roll-over Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_ROIRQ [1/3]

#define ENC_CTRL2_ROIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIRQ_SHIFT)) & ENC_CTRL2_ROIRQ_MASK)

ROIRQ - Roll-over Interrupt Request 0b0..No roll-over has occurred 0b1..Roll-over has occurred

◆ ENC_CTRL2_ROIRQ [2/3]

#define ENC_CTRL2_ROIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIRQ_SHIFT)) & ENC_CTRL2_ROIRQ_MASK)

ROIRQ - Roll-over Interrupt Request 0b0..No roll-over has occurred 0b1..Roll-over has occurred

◆ ENC_CTRL2_ROIRQ [3/3]

#define ENC_CTRL2_ROIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIRQ_SHIFT)) & ENC_CTRL2_ROIRQ_MASK)

ROIRQ - Roll-over Interrupt Request 0b0..No roll-over has occurred 0b1..Roll-over has occurred

◆ ENC_CTRL2_RUIE [1/3]

#define ENC_CTRL2_RUIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK)

RUIE - Roll-under Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_RUIE [2/3]

#define ENC_CTRL2_RUIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK)

RUIE - Roll-under Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_RUIE [3/3]

#define ENC_CTRL2_RUIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK)

RUIE - Roll-under Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_RUIRQ [1/3]

#define ENC_CTRL2_RUIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIRQ_SHIFT)) & ENC_CTRL2_RUIRQ_MASK)

RUIRQ - Roll-under Interrupt Request 0b0..No roll-under has occurred 0b1..Roll-under has occurred

◆ ENC_CTRL2_RUIRQ [2/3]

#define ENC_CTRL2_RUIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIRQ_SHIFT)) & ENC_CTRL2_RUIRQ_MASK)

RUIRQ - Roll-under Interrupt Request 0b0..No roll-under has occurred 0b1..Roll-under has occurred

◆ ENC_CTRL2_RUIRQ [3/3]

#define ENC_CTRL2_RUIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIRQ_SHIFT)) & ENC_CTRL2_RUIRQ_MASK)

RUIRQ - Roll-under Interrupt Request 0b0..No roll-under has occurred 0b1..Roll-under has occurred

◆ ENC_CTRL2_SABIE [1/2]

#define ENC_CTRL2_SABIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIE_SHIFT)) & ENC_CTRL2_SABIE_MASK)

SABIE - Simultaneous PHASEA and PHASEB Change Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_SABIE [2/2]

#define ENC_CTRL2_SABIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIE_SHIFT)) & ENC_CTRL2_SABIE_MASK)

SABIE - Simultaneous PHASEA and PHASEB Change Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL2_SABIRQ [1/2]

#define ENC_CTRL2_SABIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIRQ_SHIFT)) & ENC_CTRL2_SABIRQ_MASK)

SABIRQ - Simultaneous PHASEA and PHASEB Change Interrupt Request 0b0..No simultaneous change of PHASEA and PHASEB has occurred 0b1..A simultaneous change of PHASEA and PHASEB has occurred

◆ ENC_CTRL2_SABIRQ [2/2]

#define ENC_CTRL2_SABIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_SABIRQ_SHIFT)) & ENC_CTRL2_SABIRQ_MASK)

SABIRQ - Simultaneous PHASEA and PHASEB Change Interrupt Request 0b0..No simultaneous change of PHASEA and PHASEB has occurred 0b1..A simultaneous change of PHASEA and PHASEB has occurred

◆ ENC_CTRL2_UPDHLD [1/3]

#define ENC_CTRL2_UPDHLD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDHLD_SHIFT)) & ENC_CTRL2_UPDHLD_MASK)

UPDHLD - Update Hold Registers 0b0..Disable updates of hold registers on the rising edge of TRIGGER input signal 0b1..Enable updates of hold registers on the rising edge of TRIGGER input signal

◆ ENC_CTRL2_UPDHLD [2/3]

#define ENC_CTRL2_UPDHLD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDHLD_SHIFT)) & ENC_CTRL2_UPDHLD_MASK)

UPDHLD - Update Hold Registers 0b0..Disable updates of hold registers on the rising edge of TRIGGER input signal 0b1..Enable updates of hold registers on the rising edge of TRIGGER input signal

◆ ENC_CTRL2_UPDHLD [3/3]

#define ENC_CTRL2_UPDHLD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDHLD_SHIFT)) & ENC_CTRL2_UPDHLD_MASK)

UPDHLD - Update Hold Registers 0b0..Disable updates of hold registers on the rising edge of TRIGGER input signal 0b1..Enable updates of hold registers on the rising edge of TRIGGER input signal

◆ ENC_CTRL2_UPDPOS [1/3]

#define ENC_CTRL2_UPDPOS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDPOS_SHIFT)) & ENC_CTRL2_UPDPOS_MASK)

UPDPOS - Update Position Registers 0b0..No action for POSD, REV, UPOS and LPOS registers on rising edge of TRIGGER 0b1..Clear POSD, REV, UPOS and LPOS registers on rising edge of TRIGGER

◆ ENC_CTRL2_UPDPOS [2/3]

#define ENC_CTRL2_UPDPOS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDPOS_SHIFT)) & ENC_CTRL2_UPDPOS_MASK)

UPDPOS - Update Position Registers 0b0..No action for POSD, REV, UPOS and LPOS registers on rising edge of TRIGGER 0b1..Clear POSD, REV, UPOS and LPOS registers on rising edge of TRIGGER

◆ ENC_CTRL2_UPDPOS [3/3]

#define ENC_CTRL2_UPDPOS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_UPDPOS_SHIFT)) & ENC_CTRL2_UPDPOS_MASK)

UPDPOS - Update Position Registers 0b0..No action for POSD, REV, UPOS and LPOS registers on rising edge of TRIGGER 0b1..Clear POSD, REV, UPOS and LPOS registers on rising edge of TRIGGER

◆ ENC_CTRL3_PMEN [1/2]

#define ENC_CTRL3_PMEN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PMEN_SHIFT)) & ENC_CTRL3_PMEN_MASK)

PMEN - Period measurement function enable 0b0..Period measurement functions are not used. POSD is loaded to POSDH and then cleared whenever POSD, UPOS, LPOS, or REV is read. 0b1..Period measurement functions are used. POSD is loaded to POSDH and then cleared only when POSD is read.

◆ ENC_CTRL3_PMEN [2/2]

#define ENC_CTRL3_PMEN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PMEN_SHIFT)) & ENC_CTRL3_PMEN_MASK)

PMEN - Period measurement function enable 0b0..Period measurement functions are not used. POSD is loaded to POSDH and then cleared whenever POSD, UPOS, LPOS, or REV is read. 0b1..Period measurement functions are used. POSD is loaded to POSDH and then cleared only when POSD is read.

◆ ENC_CTRL3_PRSC [1/2]

#define ENC_CTRL3_PRSC (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PRSC_SHIFT)) & ENC_CTRL3_PRSC_MASK)

PRSC - Prescaler

◆ ENC_CTRL3_PRSC [2/2]

#define ENC_CTRL3_PRSC (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL3_PRSC_SHIFT)) & ENC_CTRL3_PRSC_MASK)

PRSC - Prescaler

◆ ENC_CTRL_CMPIE [1/3]

#define ENC_CTRL_CMPIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK)

CMPIE - Compare Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_CMPIE [2/3]

#define ENC_CTRL_CMPIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK)

CMPIE - Compare Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_CMPIE [3/3]

#define ENC_CTRL_CMPIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK)

CMPIE - Compare Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_CMPIRQ [1/3]

#define ENC_CTRL_CMPIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIRQ_SHIFT)) & ENC_CTRL_CMPIRQ_MASK)

CMPIRQ - Compare Interrupt Request 0b0..No match has occurred (the counter does not match the COMP value) 0b1..COMP match has occurred (the counter matches the COMP value)

◆ ENC_CTRL_CMPIRQ [2/3]

#define ENC_CTRL_CMPIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIRQ_SHIFT)) & ENC_CTRL_CMPIRQ_MASK)

CMPIRQ - Compare Interrupt Request 0b0..No match has occurred (the counter does not match the COMP value) 0b1..COMP match has occurred (the counter matches the COMP value)

◆ ENC_CTRL_CMPIRQ [3/3]

#define ENC_CTRL_CMPIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIRQ_SHIFT)) & ENC_CTRL_CMPIRQ_MASK)

CMPIRQ - Compare Interrupt Request 0b0..No match has occurred (the counter does not match the COMP value) 0b1..COMP match has occurred (the counter matches the COMP value)

◆ ENC_CTRL_DIE [1/3]

#define ENC_CTRL_DIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK)

DIE - Watchdog Timeout Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_DIE [2/3]

#define ENC_CTRL_DIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK)

DIE - Watchdog Timeout Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_DIE [3/3]

#define ENC_CTRL_DIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK)

DIE - Watchdog Timeout Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_DIRQ [1/3]

#define ENC_CTRL_DIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIRQ_SHIFT)) & ENC_CTRL_DIRQ_MASK)

DIRQ - Watchdog Timeout Interrupt Request 0b0..No Watchdog timeout interrupt has occurred 0b1..Watchdog timeout interrupt has occurred

◆ ENC_CTRL_DIRQ [2/3]

#define ENC_CTRL_DIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIRQ_SHIFT)) & ENC_CTRL_DIRQ_MASK)

DIRQ - Watchdog Timeout Interrupt Request 0b0..No Watchdog timeout interrupt has occurred 0b1..Watchdog timeout interrupt has occurred

◆ ENC_CTRL_DIRQ [3/3]

#define ENC_CTRL_DIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIRQ_SHIFT)) & ENC_CTRL_DIRQ_MASK)

DIRQ - Watchdog Timeout Interrupt Request 0b0..No Watchdog timeout interrupt has occurred 0b1..Watchdog timeout interrupt has occurred

◆ ENC_CTRL_HIE [1/3]

#define ENC_CTRL_HIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK)

HIE - HOME Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_HIE [2/3]

#define ENC_CTRL_HIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK)

HIE - HOME Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_HIE [3/3]

#define ENC_CTRL_HIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK)

HIE - HOME Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_HIP [1/3]

#define ENC_CTRL_HIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIP_SHIFT)) & ENC_CTRL_HIP_MASK)

HIP - Enable HOME to Initialize Position Counters UPOS and LPOS 0b0..No action 0b1..HOME signal initializes the position counter

◆ ENC_CTRL_HIP [2/3]

#define ENC_CTRL_HIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIP_SHIFT)) & ENC_CTRL_HIP_MASK)

HIP - Enable HOME to Initialize Position Counters UPOS and LPOS 0b0..No action 0b1..HOME signal initializes the position counter

◆ ENC_CTRL_HIP [3/3]

#define ENC_CTRL_HIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIP_SHIFT)) & ENC_CTRL_HIP_MASK)

HIP - Enable HOME to Initialize Position Counters UPOS and LPOS 0b0..No action 0b1..HOME signal initializes the position counter

◆ ENC_CTRL_HIRQ [1/3]

#define ENC_CTRL_HIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIRQ_SHIFT)) & ENC_CTRL_HIRQ_MASK)

HIRQ - HOME Signal Transition Interrupt Request 0b0..No transition on the HOME signal has occurred 0b1..A transition on the HOME signal has occurred

◆ ENC_CTRL_HIRQ [2/3]

#define ENC_CTRL_HIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIRQ_SHIFT)) & ENC_CTRL_HIRQ_MASK)

HIRQ - HOME Signal Transition Interrupt Request 0b0..No transition on the HOME signal has occurred 0b1..A transition on the HOME signal has occurred

◆ ENC_CTRL_HIRQ [3/3]

#define ENC_CTRL_HIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIRQ_SHIFT)) & ENC_CTRL_HIRQ_MASK)

HIRQ - HOME Signal Transition Interrupt Request 0b0..No transition on the HOME signal has occurred 0b1..A transition on the HOME signal has occurred

◆ ENC_CTRL_HNE [1/3]

#define ENC_CTRL_HNE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HNE_SHIFT)) & ENC_CTRL_HNE_MASK)

HNE - Use Negative Edge of HOME Input 0b0..Use positive-going edge-to-trigger initialization of position counters UPOS and LPOS 0b1..Use negative-going edge-to-trigger initialization of position counters UPOS and LPOS

◆ ENC_CTRL_HNE [2/3]

#define ENC_CTRL_HNE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HNE_SHIFT)) & ENC_CTRL_HNE_MASK)

HNE - Use Negative Edge of HOME Input 0b0..Use positive-going edge-to-trigger initialization of position counters UPOS and LPOS 0b1..Use negative-going edge-to-trigger initialization of position counters UPOS and LPOS

◆ ENC_CTRL_HNE [3/3]

#define ENC_CTRL_HNE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HNE_SHIFT)) & ENC_CTRL_HNE_MASK)

HNE - Use Negative Edge of HOME Input 0b0..Use positive-going edge-to-trigger initialization of position counters UPOS and LPOS 0b1..Use negative-going edge-to-trigger initialization of position counters UPOS and LPOS

◆ ENC_CTRL_PH1 [1/3]

#define ENC_CTRL_PH1 (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_PH1_SHIFT)) & ENC_CTRL_PH1_MASK)

PH1 - Enable Signal Phase Count Mode 0b0..Use the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal. 0b1..Bypass the quadrature decoder. A positive transition of the PHASEA input generates a count signal. The PHASEB input and the REV bit control the counter direction: If CTRL[REV] = 0, PHASEB = 0, then count up If CTRL[REV] = 1, PHASEB = 1, then count up If CTRL[REV] = 0, PHASEB = 1, then count down If CTRL[REV] = 1, PHASEB = 0, then count down

◆ ENC_CTRL_PH1 [2/3]

#define ENC_CTRL_PH1 (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_PH1_SHIFT)) & ENC_CTRL_PH1_MASK)

PH1 - Enable Signal Phase Count Mode 0b0..Use the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal. 0b1..Bypass the quadrature decoder. A positive transition of the PHASEA input generates a count signal. The PHASEB input and the REV bit control the counter direction: If CTRL[REV] = 0, PHASEB = 0, then count up If CTRL[REV] = 1, PHASEB = 1, then count up If CTRL[REV] = 0, PHASEB = 1, then count down If CTRL[REV] = 1, PHASEB = 0, then count down

◆ ENC_CTRL_PH1 [3/3]

#define ENC_CTRL_PH1 (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_PH1_SHIFT)) & ENC_CTRL_PH1_MASK)

PH1 - Enable Signal Phase Count Mode 0b0..Use the standard quadrature decoder, where PHASEA and PHASEB represent a two-phase quadrature signal. 0b1..Bypass the quadrature decoder. A positive transition of the PHASEA input generates a count signal. The PHASEB input and the REV bit control the counter direction: If CTRL[REV] = 0, PHASEB = 0, then count up If CTRL[REV] = 1, PHASEB = 1, then count up If CTRL[REV] = 0, PHASEB = 1, then count down If CTRL[REV] = 1, PHASEB = 0, then count down

◆ ENC_CTRL_REV [1/3]

#define ENC_CTRL_REV (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_REV_SHIFT)) & ENC_CTRL_REV_MASK)

REV - Enable Reverse Direction Counting 0b0..Count normally 0b1..Count in the reverse direction

◆ ENC_CTRL_REV [2/3]

#define ENC_CTRL_REV (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_REV_SHIFT)) & ENC_CTRL_REV_MASK)

REV - Enable Reverse Direction Counting 0b0..Count normally 0b1..Count in the reverse direction

◆ ENC_CTRL_REV [3/3]

#define ENC_CTRL_REV (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_REV_SHIFT)) & ENC_CTRL_REV_MASK)

REV - Enable Reverse Direction Counting 0b0..Count normally 0b1..Count in the reverse direction

◆ ENC_CTRL_SWIP [1/3]

#define ENC_CTRL_SWIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_SWIP_SHIFT)) & ENC_CTRL_SWIP_MASK)

SWIP - Software-Triggered Initialization of Position Counters UPOS and LPOS 0b0..No action 0b1..Initialize position counter (using upper and lower initialization registers, UINIT and LINIT)

◆ ENC_CTRL_SWIP [2/3]

#define ENC_CTRL_SWIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_SWIP_SHIFT)) & ENC_CTRL_SWIP_MASK)

SWIP - Software-Triggered Initialization of Position Counters UPOS and LPOS 0b0..No action 0b1..Initialize position counter (using upper and lower initialization registers, UINIT and LINIT)

◆ ENC_CTRL_SWIP [3/3]

#define ENC_CTRL_SWIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_SWIP_SHIFT)) & ENC_CTRL_SWIP_MASK)

SWIP - Software-Triggered Initialization of Position Counters UPOS and LPOS 0b0..No action 0b1..Initialize position counter (using upper and lower initialization registers, UINIT and LINIT)

◆ ENC_CTRL_WDE [1/3]

#define ENC_CTRL_WDE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK)

WDE - Watchdog Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_WDE [2/3]

#define ENC_CTRL_WDE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK)

WDE - Watchdog Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_WDE [3/3]

#define ENC_CTRL_WDE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK)

WDE - Watchdog Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_XIE [1/3]

#define ENC_CTRL_XIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK)

XIE - INDEX Pulse Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_XIE [2/3]

#define ENC_CTRL_XIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK)

XIE - INDEX Pulse Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_XIE [3/3]

#define ENC_CTRL_XIE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK)

XIE - INDEX Pulse Interrupt Enable 0b0..Disabled 0b1..Enabled

◆ ENC_CTRL_XIP [1/3]

#define ENC_CTRL_XIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIP_SHIFT)) & ENC_CTRL_XIP_MASK)

XIP - INDEX Triggered Initialization of Position Counters UPOS and LPOS 0b0..INDEX pulse does not initialize the position counter 0b1..INDEX pulse initializes the position counter

◆ ENC_CTRL_XIP [2/3]

#define ENC_CTRL_XIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIP_SHIFT)) & ENC_CTRL_XIP_MASK)

XIP - INDEX Triggered Initialization of Position Counters UPOS and LPOS 0b0..INDEX pulse does not initialize the position counter 0b1..INDEX pulse initializes the position counter

◆ ENC_CTRL_XIP [3/3]

#define ENC_CTRL_XIP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIP_SHIFT)) & ENC_CTRL_XIP_MASK)

XIP - INDEX Triggered Initialization of Position Counters UPOS and LPOS 0b0..INDEX pulse does not initialize the position counter 0b1..INDEX pulse initializes the position counter

◆ ENC_CTRL_XIRQ [1/3]

#define ENC_CTRL_XIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK)

XIRQ - INDEX Pulse Interrupt Request 0b0..INDEX pulse has not occurred 0b1..INDEX pulse has occurred

◆ ENC_CTRL_XIRQ [2/3]

#define ENC_CTRL_XIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK)

XIRQ - INDEX Pulse Interrupt Request 0b0..INDEX pulse has not occurred 0b1..INDEX pulse has occurred

◆ ENC_CTRL_XIRQ [3/3]

#define ENC_CTRL_XIRQ (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK)

XIRQ - INDEX Pulse Interrupt Request 0b0..INDEX pulse has not occurred 0b1..INDEX pulse has occurred

◆ ENC_CTRL_XNE [1/3]

#define ENC_CTRL_XNE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XNE_SHIFT)) & ENC_CTRL_XNE_MASK)

XNE - Use Negative Edge of INDEX Pulse 0b0..Use positive edge of INDEX pulse 0b1..Use negative edge of INDEX pulse

◆ ENC_CTRL_XNE [2/3]

#define ENC_CTRL_XNE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XNE_SHIFT)) & ENC_CTRL_XNE_MASK)

XNE - Use Negative Edge of INDEX Pulse 0b0..Use positive edge of INDEX pulse 0b1..Use negative edge of INDEX pulse

◆ ENC_CTRL_XNE [3/3]

#define ENC_CTRL_XNE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XNE_SHIFT)) & ENC_CTRL_XNE_MASK)

XNE - Use Negative Edge of INDEX Pulse 0b0..Use positive edge of INDEX pulse 0b1..Use negative edge of INDEX pulse

◆ ENC_FILT_FILT_CNT [1/3]

#define ENC_FILT_FILT_CNT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_CNT_SHIFT)) & ENC_FILT_FILT_CNT_MASK)

FILT_CNT - Input Filter Sample Count

◆ ENC_FILT_FILT_CNT [2/3]

#define ENC_FILT_FILT_CNT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_CNT_SHIFT)) & ENC_FILT_FILT_CNT_MASK)

FILT_CNT - Input Filter Sample Count

◆ ENC_FILT_FILT_CNT [3/3]

#define ENC_FILT_FILT_CNT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_CNT_SHIFT)) & ENC_FILT_FILT_CNT_MASK)

FILT_CNT - Input Filter Sample Count

◆ ENC_FILT_FILT_PER [1/3]

#define ENC_FILT_FILT_PER (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PER_SHIFT)) & ENC_FILT_FILT_PER_MASK)

FILT_PER - Input Filter Sample Period

◆ ENC_FILT_FILT_PER [2/3]

#define ENC_FILT_FILT_PER (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PER_SHIFT)) & ENC_FILT_FILT_PER_MASK)

FILT_PER - Input Filter Sample Period

◆ ENC_FILT_FILT_PER [3/3]

#define ENC_FILT_FILT_PER (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PER_SHIFT)) & ENC_FILT_FILT_PER_MASK)

FILT_PER - Input Filter Sample Period

◆ ENC_FILT_FILT_PRSC [1/2]

#define ENC_FILT_FILT_PRSC (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PRSC_SHIFT)) & ENC_FILT_FILT_PRSC_MASK)

FILT_PRSC - prescaler divide IPbus clock to FILT clk

◆ ENC_FILT_FILT_PRSC [2/2]

#define ENC_FILT_FILT_PRSC (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_FILT_FILT_PRSC_SHIFT)) & ENC_FILT_FILT_PRSC_MASK)

FILT_PRSC - prescaler divide IPbus clock to FILT clk

◆ ENC_IMR_FHOM [1/3]

#define ENC_IMR_FHOM (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK)

FHOM - FHOM

◆ ENC_IMR_FHOM [2/3]

#define ENC_IMR_FHOM (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK)

FHOM - FHOM

◆ ENC_IMR_FHOM [3/3]

#define ENC_IMR_FHOM (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK)

FHOM - FHOM

◆ ENC_IMR_FIND [1/3]

#define ENC_IMR_FIND (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK)

FIND - FIND

◆ ENC_IMR_FIND [2/3]

#define ENC_IMR_FIND (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK)

FIND - FIND

◆ ENC_IMR_FIND [3/3]

#define ENC_IMR_FIND (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK)

FIND - FIND

◆ ENC_IMR_FPHA [1/3]

#define ENC_IMR_FPHA (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK)

FPHA - FPHA

◆ ENC_IMR_FPHA [2/3]

#define ENC_IMR_FPHA (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK)

FPHA - FPHA

◆ ENC_IMR_FPHA [3/3]

#define ENC_IMR_FPHA (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK)

FPHA - FPHA

◆ ENC_IMR_FPHB [1/3]

#define ENC_IMR_FPHB (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK)

FPHB - FPHB

◆ ENC_IMR_FPHB [2/3]

#define ENC_IMR_FPHB (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK)

FPHB - FPHB

◆ ENC_IMR_FPHB [3/3]

#define ENC_IMR_FPHB (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK)

FPHB - FPHB

◆ ENC_IMR_HOME [1/3]

#define ENC_IMR_HOME (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK)

HOME - HOME

◆ ENC_IMR_HOME [2/3]

#define ENC_IMR_HOME (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK)

HOME - HOME

◆ ENC_IMR_HOME [3/3]

#define ENC_IMR_HOME (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK)

HOME - HOME

◆ ENC_IMR_INDEX [1/3]

#define ENC_IMR_INDEX (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK)

INDEX - INDEX

◆ ENC_IMR_INDEX [2/3]

#define ENC_IMR_INDEX (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK)

INDEX - INDEX

◆ ENC_IMR_INDEX [3/3]

#define ENC_IMR_INDEX (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK)

INDEX - INDEX

◆ ENC_IMR_PHA [1/3]

#define ENC_IMR_PHA (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK)

PHA - PHA

◆ ENC_IMR_PHA [2/3]

#define ENC_IMR_PHA (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK)

PHA - PHA

◆ ENC_IMR_PHA [3/3]

#define ENC_IMR_PHA (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK)

PHA - PHA

◆ ENC_IMR_PHB [1/3]

#define ENC_IMR_PHB (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK)

PHB - PHB

◆ ENC_IMR_PHB [2/3]

#define ENC_IMR_PHB (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK)

PHB - PHB

◆ ENC_IMR_PHB [3/3]

#define ENC_IMR_PHB (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK)

PHB - PHB

◆ ENC_LASTEDGE_LASTEDGE [1/2]

#define ENC_LASTEDGE_LASTEDGE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGE_LASTEDGE_SHIFT)) & ENC_LASTEDGE_LASTEDGE_MASK)

LASTEDGE - Last Edge Time Counter

◆ ENC_LASTEDGE_LASTEDGE [2/2]

#define ENC_LASTEDGE_LASTEDGE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGE_LASTEDGE_SHIFT)) & ENC_LASTEDGE_LASTEDGE_MASK)

LASTEDGE - Last Edge Time Counter

◆ ENC_LASTEDGEH_LASTEDGEH [1/2]

#define ENC_LASTEDGEH_LASTEDGEH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGEH_LASTEDGEH_SHIFT)) & ENC_LASTEDGEH_LASTEDGEH_MASK)

LASTEDGEH - Last Edge Time Hold

◆ ENC_LASTEDGEH_LASTEDGEH [2/2]

#define ENC_LASTEDGEH_LASTEDGEH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LASTEDGEH_LASTEDGEH_SHIFT)) & ENC_LASTEDGEH_LASTEDGEH_MASK)

LASTEDGEH - Last Edge Time Hold

◆ ENC_LCOMP_COMP [1/3]

#define ENC_LCOMP_COMP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK)

COMP - COMP

◆ ENC_LCOMP_COMP [2/3]

#define ENC_LCOMP_COMP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK)

COMP - COMP

◆ ENC_LCOMP_COMP [3/3]

#define ENC_LCOMP_COMP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK)

COMP - COMP

◆ ENC_LINIT_INIT [1/3]

#define ENC_LINIT_INIT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK)

INIT - INIT

◆ ENC_LINIT_INIT [2/3]

#define ENC_LINIT_INIT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK)

INIT - INIT

◆ ENC_LINIT_INIT [3/3]

#define ENC_LINIT_INIT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK)

INIT - INIT

◆ ENC_LMOD_MOD [1/3]

#define ENC_LMOD_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK)

MOD - MOD

◆ ENC_LMOD_MOD [2/3]

#define ENC_LMOD_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK)

MOD - MOD

◆ ENC_LMOD_MOD [3/3]

#define ENC_LMOD_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK)

MOD - MOD

◆ ENC_LPOS_POS [1/3]

#define ENC_LPOS_POS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK)

POS - POS

◆ ENC_LPOS_POS [2/3]

#define ENC_LPOS_POS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK)

POS - POS

◆ ENC_LPOS_POS [3/3]

#define ENC_LPOS_POS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK)

POS - POS

◆ ENC_LPOSH_POSH [1/3]

#define ENC_LPOSH_POSH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK)

POSH - POSH

◆ ENC_LPOSH_POSH [2/3]

#define ENC_LPOSH_POSH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK)

POSH - POSH

◆ ENC_LPOSH_POSH [3/3]

#define ENC_LPOSH_POSH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK)

POSH - POSH

◆ ENC_POSD_POSD [1/3]

#define ENC_POSD_POSD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK)

POSD - POSD

◆ ENC_POSD_POSD [2/3]

#define ENC_POSD_POSD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK)

POSD - POSD

◆ ENC_POSD_POSD [3/3]

#define ENC_POSD_POSD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK)

POSD - POSD

◆ ENC_POSDH_POSDH [1/3]

#define ENC_POSDH_POSDH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK)

POSDH - POSDH

◆ ENC_POSDH_POSDH [2/3]

#define ENC_POSDH_POSDH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK)

POSDH - POSDH

◆ ENC_POSDH_POSDH [3/3]

#define ENC_POSDH_POSDH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK)

POSDH - POSDH

◆ ENC_POSDPER_POSDPER [1/2]

#define ENC_POSDPER_POSDPER (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDPER_POSDPER_SHIFT)) & ENC_POSDPER_POSDPER_MASK)

POSDPER - Position difference period

◆ ENC_POSDPER_POSDPER [2/2]

#define ENC_POSDPER_POSDPER (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDPER_POSDPER_SHIFT)) & ENC_POSDPER_POSDPER_MASK)

POSDPER - Position difference period

◆ ENC_POSDPERBFR_POSDPERBFR [1/2]

#define ENC_POSDPERBFR_POSDPERBFR (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERBFR_POSDPERBFR_SHIFT)) & ENC_POSDPERBFR_POSDPERBFR_MASK)

POSDPERBFR - Position difference period buffer

◆ ENC_POSDPERBFR_POSDPERBFR [2/2]

#define ENC_POSDPERBFR_POSDPERBFR (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERBFR_POSDPERBFR_SHIFT)) & ENC_POSDPERBFR_POSDPERBFR_MASK)

POSDPERBFR - Position difference period buffer

◆ ENC_POSDPERH_POSDPERH [1/2]

#define ENC_POSDPERH_POSDPERH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERH_POSDPERH_SHIFT)) & ENC_POSDPERH_POSDPERH_MASK)

POSDPERH - Position difference period hold

◆ ENC_POSDPERH_POSDPERH [2/2]

#define ENC_POSDPERH_POSDPERH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_POSDPERH_POSDPERH_SHIFT)) & ENC_POSDPERH_POSDPERH_MASK)

POSDPERH - Position difference period hold

◆ ENC_REV_REV [1/3]

#define ENC_REV_REV (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK)

REV - REV

◆ ENC_REV_REV [2/3]

#define ENC_REV_REV (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK)

REV - REV

◆ ENC_REV_REV [3/3]

#define ENC_REV_REV (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK)

REV - REV

◆ ENC_REVH_REVH [1/3]

#define ENC_REVH_REVH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK)

REVH - REVH

◆ ENC_REVH_REVH [2/3]

#define ENC_REVH_REVH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK)

REVH - REVH

◆ ENC_REVH_REVH [3/3]

#define ENC_REVH_REVH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK)

REVH - REVH

◆ ENC_TST_QDN [1/3]

#define ENC_TST_QDN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK)

QDN - Quadrature Decoder Negative Signal 0b0..Generates a positive quadrature decoder signal 0b1..Generates a negative quadrature decoder signal

◆ ENC_TST_QDN [2/3]

#define ENC_TST_QDN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK)

QDN - Quadrature Decoder Negative Signal 0b0..Generates a positive quadrature decoder signal 0b1..Generates a negative quadrature decoder signal

◆ ENC_TST_QDN [3/3]

#define ENC_TST_QDN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK)

QDN - Quadrature Decoder Negative Signal 0b0..Generates a positive quadrature decoder signal 0b1..Generates a negative quadrature decoder signal

◆ ENC_TST_TCE [1/3]

#define ENC_TST_TCE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK)

TCE - Test Counter Enable 0b0..Disabled 0b1..Enabled

◆ ENC_TST_TCE [2/3]

#define ENC_TST_TCE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK)

TCE - Test Counter Enable 0b0..Disabled 0b1..Enabled

◆ ENC_TST_TCE [3/3]

#define ENC_TST_TCE (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK)

TCE - Test Counter Enable 0b0..Disabled 0b1..Enabled

◆ ENC_TST_TEN [1/3]

#define ENC_TST_TEN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK)

TEN - Test Mode Enable 0b0..Disabled 0b1..Enabled

◆ ENC_TST_TEN [2/3]

#define ENC_TST_TEN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK)

TEN - Test Mode Enable 0b0..Disabled 0b1..Enabled

◆ ENC_TST_TEN [3/3]

#define ENC_TST_TEN (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK)

TEN - Test Mode Enable 0b0..Disabled 0b1..Enabled

◆ ENC_TST_TEST_COUNT [1/3]

#define ENC_TST_TEST_COUNT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK)

TEST_COUNT - TEST_COUNT

◆ ENC_TST_TEST_COUNT [2/3]

#define ENC_TST_TEST_COUNT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK)

TEST_COUNT - TEST_COUNT

◆ ENC_TST_TEST_COUNT [3/3]

#define ENC_TST_TEST_COUNT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK)

TEST_COUNT - TEST_COUNT

◆ ENC_TST_TEST_PERIOD [1/3]

#define ENC_TST_TEST_PERIOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK)

TEST_PERIOD - TEST_PERIOD

◆ ENC_TST_TEST_PERIOD [2/3]

#define ENC_TST_TEST_PERIOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK)

TEST_PERIOD - TEST_PERIOD

◆ ENC_TST_TEST_PERIOD [3/3]

#define ENC_TST_TEST_PERIOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK)

TEST_PERIOD - TEST_PERIOD

◆ ENC_UCOMP_COMP [1/3]

#define ENC_UCOMP_COMP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK)

COMP - COMP

◆ ENC_UCOMP_COMP [2/3]

#define ENC_UCOMP_COMP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK)

COMP - COMP

◆ ENC_UCOMP_COMP [3/3]

#define ENC_UCOMP_COMP (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK)

COMP - COMP

◆ ENC_UINIT_INIT [1/3]

#define ENC_UINIT_INIT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK)

INIT - INIT

◆ ENC_UINIT_INIT [2/3]

#define ENC_UINIT_INIT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK)

INIT - INIT

◆ ENC_UINIT_INIT [3/3]

#define ENC_UINIT_INIT (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK)

INIT - INIT

◆ ENC_UMOD_MOD [1/3]

#define ENC_UMOD_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK)

MOD - MOD

◆ ENC_UMOD_MOD [2/3]

#define ENC_UMOD_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK)

MOD - MOD

◆ ENC_UMOD_MOD [3/3]

#define ENC_UMOD_MOD (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK)

MOD - MOD

◆ ENC_UPOS_POS [1/3]

#define ENC_UPOS_POS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK)

POS - POS

◆ ENC_UPOS_POS [2/3]

#define ENC_UPOS_POS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK)

POS - POS

◆ ENC_UPOS_POS [3/3]

#define ENC_UPOS_POS (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK)

POS - POS

◆ ENC_UPOSH_POSH [1/3]

#define ENC_UPOSH_POSH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK)

POSH - POSH

◆ ENC_UPOSH_POSH [2/3]

#define ENC_UPOSH_POSH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK)

POSH - POSH

◆ ENC_UPOSH_POSH [3/3]

#define ENC_UPOSH_POSH (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK)

POSH - POSH

◆ ENC_WTR_WDOG [1/3]

#define ENC_WTR_WDOG (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK)

WDOG - WDOG

◆ ENC_WTR_WDOG [2/3]

#define ENC_WTR_WDOG (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK)

WDOG - WDOG

◆ ENC_WTR_WDOG [3/3]

#define ENC_WTR_WDOG (   x)    (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK)

WDOG - WDOG