uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
QEI Private Macros

Macros

#define QEI_CON_RESP   ((uint32_t)(1<<0))
 
#define QEI_CON_RESPI   ((uint32_t)(1<<1))
 
#define QEI_CON_RESV   ((uint32_t)(1<<2))
 
#define QEI_CON_RESI   ((uint32_t)(1<<3))
 
#define QEI_CON_BITMASK   ((uint32_t)(0x0F))
 
#define QEI_CONF_DIRINV   ((uint32_t)(1<<0))
 
#define QEI_CONF_SIGMODE   ((uint32_t)(1<<1))
 
#define QEI_CONF_CAPMODE   ((uint32_t)(1<<2))
 
#define QEI_CONF_INVINX   ((uint32_t)(1<<3))
 
#define QEI_CONF_BITMASK   ((uint32_t)(0x0F))
 
#define QEI_STAT_DIR   ((uint32_t)(1<<0))
 
#define QEI_STAT_BITMASK   ((uint32_t)(1<<0))
 
#define QEI_INTSTAT_INX_Int   ((uint32_t)(1<<0))
 
#define QEI_INTSTAT_TIM_Int   ((uint32_t)(1<<1))
 
#define QEI_INTSTAT_VELC_Int   ((uint32_t)(1<<2))
 
#define QEI_INTSTAT_DIR_Int   ((uint32_t)(1<<3))
 
#define QEI_INTSTAT_ERR_Int   ((uint32_t)(1<<4))
 
#define QEI_INTSTAT_ENCLK_Int   ((uint32_t)(1<<5))
 
#define QEI_INTSTAT_POS0_Int   ((uint32_t)(1<<6))
 
#define QEI_INTSTAT_POS1_Int   ((uint32_t)(1<<7))
 
#define QEI_INTSTAT_POS2_Int   ((uint32_t)(1<<8))
 
#define QEI_INTSTAT_REV_Int   ((uint32_t)(1<<9))
 
#define QEI_INTSTAT_POS0REV_Int   ((uint32_t)(1<<10))
 
#define QEI_INTSTAT_POS1REV_Int   ((uint32_t)(1<<11))
 
#define QEI_INTSTAT_POS2REV_Int   ((uint32_t)(1<<12))
 
#define QEI_INTSTAT_BITMASK   ((uint32_t)(0x1FFF))
 
#define QEI_INTSET_INX_Int   ((uint32_t)(1<<0))
 
#define QEI_INTSET_TIM_Int   ((uint32_t)(1<<1))
 
#define QEI_INTSET_VELC_Int   ((uint32_t)(1<<2))
 
#define QEI_INTSET_DIR_Int   ((uint32_t)(1<<3))
 
#define QEI_INTSET_ERR_Int   ((uint32_t)(1<<4))
 
#define QEI_INTSET_ENCLK_Int   ((uint32_t)(1<<5))
 
#define QEI_INTSET_POS0_Int   ((uint32_t)(1<<6))
 
#define QEI_INTSET_POS1_Int   ((uint32_t)(1<<7))
 
#define QEI_INTSET_POS2_Int   ((uint32_t)(1<<8))
 
#define QEI_INTSET_REV_Int   ((uint32_t)(1<<9))
 
#define QEI_INTSET_POS0REV_Int   ((uint32_t)(1<<10))
 
#define QEI_INTSET_POS1REV_Int   ((uint32_t)(1<<11))
 
#define QEI_INTSET_POS2REV_Int   ((uint32_t)(1<<12))
 
#define QEI_INTSET_BITMASK   ((uint32_t)(0x1FFF))
 
#define QEI_INTCLR_INX_Int   ((uint32_t)(1<<0))
 
#define QEI_INTCLR_TIM_Int   ((uint32_t)(1<<1))
 
#define QEI_INTCLR_VELC_Int   ((uint32_t)(1<<2))
 
#define QEI_INTCLR_DIR_Int   ((uint32_t)(1<<3))
 
