NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

QEI_CFG_Type Struct Reference

QEI_CFG_Type Struct Reference
[QEI_Public_Types]

QEI Configuration structure type definition. More...

#include <lpc17xx_qei.h>

Data Fields

uint32_t DirectionInvert:1
 Direction invert option:

  • QEI_DIRINV_NONE: QEI Direction is normal
  • QEI_DIRINV_CMPL: QEI Direction is complemented.

uint32_t SignalMode:1
 Signal mode Option:

  • QEI_SIGNALMODE_QUAD: Signal is in Quadrature phase mode
  • QEI_SIGNALMODE_CLKDIR: Signal is in Clock/Direction mode.

uint32_t CaptureMode:1
 Capture Mode Option:

  • QEI_CAPMODE_2X: Only Phase-A edges are counted (2X)
  • QEI_CAPMODE_4X: BOTH Phase-A and Phase-B edges are counted (4X)

uint32_t InvertIndex:1
 Invert Index Option:

  • QEI_INVINX_NONE: the sense of the index input is normal
  • QEI_INVINX_EN: inverts the sense of the index input.


Detailed Description

QEI Configuration structure type definition.

Definition at line 238 of file lpc17xx_qei.h.


Field Documentation

uint32_t CaptureMode

Capture Mode Option:

  • QEI_CAPMODE_2X: Only Phase-A edges are counted (2X)
  • QEI_CAPMODE_4X: BOTH Phase-A and Phase-B edges are counted (4X)

Definition at line 247 of file lpc17xx_qei.h.

uint32_t DirectionInvert

Direction invert option:

  • QEI_DIRINV_NONE: QEI Direction is normal
  • QEI_DIRINV_CMPL: QEI Direction is complemented.

Definition at line 239 of file lpc17xx_qei.h.

uint32_t InvertIndex

Invert Index Option:

  • QEI_INVINX_NONE: the sense of the index input is normal
  • QEI_INVINX_EN: inverts the sense of the index input.

Definition at line 251 of file lpc17xx_qei.h.

uint32_t SignalMode

Signal mode Option:

  • QEI_SIGNALMODE_QUAD: Signal is in Quadrature phase mode
  • QEI_SIGNALMODE_CLKDIR: Signal is in Clock/Direction mode.

Definition at line 243 of file lpc17xx_qei.h.