QEI_Public_Macros
[QEI]
Defines | |
#define | PARAM_QEIx(n) ((n==LPC_QEI)) |
#define | QEI_RESET_POS QEI_CON_RESP |
#define | QEI_RESET_POSOnIDX QEI_CON_RESPI |
#define | QEI_RESET_VEL QEI_CON_RESV |
#define | QEI_RESET_IDX QEI_CON_RESI |
#define | PARAM_QEI_RESET(n) |
#define | QEI_DIRINV_NONE ((uint32_t)(0)) |
#define | QEI_DIRINV_CMPL ((uint32_t)(1)) |
#define | PARAM_QEI_DIRINV(n) ((n==QEI_DIRINV_NONE) || (n==QEI_DIRINV_CMPL)) |
#define | QEI_SIGNALMODE_QUAD ((uint32_t)(0)) |
#define | QEI_SIGNALMODE_CLKDIR ((uint32_t)(1)) |
#define | PARAM_QEI_SIGNALMODE(n) ((n==QEI_SIGNALMODE_QUAD) || (n==QEI_SIGNALMODE_CLKDIR)) |
#define | QEI_CAPMODE_2X ((uint32_t)(0)) |
#define | QEI_CAPMODE_4X ((uint32_t)(1)) |
#define | PARAM_QEI_CAPMODE(n) ((n==QEI_CAPMODE_2X) || (n==QEI_CAPMODE_4X)) |
#define | QEI_INVINX_NONE ((uint32_t)(0)) |
#define | QEI_INVINX_EN ((uint32_t)(1)) |
#define | PARAM_QEI_INVINX(n) ((n==QEI_INVINX_NONE) || (n==QEI_INVINX_EN)) |
#define | QEI_TIMERRELOAD_TICKVAL ((uint8_t)(0)) |
#define | QEI_TIMERRELOAD_USVAL ((uint8_t)(1)) |
#define | PARAM_QEI_TIMERRELOAD(n) ((n==QEI_TIMERRELOAD_TICKVAL) || (n==QEI_TIMERRELOAD_USVAL)) |
#define | QEI_STATUS_DIR ((uint32_t)(1<<0)) |
#define | PARAM_QEI_STATUS(n) ((n==QEI_STATUS_DIR)) |
#define | QEI_COMPPOS_CH_0 ((uint8_t)(0)) |
#define | QEI_COMPPOS_CH_1 ((uint8_t)(1)) |
#define | QEI_COMPPOS_CH_2 ((uint8_t)(2)) |
#define | PARAM_QEI_COMPPOS_CH(n) ((n==QEI_COMPPOS_CH_0) || (n==QEI_COMPPOS_CH_1) || (n==QEI_COMPPOS_CH_2)) |
#define | QEI_INTFLAG_INX_Int ((uint32_t)(1<<0)) |
#define | QEI_INTFLAG_TIM_Int ((uint32_t)(1<<1)) |
#define | QEI_INTFLAG_VELC_Int ((uint32_t)(1<<2)) |
#define | QEI_INTFLAG_DIR_Int ((uint32_t)(1<<3)) |
#define | QEI_INTFLAG_ERR_Int ((uint32_t)(1<<4)) |
#define | QEI_INTFLAG_ENCLK_Int ((uint32_t)(1<<5)) |
#define | QEI_INTFLAG_POS0_Int ((uint32_t)(1<<6)) |
#define | QEI_INTFLAG_POS1_Int ((uint32_t)(1<<7)) |
#define | QEI_INTFLAG_POS2_Int ((uint32_t)(1<<8)) |
#define | QEI_INTFLAG_REV_Int ((uint32_t)(1<<9)) |
#define | QEI_INTFLAG_POS0REV_Int ((uint32_t)(1<<10)) |
#define | QEI_INTFLAG_POS1REV_Int ((uint32_t)(1<<11)) |
#define | QEI_INTFLAG_POS2REV_Int ((uint32_t)(1<<12)) |
#define | PARAM_QEI_INTFLAG(n) |
Define Documentation
#define PARAM_QEI_CAPMODE | ( | n | ) | ((n==QEI_CAPMODE_2X) || (n==QEI_CAPMODE_4X)) |
Definition at line 311 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 332 of file lpc17xx_qei.h.
#define PARAM_QEI_DIRINV | ( | n | ) | ((n==QEI_DIRINV_NONE) || (n==QEI_DIRINV_CMPL)) |
Definition at line 299 of file lpc17xx_qei.h.
#define PARAM_QEI_INTFLAG | ( | n | ) |
Value:
((n==QEI_INTFLAG_INX_Int) \ || (n==QEI_INTFLAG_TIM_Int) \ || (n==QEI_INTFLAG_VELC_Int) \ || (n==QEI_INTFLAG_DIR_Int) \ || (n==QEI_INTFLAG_ERR_Int) \ || (n==QEI_INTFLAG_ENCLK_Int) \ || (n==QEI_INTFLAG_POS0_Int) \ || (n==QEI_INTFLAG_POS1_Int) \ || (n==QEI_INTFLAG_POS2_Int) \ || (n==QEI_INTFLAG_REV_Int) \ || (n==QEI_INTFLAG_POS0REV_Int) \ || (n==QEI_INTFLAG_POS1REV_Int) \ || (n==QEI_INTFLAG_POS2REV_Int))
Definition at line 353 of file lpc17xx_qei.h.
#define PARAM_QEI_INVINX | ( | n | ) | ((n==QEI_INVINX_NONE) || (n==QEI_INVINX_EN)) |
Definition at line 317 of file lpc17xx_qei.h.
#define PARAM_QEI_RESET | ( | n | ) |
Value:
((n==QEI_CON_RESP) \ || (n==QEI_RESET_POSOnIDX) \ || (n==QEI_RESET_VEL) \ || (n==QEI_RESET_IDX))
Definition at line 290 of file lpc17xx_qei.h.
#define PARAM_QEI_SIGNALMODE | ( | n | ) | ((n==QEI_SIGNALMODE_QUAD) || (n==QEI_SIGNALMODE_CLKDIR)) |
Definition at line 305 of file lpc17xx_qei.h.
#define PARAM_QEI_STATUS | ( | n | ) | ((n==QEI_STATUS_DIR)) |
Definition at line 326 of file lpc17xx_qei.h.
#define PARAM_QEI_TIMERRELOAD | ( | n | ) | ((n==QEI_TIMERRELOAD_TICKVAL) || (n==QEI_TIMERRELOAD_USVAL)) |
Definition at line 322 of file lpc17xx_qei.h.
#define PARAM_QEIx | ( | n | ) | ((n==LPC_QEI)) |
Definition at line 282 of file lpc17xx_qei.h.
#define QEI_CAPMODE_2X ((uint32_t)(0)) |
Capture mode: Only Phase-A edges are counted (2X)
Definition at line 308 of file lpc17xx_qei.h.
#define QEI_CAPMODE_4X ((uint32_t)(1)) |
Capture mode: BOTH PhA and PhB edges are counted (4X)
Definition at line 309 of file lpc17xx_qei.h.
#define QEI_COMPPOS_CH_0 ((uint8_t)(0)) |
QEI compare position channel 0
Definition at line 329 of file lpc17xx_qei.h.
#define QEI_COMPPOS_CH_1 ((uint8_t)(1)) |
QEI compare position channel 1
Definition at line 330 of file lpc17xx_qei.h.
#define QEI_COMPPOS_CH_2 ((uint8_t)(2)) |
QEI compare position channel 2
Definition at line 331 of file lpc17xx_qei.h.
#define QEI_DIRINV_CMPL ((uint32_t)(1)) |
Direction is complemented
Definition at line 297 of file lpc17xx_qei.h.
#define QEI_DIRINV_NONE ((uint32_t)(0)) |
Direction is not inverted
Definition at line 296 of file lpc17xx_qei.h.
#define QEI_INTFLAG_DIR_Int ((uint32_t)(1<<3)) |
Change of direction interrupt
Definition at line 338 of file lpc17xx_qei.h.
#define QEI_INTFLAG_ENCLK_Int ((uint32_t)(1<<5)) |
An encoder clock pulse was detected interrupt
Definition at line 340 of file lpc17xx_qei.h.
#define QEI_INTFLAG_ERR_Int ((uint32_t)(1<<4)) |
An encoder phase error interrupt
Definition at line 339 of file lpc17xx_qei.h.
#define QEI_INTFLAG_INX_Int ((uint32_t)(1<<0)) |
index pulse was detected interrupt
Definition at line 335 of file lpc17xx_qei.h.
#define QEI_INTFLAG_POS0_Int ((uint32_t)(1<<6)) |
position 0 compare value is equal to the current position interrupt
Definition at line 341 of file lpc17xx_qei.h.
#define QEI_INTFLAG_POS0REV_Int ((uint32_t)(1<<10)) |
Combined position 0 and revolution count interrupt
Definition at line 349 of file lpc17xx_qei.h.
#define QEI_INTFLAG_POS1_Int ((uint32_t)(1<<7)) |
position 1 compare value is equal to the current position interrupt
Definition at line 343 of file lpc17xx_qei.h.
#define QEI_INTFLAG_POS1REV_Int ((uint32_t)(1<<11)) |
Combined position 1 and revolution count interrupt
Definition at line 350 of file lpc17xx_qei.h.
#define QEI_INTFLAG_POS2_Int ((uint32_t)(1<<8)) |
position 2 compare value is equal to the current position interrupt
Definition at line 345 of file lpc17xx_qei.h.
#define QEI_INTFLAG_POS2REV_Int ((uint32_t)(1<<12)) |
Combined position 2 and revolution count interrupt
Definition at line 351 of file lpc17xx_qei.h.
#define QEI_INTFLAG_REV_Int ((uint32_t)(1<<9)) |
Index compare value is equal to the current index count interrupt
Definition at line 347 of file lpc17xx_qei.h.
#define QEI_INTFLAG_TIM_Int ((uint32_t)(1<<1)) |
Velocity timer over flow interrupt
Definition at line 336 of file lpc17xx_qei.h.
#define QEI_INTFLAG_VELC_Int ((uint32_t)(1<<2)) |
Capture velocity is less than compare interrupt
Definition at line 337 of file lpc17xx_qei.h.
#define QEI_INVINX_EN ((uint32_t)(1)) |
Invert Index signal option: Enable
Definition at line 315 of file lpc17xx_qei.h.
#define QEI_INVINX_NONE ((uint32_t)(0)) |
Invert Index signal option: None
Definition at line 314 of file lpc17xx_qei.h.
#define QEI_RESET_IDX QEI_CON_RESI |
Reset Index Counter
Definition at line 288 of file lpc17xx_qei.h.
#define QEI_RESET_POS QEI_CON_RESP |
Reset position counter
Definition at line 285 of file lpc17xx_qei.h.
#define QEI_RESET_POSOnIDX QEI_CON_RESPI |
Reset Posistion Counter on Index
Definition at line 286 of file lpc17xx_qei.h.
#define QEI_RESET_VEL QEI_CON_RESV |
Reset Velocity
Definition at line 287 of file lpc17xx_qei.h.
#define QEI_SIGNALMODE_CLKDIR ((uint32_t)(1)) |
Signal operation: Clock/Direction mode
Definition at line 303 of file lpc17xx_qei.h.
#define QEI_SIGNALMODE_QUAD ((uint32_t)(0)) |
Signal operation: Quadrature phase mode
Definition at line 302 of file lpc17xx_qei.h.
#define QEI_STATUS_DIR ((uint32_t)(1<<0)) |
Direction status
Definition at line 325 of file lpc17xx_qei.h.
#define QEI_TIMERRELOAD_TICKVAL ((uint8_t)(0)) |
Reload value in absolute value
Definition at line 320 of file lpc17xx_qei.h.
#define QEI_TIMERRELOAD_USVAL ((uint8_t)(1)) |
Reload value in microsecond value
Definition at line 321 of file lpc17xx_qei.h.
Generated on Mon Feb 8 10:01:46 2010 for LPC1700CMSIS Standard Peripheral Firmware Library by 1.5.9