#define QEI_INTCLR_ERR_Int   ((uint32_t)(1<<4))
 
#define QEI_INTCLR_ENCLK_Int   ((uint32_t)(1<<5))
 
#define QEI_INTCLR_POS0_Int   ((uint32_t)(1<<6))
 
#define QEI_INTCLR_POS1_Int   ((uint32_t)(1<<7))
 
#define QEI_INTCLR_POS2_Int   ((uint32_t)(1<<8))
 
#define QEI_INTCLR_REV_Int   ((uint32_t)(1<<9))
 
#define QEI_INTCLR_POS0REV_Int   ((uint32_t)(1<<10))
 
#define QEI_INTCLR_POS1REV_Int   ((uint32_t)(1<<11))
 
#define QEI_INTCLR_POS2REV_Int   ((uint32_t)(1<<12))
 
#define QEI_INTCLR_BITMASK   ((uint32_t)(0x1FFF))
 
#define QEI_INTEN_INX_Int   ((uint32_t)(1<<0))
 
#define QEI_INTEN_TIM_Int   ((uint32_t)(1<<1))
 
#define QEI_INTEN_VELC_Int   ((uint32_t)(1<<2))
 
#define QEI_INTEN_DIR_Int   ((uint32_t)(1<<3))
 
#define QEI_INTEN_ERR_Int   ((uint32_t)(1<<4))
 
#define QEI_INTEN_ENCLK_Int   ((uint32_t)(1<<5))
 
#define QEI_INTEN_POS0_Int   ((uint32_t)(1<<6))
 
#define QEI_INTEN_POS1_Int   ((uint32_t)(1<<7))
 
#define QEI_INTEN_POS2_Int   ((uint32_t)(1<<8))
 
#define QEI_INTEN_REV_Int   ((uint32_t)(1<<9))
 
#define QEI_INTEN_POS0REV_Int   ((uint32_t)(1<<10))
 
#define QEI_INTEN_POS1REV_Int   ((uint32_t)(1<<11))
 
#define QEI_INTEN_POS2REV_Int   ((uint32_t)(1<<12))
 
#define QEI_INTEN_BITMASK   ((uint32_t)(0x1FFF))
 
#define QEI_IESET_INX_Int   ((uint32_t)(1<<0))
 
#define QEI_IESET_TIM_Int   ((uint32_t)(1<<1))
 
#define QEI_IESET_VELC_Int   ((uint32_t)(1<<2))
 
#define QEI_IESET_DIR_Int   ((uint32_t)(1<<3))
 
#define QEI_IESET_ERR_Int   ((uint32_t)(1<<4))
 
#define QEI_IESET_ENCLK_Int   ((uint32_t)(1<<5))
 
#define QEI_IESET_POS0_Int   ((uint32_t)(1<<6))
 
#define QEI_IESET_POS1_Int   ((uint32_t)(1<<7))
 
#define QEI_IESET_POS2_Int   ((uint32_t)(1<<8))
 
#define QEI_IESET_REV_Int   ((uint32_t)(1<<9))
 
#define QEI_IESET_POS0REV_Int   ((uint32_t)(1<<10))
 
#define QEI_IESET_POS1REV_Int   ((uint32_t)(1<<11))
 
#define QEI_IESET_POS2REV_Int   ((uint32_t)(1<<12))
 
#define QEI_IESET_BITMASK   ((uint32_t)(0x1FFF))
 
#define QEI_IECLR_INX_Int   ((uint32_t)(1<<0))
 
#define QEI_IECLR_TIM_Int   ((uint32_t)(1<<1))
 
#define QEI_IECLR_VELC_Int   ((uint32_t)(1<<2))
 
#define QEI_IECLR_DIR_Int   ((uint32_t)(1<<3))
 
#define QEI_IECLR_ERR_Int   ((uint32_t)(1<<4))
 
#define QEI_IECLR_ENCLK_Int   ((uint32_t)(1<<5))
 
#define QEI_IECLR_POS0_Int   ((uint32_t)(1<<6))
 
