|
|
|
|
|
|
|
|
volatile uint16_t LCOMP; /**< Lower Position Compare Register, offset: 0x26 */ |
|
|
volatile uint16_t LCOMP; /**< Lower Position Compare Register, offset: 0x26 */ |
|
|
} IMXRT_ENC_t; |
|
|
} IMXRT_ENC_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define IMXRT_ENC1 (*(IMXRT_ENC_t *)0x403C8000) |
|
|
#define IMXRT_ENC1 (*(IMXRT_ENC_t *)0x403C8000) |
|
|
|
|
|
#define ENC1_CTRL (IMXRT_ENC1.CTRL) |
|
|
|
|
|
#define ENC1_FILT (IMXRT_ENC1.FILT) |
|
|
|
|
|
#define ENC1_WTR (IMXRT_ENC1.WTR) |
|
|
|
|
|
#define ENC1_POSD (IMXRT_ENC1.POSD) |
|
|
|
|
|
#define ENC1_POSDH (IMXRT_ENC1.POSDH) |
|
|
|
|
|
#define ENC1_REV (IMXRT_ENC1.REV) |
|
|
|
|
|
#define ENC1_REVH (IMXRT_ENC1.REVH) |
|
|
|
|
|
#define ENC1_UPOS (IMXRT_ENC1.UPOS) |
|
|
|
|
|
#define ENC1_LPOS (IMXRT_ENC1.LPOS) |
|
|
|
|
|
#define ENC1_UPOSH (IMXRT_ENC1.UPOSH) |
|
|
|
|
|
#define ENC1_LPOSH (IMXRT_ENC1.LPOSH) |
|
|
|
|
|
#define ENC1_UINIT (IMXRT_ENC1.UINIT) |
|
|
|
|
|
#define ENC1_LINIT (IMXRT_ENC1.LINIT) |
|
|
|
|
|
#define ENC1_IMR (IMXRT_ENC1.IMR) |
|
|
|
|
|
#define ENC1_TST (IMXRT_ENC1.TST) |
|
|
|
|
|
#define ENC1_CTRL2 (IMXRT_ENC1.CTRL2) |
|
|
|
|
|
#define ENC1_UMOD (IMXRT_ENC1.UMOD) |
|
|
|
|
|
#define ENC1_LMOD (IMXRT_ENC1.LMOD) |
|
|
|
|
|
#define ENC1_UCOMP (IMXRT_ENC1.UCOMP) |
|
|
|
|
|
#define ENC1_LCOMP (IMXRT_ENC1.LCOMP) |
|
|
#define IMXRT_ENC2 (*(IMXRT_ENC_t *)0x403CC000) |
|
|
#define IMXRT_ENC2 (*(IMXRT_ENC_t *)0x403CC000) |
|
|
|
|
|
#define ENC2_CTRL (IMXRT_ENC2.CTRL) |
|
|
|
|
|
#define ENC2_FILT (IMXRT_ENC2.FILT) |
|
|
|
|
|
#define ENC2_WTR (IMXRT_ENC2.WTR) |
|
|
|
|
|
#define ENC2_POSD (IMXRT_ENC2.POSD) |
|
|
|
|
|
#define ENC2_POSDH (IMXRT_ENC2.POSDH) |
|
|
|
|
|
#define ENC2_REV (IMXRT_ENC2.REV) |
|
|
|
|
|
#define ENC2_REVH (IMXRT_ENC2.REVH) |
|
|
|
|
|
#define ENC2_UPOS (IMXRT_ENC2.UPOS) |
|
|
|
|
|
#define ENC2_LPOS (IMXRT_ENC2.LPOS) |
|
|
|
|
|
#define ENC2_UPOSH (IMXRT_ENC2.UPOSH) |
|
|
|
|
|
#define ENC2_LPOSH (IMXRT_ENC2.LPOSH) |
|
|
|
|
|
#define ENC2_UINIT (IMXRT_ENC2.UINIT) |
|
|
|
|
|
#define ENC2_LINIT (IMXRT_ENC2.LINIT) |
|
|
|
|
|
#define ENC2_IMR (IMXRT_ENC2.IMR) |
|
|
|
|
|
#define ENC2_TST (IMXRT_ENC2.TST) |
|
|
|
|
|
#define ENC2_CTRL2 (IMXRT_ENC2.CTRL2) |
|
|
|
|
|
#define ENC2_UMOD (IMXRT_ENC2.UMOD) |
|
|
|
|
|
#define ENC2_LMOD (IMXRT_ENC2.LMOD) |
|
|
|
|
|
#define ENC2_UCOMP (IMXRT_ENC2.UCOMP) |
|
|
|
|
|
#define ENC2_LCOMP (IMXRT_ENC2.LCOMP) |
|
|
#define IMXRT_ENC3 (*(IMXRT_ENC_t *)0x403D0000) |
|
|
#define IMXRT_ENC3 (*(IMXRT_ENC_t *)0x403D0000) |
|
|
|
|
|
#define ENC3_CTRL (IMXRT_ENC3.CTRL) |
|
|
|
|
|
#define ENC3_FILT (IMXRT_ENC3.FILT) |
|
|
|
|
|
#define ENC3_WTR (IMXRT_ENC3.WTR) |
|
|
|
|
|
#define ENC3_POSD (IMXRT_ENC3.POSD) |
|
|
|
|
|
#define ENC3_POSDH (IMXRT_ENC3.POSDH) |
|
|
|
|
|
#define ENC3_REV (IMXRT_ENC3.REV) |
|
|
|
|
|
#define ENC3_REVH (IMXRT_ENC3.REVH) |
|
|
|
|
|
#define ENC3_UPOS (IMXRT_ENC3.UPOS) |
|
|
|
|
|
#define ENC3_LPOS (IMXRT_ENC3.LPOS) |
|
|
|
|
|
#define ENC3_UPOSH (IMXRT_ENC3.UPOSH) |
|
|
|
|
|
#define ENC3_LPOSH (IMXRT_ENC3.LPOSH) |
|
|
|
|
|
#define ENC3_UINIT (IMXRT_ENC3.UINIT) |
|
|
|
|
|
#define ENC3_LINIT (IMXRT_ENC3.LINIT) |
|
|
|
|
|
#define ENC3_IMR (IMXRT_ENC3.IMR) |
|
|
|
|
|
#define ENC3_TST (IMXRT_ENC3.TST) |
|
|
|
|
|
#define ENC3_CTRL2 (IMXRT_ENC3.CTRL2) |
|
|
|
|
|
#define ENC3_UMOD (IMXRT_ENC3.UMOD) |
|
|
|
|
|
#define ENC3_LMOD (IMXRT_ENC3.LMOD) |
|
|
|
|
|
#define ENC3_UCOMP (IMXRT_ENC3.UCOMP) |
|
|
|
|
|
#define ENC3_LCOMP (IMXRT_ENC3.LCOMP) |
|
|
#define IMXRT_ENC4 (*(IMXRT_ENC_t *)0x403D4000) |
|
|
#define IMXRT_ENC4 (*(IMXRT_ENC_t *)0x403D4000) |
|
|
|
|
|
#define ENC4_CTRL (IMXRT_ENC4.CTRL) |
|
|
|
|
|
#define ENC4_FILT (IMXRT_ENC4.FILT) |
|
|
|
|
|
#define ENC4_WTR (IMXRT_ENC4.WTR) |
|
|
|
|
|
#define ENC4_POSD (IMXRT_ENC4.POSD) |
|
|
|
|
|
#define ENC4_POSDH (IMXRT_ENC4.POSDH) |
|
|
|
|
|
#define ENC4_REV (IMXRT_ENC4.REV) |
|
|
|
|
|
#define ENC4_REVH (IMXRT_ENC4.REVH) |
|
|
|
|
|
#define ENC4_UPOS (IMXRT_ENC4.UPOS) |
|
|
|
|
|
#define ENC4_LPOS (IMXRT_ENC4.LPOS) |
|
|
|
|
|
#define ENC4_UPOSH (IMXRT_ENC4.UPOSH) |
|
|
|
|
|
#define ENC4_LPOSH (IMXRT_ENC4.LPOSH) |
|
|
|
|
|
#define ENC4_UINIT (IMXRT_ENC4.UINIT) |
|
|
|
|
|
#define ENC4_LINIT (IMXRT_ENC4.LINIT) |
|
|
|
|
|
#define ENC4_IMR (IMXRT_ENC4.IMR) |
|
|
|
|
|
#define ENC4_TST (IMXRT_ENC4.TST) |
|
|
|
|
|
#define ENC4_CTRL2 (IMXRT_ENC4.CTRL2) |
|
|
|
|
|
#define ENC4_UMOD (IMXRT_ENC4.UMOD) |
|
|
|
|
|
#define ENC4_LMOD (IMXRT_ENC4.LMOD) |
|
|
|
|
|
#define ENC4_UCOMP (IMXRT_ENC4.UCOMP) |
|
|
|
|
|
#define ENC4_LCOMP (IMXRT_ENC4.LCOMP) |
|
|
|
|
|
|
|
|
// 24.5: page 1060 |
|
|
// 24.5: page 1060 |
|
|
#define IMXRT_ENET (*(IMXRT_REGISTER32_t *)0x402D8000) |
|
|
#define IMXRT_ENET (*(IMXRT_REGISTER32_t *)0x402D8000) |