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) |
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) |
#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
Definition at line 15468 of file MIMXRT1052.h.
#define ENC_CTRL2_DIR_MASK (0x8U) |
Definition at line 15462 of file MIMXRT1052.h.
#define ENC_CTRL2_DIR_SHIFT (3U) |
Definition at line 15463 of file MIMXRT1052.h.
#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
Definition at line 15461 of file MIMXRT1052.h.
#define ENC_CTRL2_MOD_MASK (0x4U) |
Definition at line 15455 of file MIMXRT1052.h.
#define ENC_CTRL2_MOD_SHIFT (2U) |
Definition at line 15456 of file MIMXRT1052.h.
#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 compare value (COMP). 0b1..POSMATCH pulses when the UPOS, LPOS, REV, or POSD registers are read.
Definition at line 15510 of file MIMXRT1052.h.
#define ENC_CTRL2_OUTCTL_MASK (0x200U) |
Definition at line 15504 of file MIMXRT1052.h.
#define ENC_CTRL2_OUTCTL_SHIFT (9U) |
Definition at line 15505 of file MIMXRT1052.h.
#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).
Definition at line 15503 of file MIMXRT1052.h.
#define ENC_CTRL2_REVMOD_MASK (0x100U) |
Definition at line 15497 of file MIMXRT1052.h.
#define ENC_CTRL2_REVMOD_SHIFT (8U) |
Definition at line 15498 of file MIMXRT1052.h.
#define ENC_CTRL2_ROIE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_ROIE_SHIFT)) & ENC_CTRL2_ROIE_MASK) |
ROIE - Roll-over Interrupt Enable 0b0..Roll-over interrupt is disabled 0b1..Roll-over interrupt is enabled
Definition at line 15489 of file MIMXRT1052.h.
#define ENC_CTRL2_ROIE_MASK (0x40U) |
Definition at line 15483 of file MIMXRT1052.h.
#define ENC_CTRL2_ROIE_SHIFT (6U) |
Definition at line 15484 of file MIMXRT1052.h.
#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
Definition at line 15496 of file MIMXRT1052.h.
#define ENC_CTRL2_ROIRQ_MASK (0x80U) |
Definition at line 15490 of file MIMXRT1052.h.
#define ENC_CTRL2_ROIRQ_SHIFT (7U) |
Definition at line 15491 of file MIMXRT1052.h.
#define ENC_CTRL2_RUIE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL2_RUIE_SHIFT)) & ENC_CTRL2_RUIE_MASK) |
RUIE - Roll-under Interrupt Enable 0b0..Roll-under interrupt is disabled 0b1..Roll-under interrupt is enabled
Definition at line 15475 of file MIMXRT1052.h.
#define ENC_CTRL2_RUIE_MASK (0x10U) |
Definition at line 15469 of file MIMXRT1052.h.
#define ENC_CTRL2_RUIE_SHIFT (4U) |
Definition at line 15470 of file MIMXRT1052.h.
#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
Definition at line 15482 of file MIMXRT1052.h.
#define ENC_CTRL2_RUIRQ_MASK (0x20U) |
Definition at line 15476 of file MIMXRT1052.h.
#define ENC_CTRL2_RUIRQ_SHIFT (5U) |
Definition at line 15477 of file MIMXRT1052.h.
#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..Simultaneous PHASEA and PHASEB change interrupt disabled. 0b1..Simultaneous PHASEA and PHASEB change interrupt enabled.
Definition at line 15517 of file MIMXRT1052.h.
#define ENC_CTRL2_SABIE_MASK (0x400U) |
Definition at line 15511 of file MIMXRT1052.h.
#define ENC_CTRL2_SABIE_SHIFT (10U) |
Definition at line 15512 of file MIMXRT1052.h.
#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.
Definition at line 15524 of file MIMXRT1052.h.
#define ENC_CTRL2_SABIRQ_MASK (0x800U) |
Definition at line 15518 of file MIMXRT1052.h.
#define ENC_CTRL2_SABIRQ_SHIFT (11U) |
Definition at line 15519 of file MIMXRT1052.h.
#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 rising edge of TRIGGER 0b1..Enable updates of hold registers on rising edge of TRIGGER
Definition at line 15447 of file MIMXRT1052.h.
#define ENC_CTRL2_UPDHLD_MASK (0x1U) |
Definition at line 15441 of file MIMXRT1052.h.
#define ENC_CTRL2_UPDHLD_SHIFT (0U) |
Definition at line 15442 of file MIMXRT1052.h.
#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 on rising edge of TRIGGER 0b1..Clear POSD, REV, UPOS and LPOS on rising edge of TRIGGER
Definition at line 15454 of file MIMXRT1052.h.
#define ENC_CTRL2_UPDPOS_MASK (0x2U) |
Definition at line 15448 of file MIMXRT1052.h.
#define ENC_CTRL2_UPDPOS_SHIFT (1U) |
Definition at line 15449 of file MIMXRT1052.h.
#define ENC_CTRL_CMPIE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_CMPIE_SHIFT)) & ENC_CTRL_CMPIE_MASK) |
CMPIE - Compare Interrupt Enable 0b0..Compare interrupt is disabled 0b1..Compare interrupt is enabled
Definition at line 15178 of file MIMXRT1052.h.
#define ENC_CTRL_CMPIE_MASK (0x1U) |
Definition at line 15172 of file MIMXRT1052.h.
#define ENC_CTRL_CMPIE_SHIFT (0U) |
Definition at line 15173 of file MIMXRT1052.h.
#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 0b1..COMP match has occurred
Definition at line 15185 of file MIMXRT1052.h.
#define ENC_CTRL_CMPIRQ_MASK (0x2U) |
Definition at line 15179 of file MIMXRT1052.h.
#define ENC_CTRL_CMPIRQ_SHIFT (1U) |
Definition at line 15180 of file MIMXRT1052.h.
#define ENC_CTRL_DIE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_DIE_SHIFT)) & ENC_CTRL_DIE_MASK) |
DIE - Watchdog Timeout Interrupt Enable 0b0..Watchdog timer interrupt is disabled 0b1..Watchdog timer interrupt is enabled
Definition at line 15199 of file MIMXRT1052.h.
#define ENC_CTRL_DIE_MASK (0x8U) |
Definition at line 15193 of file MIMXRT1052.h.
#define ENC_CTRL_DIE_SHIFT (3U) |
Definition at line 15194 of file MIMXRT1052.h.
#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 interrupt has occurred 0b1..Watchdog timeout interrupt has occurred
Definition at line 15206 of file MIMXRT1052.h.
#define ENC_CTRL_DIRQ_MASK (0x10U) |
Definition at line 15200 of file MIMXRT1052.h.
#define ENC_CTRL_DIRQ_SHIFT (4U) |
Definition at line 15201 of file MIMXRT1052.h.
#define ENC_CTRL_HIE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_HIE_SHIFT)) & ENC_CTRL_HIE_MASK) |
HIE - HOME Interrupt Enable 0b0..Disable HOME interrupts 0b1..Enable HOME interrupts
Definition at line 15279 of file MIMXRT1052.h.
#define ENC_CTRL_HIE_MASK (0x4000U) |
Definition at line 15273 of file MIMXRT1052.h.
#define ENC_CTRL_HIE_SHIFT (14U) |
Definition at line 15274 of file MIMXRT1052.h.
#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
Definition at line 15272 of file MIMXRT1052.h.
#define ENC_CTRL_HIP_MASK (0x2000U) |
Definition at line 15266 of file MIMXRT1052.h.
#define ENC_CTRL_HIP_SHIFT (13U) |
Definition at line 15267 of file MIMXRT1052.h.
#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 interrupt 0b1..HOME signal transition interrupt request
Definition at line 15286 of file MIMXRT1052.h.
#define ENC_CTRL_HIRQ_MASK (0x8000U) |
Definition at line 15280 of file MIMXRT1052.h.
#define ENC_CTRL_HIRQ_SHIFT (15U) |
Definition at line 15281 of file MIMXRT1052.h.
#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
Definition at line 15265 of file MIMXRT1052.h.
#define ENC_CTRL_HNE_MASK (0x1000U) |
Definition at line 15259 of file MIMXRT1052.h.
#define ENC_CTRL_HNE_SHIFT (12U) |
Definition at line 15260 of file MIMXRT1052.h.
#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 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] = 0, PHASEB = 1, then count down If CTRL[REV] = 1, PHASEB = 0, then count down If CTRL[REV] = 1, PHASEB = 1, then count up
Definition at line 15244 of file MIMXRT1052.h.
#define ENC_CTRL_PH1_MASK (0x200U) |
Definition at line 15235 of file MIMXRT1052.h.
#define ENC_CTRL_PH1_SHIFT (9U) |
Definition at line 15236 of file MIMXRT1052.h.
#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
Definition at line 15251 of file MIMXRT1052.h.
#define ENC_CTRL_REV_MASK (0x400U) |
Definition at line 15245 of file MIMXRT1052.h.
#define ENC_CTRL_REV_SHIFT (10U) |
Definition at line 15246 of file MIMXRT1052.h.
#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
Definition at line 15258 of file MIMXRT1052.h.
#define ENC_CTRL_SWIP_MASK (0x800U) |
Definition at line 15252 of file MIMXRT1052.h.
#define ENC_CTRL_SWIP_SHIFT (11U) |
Definition at line 15253 of file MIMXRT1052.h.
#define ENC_CTRL_WDE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_WDE_SHIFT)) & ENC_CTRL_WDE_MASK) |
WDE - Watchdog Enable 0b0..Watchdog timer is disabled 0b1..Watchdog timer is enabled
Definition at line 15192 of file MIMXRT1052.h.
#define ENC_CTRL_WDE_MASK (0x4U) |
Definition at line 15186 of file MIMXRT1052.h.
#define ENC_CTRL_WDE_SHIFT (2U) |
Definition at line 15187 of file MIMXRT1052.h.
#define ENC_CTRL_XIE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIE_SHIFT)) & ENC_CTRL_XIE_MASK) |
XIE - INDEX Pulse Interrupt Enable 0b0..INDEX pulse interrupt is disabled 0b1..INDEX pulse interrupt is enabled
Definition at line 15227 of file MIMXRT1052.h.
#define ENC_CTRL_XIE_MASK (0x80U) |
Definition at line 15221 of file MIMXRT1052.h.
#define ENC_CTRL_XIE_SHIFT (7U) |
Definition at line 15222 of file MIMXRT1052.h.
#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..No action 0b1..INDEX pulse initializes the position counter
Definition at line 15220 of file MIMXRT1052.h.
#define ENC_CTRL_XIP_MASK (0x40U) |
Definition at line 15214 of file MIMXRT1052.h.
#define ENC_CTRL_XIP_SHIFT (6U) |
Definition at line 15215 of file MIMXRT1052.h.
#define ENC_CTRL_XIRQ | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_CTRL_XIRQ_SHIFT)) & ENC_CTRL_XIRQ_MASK) |
XIRQ - INDEX Pulse Interrupt Request 0b0..No interrupt has occurred 0b1..INDEX pulse interrupt has occurred
Definition at line 15234 of file MIMXRT1052.h.
#define ENC_CTRL_XIRQ_MASK (0x100U) |
Definition at line 15228 of file MIMXRT1052.h.
#define ENC_CTRL_XIRQ_SHIFT (8U) |
Definition at line 15229 of file MIMXRT1052.h.
#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 transition edge of INDEX pulse 0b1..Use negative transition edge of INDEX pulse
Definition at line 15213 of file MIMXRT1052.h.
#define ENC_CTRL_XNE_MASK (0x20U) |
Definition at line 15207 of file MIMXRT1052.h.
#define ENC_CTRL_XNE_SHIFT (5U) |
Definition at line 15208 of file MIMXRT1052.h.
#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
Definition at line 15300 of file MIMXRT1052.h.
#define ENC_FILT_FILT_CNT_MASK (0x700U) |
Definition at line 15296 of file MIMXRT1052.h.
#define ENC_FILT_FILT_CNT_SHIFT (8U) |
Definition at line 15297 of file MIMXRT1052.h.
#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
Definition at line 15295 of file MIMXRT1052.h.
#define ENC_FILT_FILT_PER_MASK (0xFFU) |
Definition at line 15291 of file MIMXRT1052.h.
#define ENC_FILT_FILT_PER_SHIFT (0U) |
Definition at line 15292 of file MIMXRT1052.h.
#define ENC_IMR_FHOM | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FHOM_SHIFT)) & ENC_IMR_FHOM_MASK) |
Definition at line 15396 of file MIMXRT1052.h.
#define ENC_IMR_FHOM_MASK (0x10U) |
Definition at line 15394 of file MIMXRT1052.h.
#define ENC_IMR_FHOM_SHIFT (4U) |
Definition at line 15395 of file MIMXRT1052.h.
#define ENC_IMR_FIND | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FIND_SHIFT)) & ENC_IMR_FIND_MASK) |
Definition at line 15399 of file MIMXRT1052.h.
#define ENC_IMR_FIND_MASK (0x20U) |
Definition at line 15397 of file MIMXRT1052.h.
#define ENC_IMR_FIND_SHIFT (5U) |
Definition at line 15398 of file MIMXRT1052.h.
#define ENC_IMR_FPHA | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHA_SHIFT)) & ENC_IMR_FPHA_MASK) |
Definition at line 15405 of file MIMXRT1052.h.
#define ENC_IMR_FPHA_MASK (0x80U) |
Definition at line 15403 of file MIMXRT1052.h.
#define ENC_IMR_FPHA_SHIFT (7U) |
Definition at line 15404 of file MIMXRT1052.h.
#define ENC_IMR_FPHB | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_FPHB_SHIFT)) & ENC_IMR_FPHB_MASK) |
Definition at line 15402 of file MIMXRT1052.h.
#define ENC_IMR_FPHB_MASK (0x40U) |
Definition at line 15400 of file MIMXRT1052.h.
#define ENC_IMR_FPHB_SHIFT (6U) |
Definition at line 15401 of file MIMXRT1052.h.
#define ENC_IMR_HOME | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_HOME_SHIFT)) & ENC_IMR_HOME_MASK) |
Definition at line 15384 of file MIMXRT1052.h.
#define ENC_IMR_HOME_MASK (0x1U) |
Definition at line 15382 of file MIMXRT1052.h.
#define ENC_IMR_HOME_SHIFT (0U) |
Definition at line 15383 of file MIMXRT1052.h.
#define ENC_IMR_INDEX | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_INDEX_SHIFT)) & ENC_IMR_INDEX_MASK) |
Definition at line 15387 of file MIMXRT1052.h.
#define ENC_IMR_INDEX_MASK (0x2U) |
Definition at line 15385 of file MIMXRT1052.h.
#define ENC_IMR_INDEX_SHIFT (1U) |
Definition at line 15386 of file MIMXRT1052.h.
#define ENC_IMR_PHA | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHA_SHIFT)) & ENC_IMR_PHA_MASK) |
Definition at line 15393 of file MIMXRT1052.h.
#define ENC_IMR_PHA_MASK (0x8U) |
Definition at line 15391 of file MIMXRT1052.h.
#define ENC_IMR_PHA_SHIFT (3U) |
Definition at line 15392 of file MIMXRT1052.h.
#define ENC_IMR_PHB | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_IMR_PHB_SHIFT)) & ENC_IMR_PHB_MASK) |
Definition at line 15390 of file MIMXRT1052.h.
#define ENC_IMR_PHB_MASK (0x4U) |
Definition at line 15388 of file MIMXRT1052.h.
#define ENC_IMR_PHB_SHIFT (2U) |
Definition at line 15389 of file MIMXRT1052.h.
#define ENC_LCOMP_COMP | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_LCOMP_COMP_SHIFT)) & ENC_LCOMP_COMP_MASK) |
Definition at line 15552 of file MIMXRT1052.h.
#define ENC_LCOMP_COMP_MASK (0xFFFFU) |
Definition at line 15550 of file MIMXRT1052.h.
#define ENC_LCOMP_COMP_SHIFT (0U) |
Definition at line 15551 of file MIMXRT1052.h.
#define ENC_LINIT_INIT | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_LINIT_INIT_SHIFT)) & ENC_LINIT_INIT_MASK) |
Definition at line 15377 of file MIMXRT1052.h.
#define ENC_LINIT_INIT_MASK (0xFFFFU) |
Definition at line 15375 of file MIMXRT1052.h.
#define ENC_LINIT_INIT_SHIFT (0U) |
Definition at line 15376 of file MIMXRT1052.h.
#define ENC_LMOD_MOD | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_LMOD_MOD_SHIFT)) & ENC_LMOD_MOD_MASK) |
Definition at line 15538 of file MIMXRT1052.h.
#define ENC_LMOD_MOD_MASK (0xFFFFU) |
Definition at line 15536 of file MIMXRT1052.h.
#define ENC_LMOD_MOD_SHIFT (0U) |
Definition at line 15537 of file MIMXRT1052.h.
#define ENC_LPOS_POS | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_LPOS_POS_SHIFT)) & ENC_LPOS_POS_MASK) |
Definition at line 15349 of file MIMXRT1052.h.
#define ENC_LPOS_POS_MASK (0xFFFFU) |
Definition at line 15347 of file MIMXRT1052.h.
#define ENC_LPOS_POS_SHIFT (0U) |
Definition at line 15348 of file MIMXRT1052.h.
#define ENC_LPOSH_POSH | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_LPOSH_POSH_SHIFT)) & ENC_LPOSH_POSH_MASK) |
Definition at line 15363 of file MIMXRT1052.h.
#define ENC_LPOSH_POSH_MASK (0xFFFFU) |
Definition at line 15361 of file MIMXRT1052.h.
#define ENC_LPOSH_POSH_SHIFT (0U) |
Definition at line 15362 of file MIMXRT1052.h.
#define ENC_POSD_POSD | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_POSD_POSD_SHIFT)) & ENC_POSD_POSD_MASK) |
Definition at line 15314 of file MIMXRT1052.h.
#define ENC_POSD_POSD_MASK (0xFFFFU) |
Definition at line 15312 of file MIMXRT1052.h.
#define ENC_POSD_POSD_SHIFT (0U) |
Definition at line 15313 of file MIMXRT1052.h.
#define ENC_POSDH_POSDH | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_POSDH_POSDH_SHIFT)) & ENC_POSDH_POSDH_MASK) |
Definition at line 15321 of file MIMXRT1052.h.
#define ENC_POSDH_POSDH_MASK (0xFFFFU) |
Definition at line 15319 of file MIMXRT1052.h.
#define ENC_POSDH_POSDH_SHIFT (0U) |
Definition at line 15320 of file MIMXRT1052.h.
#define ENC_REV_REV | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_REV_REV_SHIFT)) & ENC_REV_REV_MASK) |
Definition at line 15328 of file MIMXRT1052.h.
#define ENC_REV_REV_MASK (0xFFFFU) |
Definition at line 15326 of file MIMXRT1052.h.
#define ENC_REV_REV_SHIFT (0U) |
Definition at line 15327 of file MIMXRT1052.h.
#define ENC_REVH_REVH | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_REVH_REVH_SHIFT)) & ENC_REVH_REVH_MASK) |
Definition at line 15335 of file MIMXRT1052.h.
#define ENC_REVH_REVH_MASK (0xFFFFU) |
Definition at line 15333 of file MIMXRT1052.h.
#define ENC_REVH_REVH_SHIFT (0U) |
Definition at line 15334 of file MIMXRT1052.h.
#define ENC_TST_QDN | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_TST_QDN_SHIFT)) & ENC_TST_QDN_MASK) |
QDN - Quadrature Decoder Negative Signal 0b0..Leaves quadrature decoder signal in a positive direction 0b1..Generates a negative quadrature decoder signal
Definition at line 15422 of file MIMXRT1052.h.
#define ENC_TST_QDN_MASK (0x2000U) |
Definition at line 15416 of file MIMXRT1052.h.
#define ENC_TST_QDN_SHIFT (13U) |
Definition at line 15417 of file MIMXRT1052.h.
#define ENC_TST_TCE | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_TST_TCE_SHIFT)) & ENC_TST_TCE_MASK) |
TCE - Test Counter Enable 0b0..Test count is not enabled 0b1..Test count is enabled
Definition at line 15429 of file MIMXRT1052.h.
#define ENC_TST_TCE_MASK (0x4000U) |
Definition at line 15423 of file MIMXRT1052.h.
#define ENC_TST_TCE_SHIFT (14U) |
Definition at line 15424 of file MIMXRT1052.h.
#define ENC_TST_TEN | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEN_SHIFT)) & ENC_TST_TEN_MASK) |
TEN - Test Mode Enable 0b0..Test module is not enabled 0b1..Test module is enabled
Definition at line 15436 of file MIMXRT1052.h.
#define ENC_TST_TEN_MASK (0x8000U) |
Definition at line 15430 of file MIMXRT1052.h.
#define ENC_TST_TEN_SHIFT (15U) |
Definition at line 15431 of file MIMXRT1052.h.
#define ENC_TST_TEST_COUNT | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_COUNT_SHIFT)) & ENC_TST_TEST_COUNT_MASK) |
Definition at line 15412 of file MIMXRT1052.h.
#define ENC_TST_TEST_COUNT_MASK (0xFFU) |
Definition at line 15410 of file MIMXRT1052.h.
#define ENC_TST_TEST_COUNT_SHIFT (0U) |
Definition at line 15411 of file MIMXRT1052.h.
#define ENC_TST_TEST_PERIOD | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_TST_TEST_PERIOD_SHIFT)) & ENC_TST_TEST_PERIOD_MASK) |
Definition at line 15415 of file MIMXRT1052.h.
#define ENC_TST_TEST_PERIOD_MASK (0x1F00U) |
Definition at line 15413 of file MIMXRT1052.h.
#define ENC_TST_TEST_PERIOD_SHIFT (8U) |
Definition at line 15414 of file MIMXRT1052.h.
#define ENC_UCOMP_COMP | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_UCOMP_COMP_SHIFT)) & ENC_UCOMP_COMP_MASK) |
Definition at line 15545 of file MIMXRT1052.h.
#define ENC_UCOMP_COMP_MASK (0xFFFFU) |
Definition at line 15543 of file MIMXRT1052.h.
#define ENC_UCOMP_COMP_SHIFT (0U) |
Definition at line 15544 of file MIMXRT1052.h.
#define ENC_UINIT_INIT | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_UINIT_INIT_SHIFT)) & ENC_UINIT_INIT_MASK) |
Definition at line 15370 of file MIMXRT1052.h.
#define ENC_UINIT_INIT_MASK (0xFFFFU) |
Definition at line 15368 of file MIMXRT1052.h.
#define ENC_UINIT_INIT_SHIFT (0U) |
Definition at line 15369 of file MIMXRT1052.h.
#define ENC_UMOD_MOD | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_UMOD_MOD_SHIFT)) & ENC_UMOD_MOD_MASK) |
Definition at line 15531 of file MIMXRT1052.h.
#define ENC_UMOD_MOD_MASK (0xFFFFU) |
Definition at line 15529 of file MIMXRT1052.h.
#define ENC_UMOD_MOD_SHIFT (0U) |
Definition at line 15530 of file MIMXRT1052.h.
#define ENC_UPOS_POS | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_UPOS_POS_SHIFT)) & ENC_UPOS_POS_MASK) |
Definition at line 15342 of file MIMXRT1052.h.
#define ENC_UPOS_POS_MASK (0xFFFFU) |
Definition at line 15340 of file MIMXRT1052.h.
#define ENC_UPOS_POS_SHIFT (0U) |
Definition at line 15341 of file MIMXRT1052.h.
#define ENC_UPOSH_POSH | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_UPOSH_POSH_SHIFT)) & ENC_UPOSH_POSH_MASK) |
Definition at line 15356 of file MIMXRT1052.h.
#define ENC_UPOSH_POSH_MASK (0xFFFFU) |
Definition at line 15354 of file MIMXRT1052.h.
#define ENC_UPOSH_POSH_SHIFT (0U) |
Definition at line 15355 of file MIMXRT1052.h.
#define ENC_WTR_WDOG | ( | x | ) | (((uint16_t)(((uint16_t)(x)) << ENC_WTR_WDOG_SHIFT)) & ENC_WTR_WDOG_MASK) |
Definition at line 15307 of file MIMXRT1052.h.
#define ENC_WTR_WDOG_MASK (0xFFFFU) |
Definition at line 15305 of file MIMXRT1052.h.
#define ENC_WTR_WDOG_SHIFT (0U) |
Definition at line 15306 of file MIMXRT1052.h.