#define QEI_IECLR_POS1_Int   ((uint32_t)(1<<7))
 
#define QEI_IECLR_POS2_Int   ((uint32_t)(1<<8))
 
#define QEI_IECLR_REV_Int   ((uint32_t)(1<<9))
 
#define QEI_IECLR_POS0REV_Int   ((uint32_t)(1<<10))
 
#define QEI_IECLR_POS1REV_Int   ((uint32_t)(1<<11))
 
#define QEI_IECLR_POS2REV_Int   ((uint32_t)(1<<12))
 
#define QEI_IECLR_BITMASK   ((uint32_t)(0x1FFF))
 
#define PARAM_QEIx(n)   ((n==LPC_QEI))
 
#define PARAM_QEI_RESET(n)
 
#define PARAM_QEI_DIRINV(n)   ((n==QEI_DIRINV_NONE) || (n==QEI_DIRINV_CMPL))
 
#define PARAM_QEI_SIGNALMODE(n)   ((n==QEI_SIGNALMODE_QUAD) || (n==QEI_SIGNALMODE_CLKDIR))
 
#define PARAM_QEI_CAPMODE(n)   ((n==QEI_CAPMODE_2X) || (n==QEI_CAPMODE_4X))
 
#define PARAM_QEI_INVINX(n)   ((n==QEI_INVINX_NONE) || (n==QEI_INVINX_EN))
 
#define PARAM_QEI_TIMERRELOAD(n)   ((n==QEI_TIMERRELOAD_TICKVAL) || (n==QEI_TIMERRELOAD_USVAL))
 
#define PARAM_QEI_STATUS(n)   ((n==QEI_STATUS_DIR))
 
#define PARAM_QEI_COMPPOS_CH(n)   ((n==QEI_COMPPOS_CH_0) || (n==QEI_COMPPOS_CH_1) || (n==QEI_COMPPOS_CH_2))
 
#define PARAM_QEI_INTFLAG(n)
 

Detailed Description

Macro Definition Documentation

#define PARAM_QEI_CAPMODE (   n)    ((n==QEI_CAPMODE_2X) || (n==QEI_CAPMODE_4X))

Definition at line 319 of file lpc17xx_qei.h.

#define PARAM_QEI_COMPPOS_CH (   n)    ((n==QEI_COMPPOS_CH_0) || (n==QEI_COMPPOS_CH_1) || (n==QEI_COMPPOS_CH_2))

Definition at line 331 of file lpc17xx_qei.h.

#define PARAM_QEI_DIRINV (   n)    ((n==QEI_DIRINV_NONE) || (n==QEI_DIRINV_CMPL))

Definition at line 313 of file lpc17xx_qei.h.

#define PARAM_QEI_INTFLAG (   n)
#define PARAM_QEI_INVINX (   n)    ((n==QEI_INVINX_NONE) || (n==QEI_INVINX_EN))

Definition at line 322 of file lpc17xx_qei.h.

#define PARAM_QEI_RESET (   n)
Value:
((n==QEI_CON_RESP) \
|| (n==QEI_RESET_VEL) \
|| (n==QEI_RESET_IDX))

Definition at line 307 of file lpc17xx_qei.h.

#define PARAM_QEI_SIGNALMODE (   n)    ((n==QEI_SIGNALMODE_QUAD) || (n==QEI_SIGNALMODE_CLKDIR))

Definition at line 316 of file lpc17xx_qei.h.

#define PARAM_QEI_STATUS (   n)    ((n==QEI_STATUS_DIR))

Definition at line 328 of file lpc17xx_qei.h.

#define PARAM_QEI_TIMERRELOAD (   n)    ((n==QEI_TIMERRELOAD_TICKVAL) || (n==QEI_TIMERRELOAD_USVAL))

Definition at line 325 of file lpc17xx_qei.h.

#define PARAM_QEIx (   n)    ((n==LPC_QEI))

Definition at line 304 of file lpc17xx_qei.h.

#define QEI_CON_BITMASK   ((uint32_t)(0x0F))

