DL_EQEP_QduConfig

Module: Driverlib (AM13E230X) APIs / Driverlib EQEP API

EQEP QDU configuration structure.

#include <dl_eqep.h>

Public Attributes

Name

bool

enableDirectionChangeDuringIndex

bool

invertQEPA

bool

invertQEPB

bool

invertIndex

bool

invertStrobe

uint16_t

positionCounterSource

uint16_t

externalClockRate

uint16_t

swap

uint16_t

indexGate

Public Attributes Documentation

variable enableDirectionChangeDuringIndex

bool enableDirectionChangeDuringIndex;

Enable direction change during Index event. Configures QDECCTL.QIDIRE

variable invertQEPA

bool invertQEPA;

Flag to negate the QEPA input. Configures QDECCTL.QAP

  • true: Negate QEPA input

  • false: Do not negate QEPA input

variable invertQEPB

bool invertQEPB;

Flag to negate the QEPB input. Configures QDECCTL.QBP

  • true: Negate QEPB input

  • false: Do not negate QEPB input

variable invertIndex

bool invertIndex;

Flag to negate the index input. Configures QDECCTL.QIP

  • true: Negate index input

  • false: Do not negate index input

variable invertStrobe

bool invertStrobe;

Flag to negate the strobe input. Configures QDECCTL.QSP

  • true: Negate strobe input

  • false: Do not negate strobe input

variable positionCounterSource

uint16_t positionCounterSource;

Select position counter source. Specify whether

  • quadrature signals are being provided on QEPA and QEPB,

  • if a direction signal and a clock are being provided or

  • if the direction should be hard-wired for a single direction with QEPA used for input.

Configures QDECCTL.QSRC

  • Valid values: [DL_EQEP_OPEARTION_MODE]

variable externalClockRate

uint16_t externalClockRate;

Configures QDECCTL.XCR [DL_EQEP_RESOLUTION] Specify if both rising and falling edges should be counted or just rising edges.

variable swap

uint16_t swap;

Specify whether the signals provided on QEPA and QEPB should be swapped before being processed.

  • Configures QDECCTL.SWAP

  • Valid values: [DL_EQEP_SWAP]

variable indexGate

uint16_t indexGate;

Specify whether the gating of the index pulse should be enabled or disabled.

  • Configures QDECCTL.IGATE

  • Valid values: [DL_EQEP_IGATE]