QEI Control register bit-mask

Definition at line 121 of file lpc17xx_qei.h.

#define QEI_CON_RESI   ((uint32_t)(1<<3))

Reset Index Counter

Definition at line 120 of file lpc17xx_qei.h.

#define QEI_CON_RESP   ((uint32_t)(1<<0))

Macro defines for QEI Control registerReset position counter

Definition at line 117 of file lpc17xx_qei.h.

#define QEI_CON_RESPI   ((uint32_t)(1<<1))

Reset Posistion Counter on Index

Definition at line 118 of file lpc17xx_qei.h.

#define QEI_CON_RESV   ((uint32_t)(1<<2))

Reset Velocity

Definition at line 119 of file lpc17xx_qei.h.

#define QEI_CONF_BITMASK   ((uint32_t)(0x0F))

QEI Configuration register bit-mask

Definition at line 130 of file lpc17xx_qei.h.

#define QEI_CONF_CAPMODE   ((uint32_t)(1<<2))

Capture mode

Definition at line 128 of file lpc17xx_qei.h.

#define QEI_CONF_DIRINV   ((uint32_t)(1<<0))

Macro defines for QEI Configuration registerDirection Invert

Definition at line 126 of file lpc17xx_qei.h.

#define QEI_CONF_INVINX   ((uint32_t)(1<<3))

Invert index

Definition at line 129 of file lpc17xx_qei.h.

#define QEI_CONF_SIGMODE   ((uint32_t)(1<<1))

Signal mode

Definition at line 127 of file lpc17xx_qei.h.

#define QEI_IECLR_BITMASK   ((uint32_t)(0x1FFF))

QEI Interrupt Enable Clear register bit-mask

Definition at line 299 of file lpc17xx_qei.h.

#define QEI_IECLR_DIR_Int   ((uint32_t)(1<<3))

Clear Enabled Interrupt Bit Indicates that a change of direction was detected

Definition at line 281 of file lpc17xx_qei.h.

#define QEI_IECLR_ENCLK_Int   ((uint32_t)(1<<5))

Clear Enabled Interrupt Bit Indicates that and encoder clock pulse was detected

Definition at line 283 of file lpc17xx_qei.h.

#define QEI_IECLR_ERR_Int   ((uint32_t)(1<<4))

Clear Enabled Interrupt Bit Indicates that an encoder phase error was detected

Definition at line 282 of file lpc17xx_qei.h.

#define QEI_IECLR_INX_Int   ((uint32_t)(1<<0))

Macro defines for QEI Interrupt Enable Clear registerClear Enabled Interrupt Bit Indicates that an index pulse was detected

Definition at line 278 of file lpc17xx_qei.h.

#define QEI_IECLR_POS0_Int   ((uint32_t)(1<<6))

Clear Enabled Interrupt Bit Indicates that the position 0 compare value is equal to the current position

Definition at line 284 of file lpc17xx_qei.h.

#define QEI_IECLR_POS0REV_Int   ((uint32_t)(1<<10))

Clear Enabled Interrupt Bit that combined position 0 and revolution count interrupt

Definition at line 296 of file lpc17xx_qei.h.

#define QEI_IECLR_POS1_Int   ((uint32_t)(1<<7))

Clear Enabled Interrupt Bit Indicates that the position 1compare value is equal to the current position

Definition at line 287 of file lpc17xx_qei.h.

#define QEI_IECLR_POS1REV_Int   ((uint32_t)(1<<11))

Clear Enabled Interrupt Bit that Combined position 1 and revolution count interrupt

Definition at line 297 of file lpc17xx_qei.h.

#define QEI_IECLR_POS2_Int   ((uint32_t)(1<<8))

Clear Enabled Interrupt Bit Indicates that the position 2 compare value is equal to the current position

Definition at line 290 of file lpc17xx_qei.h.

#define QEI_IECLR_POS2REV_Int   ((uint32_t)(1<<12))

Clear Enabled Interrupt Bit that Combined position 2 and revolution count interrupt

Definition at line 298 of file lpc17xx_qei.h.

#define QEI_IECLR_REV_Int   ((uint32_t)(1<<9))

Clear Enabled Interrupt Bit Indicates that the index compare value is equal to the current index count

Definition at line 293 of file lpc17xx_qei.h.

#define QEI_IECLR_TIM_Int   ((uint32_t)(1<<1))

Clear Enabled Interrupt Bit Indicates that a velocity timer overflow occurred

Definition at line 279 of file lpc17xx_qei.h.

#define QEI_IECLR_VELC_Int   ((uint32_t)(1<<2))

Clear Enabled Interrupt Bit Indicates that capture velocity is less than compare velocity

Definition at line 280 of file lpc17xx_qei.h.

#define QEI_IESET_BITMASK   ((uint32_t)(0x1FFF))

QEI Interrupt Enable Set register bit-mask

Definition at line 273 of file lpc17xx_qei.h.

#define QEI_IESET_DIR_Int   ((uint32_t)(1<<3))

Set Enable Interrupt Bit Indicates that a change of direction was detected

Definition at line 255 of file lpc17xx_qei.h.

#define QEI_IESET_ENCLK_Int   ((uint32_t)(1<<5))

Set Enable Interrupt Bit Indicates that and encoder clock pulse was detected

Definition at line 257 of file lpc17xx_qei.h.

#define QEI_IESET_ERR_Int   ((uint32_t)(1<<4))

Set Enable Interrupt Bit Indicates that an encoder phase error was detected

Definition at line 256 of file lpc17xx_qei.h.

#define QEI_IESET_INX_Int   ((uint32_t)(1<<0))

Macro defines for QEI Interrupt Enable Set registerSet Enable Interrupt Bit Indicates that an index pulse was detected

Definition at line 252 of file lpc17xx_qei.h.

#define QEI_IESET_POS0_Int   ((uint32_t)(1<<6))

Set Enable Interrupt Bit Indicates that the position 0 compare value is equal to the current position

Definition at line 258 of file lpc17xx_qei.h.

#define QEI_IESET_POS0REV_Int   ((uint32_t)(1<<10))

Set Enable Interrupt Bit that combined position 0 and revolution count interrupt

Definition at line 270 of file lpc17xx_qei.h.

#define QEI_IESET_POS1_Int   ((uint32_t)(1<<7))

Set Enable Interrupt Bit Indicates that the position 1compare value is equal to the current position

Definition at line 261 of file lpc17xx_qei.h.

#define QEI_IESET_POS1REV_Int   ((uint32_t)(1<<11))

Set Enable Interrupt Bit that Combined position 1 and revolution count interrupt

Definition at line 271 of file lpc17xx_qei.h.

#define QEI_IESET_POS2_Int   ((uint32_t)(1<<8))

Set Enable Interrupt Bit Indicates that the position 2 compare value is equal to the current position

Definition at line 264 of file lpc17xx_qei.h.

#define QEI_IESET_POS2REV_Int   ((uint32_t)(1<<12))

Set Enable Interrupt Bit that Combined position 2 and revolution count interrupt

Definition at line 272 of file lpc17xx_qei.h.

#define QEI_IESET_REV_Int   ((uint32_t)(1<<9))

Set Enable Interrupt Bit Indicates that the index compare value is equal to the current index count

Definition at line 267 of file lpc17xx_qei.h.

#define QEI_IESET_TIM_Int   ((uint32_t)(1<<1))

Set Enable Interrupt Bit Indicates that a velocity timer overflow occurred

Definition at line 253 of file lpc17xx_qei.h.

#define QEI_IESET_VELC_Int   ((uint32_t)(1<<2))

Set Enable Interrupt Bit Indicates that capture velocity is less than compare velocity

Definition at line 254 of file lpc17xx_qei.h.

#define QEI_INTCLR_BITMASK   ((uint32_t)(0x1FFF))

QEI Interrupt Clear register bit-mask

Definition at line 221 of file lpc17xx_qei.h.

#define QEI_INTCLR_DIR_Int   ((uint32_t)(1<<3))

Clear Bit Indicates that a change of direction was detected

Definition at line 203 of file lpc17xx_qei.h.

#define QEI_INTCLR_ENCLK_Int   ((uint32_t)(1<<5))

Clear Bit Indicates that and encoder clock pulse was detected

Definition at line 205 of file lpc17xx_qei.h.

#define QEI_INTCLR_ERR_Int   ((uint32_t)(1<<4))

Clear Bit Indicates that an encoder phase error was detected

Definition at line 204 of file lpc17xx_qei.h.

#define QEI_INTCLR_INX_Int   ((uint32_t)(1<<0))

Macro defines for QEI Interrupt Clear registerClear Bit Indicates that an index pulse was detected

Definition at line 200 of file lpc17xx_qei.h.

#define QEI_INTCLR_POS0_Int   ((uint32_t)(1<<6))

Clear Bit Indicates that the position 0 compare value is equal to the current position

Definition at line 206 of file lpc17xx_qei.h.

#define QEI_INTCLR_POS0REV_Int   ((uint32_t)(1<<10))

Clear Bit that combined position 0 and revolution count interrupt

Definition at line 218 of file lpc17xx_qei.h.

#define QEI_INTCLR_POS1_Int   ((uint32_t)(1<<7))

Clear Bit Indicates that the position 1compare value is equal to the current position

Definition at line 209 of file lpc17xx_qei.h.

#define QEI_INTCLR_POS1REV_Int   ((uint32_t)(1<<11))

Clear Bit that Combined position 1 and revolution count interrupt

Definition at line 219 of file lpc17xx_qei.h.

#define QEI_INTCLR_POS2_Int   ((uint32_t)(1<<8))

Clear Bit Indicates that the position 2 compare value is equal to the current position

Definition at line 212 of file lpc17xx_qei.h.

#define QEI_INTCLR_POS2REV_Int   ((uint32_t)(1<<12))

Clear Bit that Combined position 2 and revolution count interrupt

Definition at line 220 of file lpc17xx_qei.h.

#define QEI_INTCLR_REV_Int   ((uint32_t)(1<<9))

Clear Bit Indicates that the index compare value is equal to the current index count

Definition at line 215 of file lpc17xx_qei.h.

#define QEI_INTCLR_TIM_Int   ((uint32_t)(1<<1))

Clear Bit Indicates that a velocity timer overflow occurred

Definition at line 201 of file lpc17xx_qei.h.

#define QEI_INTCLR_VELC_Int   ((uint32_t)(1<<2))

Clear Bit Indicates that capture velocity is less than compare velocity

Definition at line 202 of file lpc17xx_qei.h.

#define QEI_INTEN_BITMASK   ((uint32_t)(0x1FFF))

QEI Interrupt Enable register bit-mask

Definition at line 247 of file lpc17xx_qei.h.

#define QEI_INTEN_DIR_Int   ((uint32_t)(1<<3))

Enabled Interrupt Bit Indicates that a change of direction was detected

Definition at line 229 of file lpc17xx_qei.h.

#define QEI_INTEN_ENCLK_Int   ((uint32_t)(1<<5))

Enabled Interrupt Bit Indicates that and encoder clock pulse was detected

Definition at line 231 of file lpc17xx_qei.h.

#define QEI_INTEN_ERR_Int   ((uint32_t)(1<<4))

Enabled Interrupt Bit Indicates that an encoder phase error was detected

Definition at line 230 of file lpc17xx_qei.h.

#define QEI_INTEN_INX_Int   ((uint32_t)(1<<0))

Macro defines for QEI Interrupt Enable registerEnabled Interrupt Bit Indicates that an index pulse was detected

Definition at line 226 of file lpc17xx_qei.h.

#define QEI_INTEN_POS0_Int   ((uint32_t)(1<<6))

Enabled Interrupt Bit Indicates that the position 0 compare value is equal to the current position

Definition at line 232 of file lpc17xx_qei.h.

#define QEI_INTEN_POS0REV_Int   ((uint32_t)(1<<10))

Enabled Interrupt Bit that combined position 0 and revolution count interrupt

Definition at line 244 of file lpc17xx_qei.h.

#define QEI_INTEN_POS1_Int   ((uint32_t)(1<<7))

Enabled Interrupt Bit Indicates that the position 1compare value is equal to the current position

Definition at line 235 of file lpc17xx_qei.h.

#define QEI_INTEN_POS1REV_Int   ((uint32_t)(1<<11))

Enabled Interrupt Bit that Combined position 1 and revolution count interrupt

Definition at line 245 of file lpc17xx_qei.h.

#define QEI_INTEN_POS2_Int   ((uint32_t)(1<<8))

Enabled Interrupt Bit Indicates that the position 2 compare value is equal to the current position

Definition at line 238 of file lpc17xx_qei.h.

#define QEI_INTEN_POS2REV_Int   ((uint32_t)(1<<12))

Enabled Interrupt Bit that Combined position 2 and revolution count interrupt

Definition at line 246 of file lpc17xx_qei.h.

#define QEI_INTEN_REV_Int   ((uint32_t)(1<<9))

Enabled Interrupt Bit Indicates that the index compare value is equal to the current index count

Definition at line 241 of file lpc17xx_qei.h.

#define QEI_INTEN_TIM_Int   ((uint32_t)(1<<1))

Enabled Interrupt Bit Indicates that a velocity timer overflow occurred

Definition at line 227 of file lpc17xx_qei.h.

#define QEI_INTEN_VELC_Int   ((uint32_t)(1<<2))

Enabled Interrupt Bit Indicates that capture velocity is less than compare velocity

Definition at line 228 of file lpc17xx_qei.h.

#define QEI_INTSET_BITMASK   ((uint32_t)(0x1FFF))

QEI Interrupt Set register bit-mask

Definition at line 195 of file lpc17xx_qei.h.

#define QEI_INTSET_DIR_Int   ((uint32_t)(1<<3))

Set Bit Indicates that a change of direction was detected

Definition at line 177 of file lpc17xx_qei.h.

#define QEI_INTSET_ENCLK_Int   ((uint32_t)(1<<5))

Set Bit Indicates that and encoder clock pulse was detected

Definition at line 179 of file lpc17xx_qei.h.

#define QEI_INTSET_ERR_Int   ((uint32_t)(1<<4))

Set Bit Indicates that an encoder phase error was detected

Definition at line 178 of file lpc17xx_qei.h.

#define QEI_INTSET_INX_Int   ((uint32_t)(1<<0))

Macro defines for QEI Interrupt Set registerSet Bit Indicates that an index pulse was detected

Definition at line 174 of file lpc17xx_qei.h.

#define QEI_INTSET_POS0_Int   ((uint32_t)(1<<6))

Set Bit Indicates that the position 0 compare value is equal to the current position

Definition at line 180 of file lpc17xx_qei.h.

#define QEI_INTSET_POS0REV_Int   ((uint32_t)(1<<10))

Set Bit that combined position 0 and revolution count interrupt

Definition at line 192 of file lpc17xx_qei.h.

#define QEI_INTSET_POS1_Int   ((uint32_t)(1<<7))

Set Bit Indicates that the position 1compare value is equal to the current position

Definition at line 183 of file lpc17xx_qei.h.

#define QEI_INTSET_POS1REV_Int   ((uint32_t)(1<<11))

Set Bit that Combined position 1 and revolution count interrupt

Definition at line 193 of file lpc17xx_qei.h.

#define QEI_INTSET_POS2_Int   ((uint32_t)(1<<8))

Set Bit Indicates that the position 2 compare value is equal to the current position

Definition at line 186 of file lpc17xx_qei.h.

#define QEI_INTSET_POS2REV_Int   ((uint32_t)(1<<12))

Set Bit that Combined position 2 and revolution count interrupt

Definition at line 194 of file lpc17xx_qei.h.

#define QEI_INTSET_REV_Int   ((uint32_t)(1<<9))

Set Bit Indicates that the index compare value is equal to the current index count

Definition at line 189 of file lpc17xx_qei.h.

#define QEI_INTSET_TIM_Int   ((uint32_t)(1<<1))

Set Bit Indicates that a velocity timer overflow occurred

Definition at line 175 of file lpc17xx_qei.h.

#define QEI_INTSET_VELC_Int   ((uint32_t)(1<<2))

Set Bit Indicates that capture velocity is less than compare velocity

Definition at line 176 of file lpc17xx_qei.h.

#define QEI_INTSTAT_BITMASK   ((uint32_t)(0x1FFF))

QEI Interrupt Status register bit-mask

Definition at line 169 of file lpc17xx_qei.h.

#define QEI_INTSTAT_DIR_Int   ((uint32_t)(1<<3))

Indicates that a change of direction was detected

Definition at line 145 of file lpc17xx_qei.h.

#define QEI_INTSTAT_ENCLK_Int   ((uint32_t)(1<<5))

Indicates that and encoder clock pulse was detected

Definition at line 147 of file lpc17xx_qei.h.

#define QEI_INTSTAT_ERR_Int   ((uint32_t)(1<<4))

Indicates that an encoder phase error was detected

Definition at line 146 of file lpc17xx_qei.h.

#define QEI_INTSTAT_INX_Int   ((uint32_t)(1<<0))

Macro defines for QEI Interrupt Status registerIndicates that an index pulse was detected

Definition at line 142 of file lpc17xx_qei.h.

#define QEI_INTSTAT_POS0_Int   ((uint32_t)(1<<6))

Indicates that the position 0 compare value is equal to the current position

Definition at line 148 of file lpc17xx_qei.h.

#define QEI_INTSTAT_POS0REV_Int   ((uint32_t)(1<<10))

Combined position 0 and revolution count interrupt. Set when both the POS0_Int bit is set and the REV_Int is set

Definition at line 160 of file lpc17xx_qei.h.

#define QEI_INTSTAT_POS1_Int   ((uint32_t)(1<<7))

Indicates that the position 1compare value is equal to the current position

Definition at line 151 of file lpc17xx_qei.h.

#define QEI_INTSTAT_POS1REV_Int   ((uint32_t)(1<<11))

Combined position 1 and revolution count interrupt. Set when both the POS1_Int bit is set and the REV_Int is set

Definition at line 163 of file lpc17xx_qei.h.

#define QEI_INTSTAT_POS2_Int   ((uint32_t)(1<<8))

Indicates that the position 2 compare value is equal to the current position

Definition at line 154 of file lpc17xx_qei.h.

#define QEI_INTSTAT_POS2REV_Int   ((uint32_t)(1<<12))

Combined position 2 and revolution count interrupt. Set when both the POS2_Int bit is set and the REV_Int is set

Definition at line 166 of file lpc17xx_qei.h.

#define QEI_INTSTAT_REV_Int   ((uint32_t)(1<<9))

Indicates that the index compare value is equal to the current index count

Definition at line 157 of file lpc17xx_qei.h.

#define QEI_INTSTAT_TIM_Int   ((uint32_t)(1<<1))

Indicates that a velocity timer overflow occurred

Definition at line 143 of file lpc17xx_qei.h.

#define QEI_INTSTAT_VELC_Int   ((uint32_t)(1<<2))

Indicates that capture velocity is less than compare velocity

Definition at line 144 of file lpc17xx_qei.h.

#define QEI_STAT_BITMASK   ((uint32_t)(1<<0))

QEI status register bit-mask

Definition at line 136 of file lpc17xx_qei.h.

#define QEI_STAT_DIR   ((uint32_t)(1<<0))

Macro defines for QEI Status registerDirection bit

Definition at line 135 of file lpc17xx_qei.h.