DL_EQEP_PositionCompareConfig

Module: Driverlib (AM13E230X) APIs / Driverlib EQEP API

EQEP Position Compare configuration structure.

#include <dl_eqep.h>

Public Attributes

Name

uint32_t

positionCompareValue

bool

enablePositionCompare

uint16_t

shadowLoadConfig

uint16_t

syncOutConfig

bool

syncOutPolarity

uint16_t

syncOutPulseWidthcycles

Public Attributes Documentation

variable positionCompareValue

uint32_t positionCompareValue;

Position compare value. Configures QPOSCMP.QPOSCMP Value to which the position count value is compared

variable enablePositionCompare

bool enablePositionCompare;

Enable Position Compare. Configures QPOSCTL.PCE

variable shadowLoadConfig

uint16_t shadowLoadConfig;

Enable/Disable shadow load and select load event Configures QPOSCTL.PCSHDW, QPOSCTL.PCLOAD

  • Valid values: DL_EQEP_COMPARE_NO_SHADOW, DL_EQEP_COMPARE_LOAD_ON_ZERO, DL_EQEP_COMPARE_LOAD_ON_MATCH

variable syncOutConfig

uint16_t syncOutConfig;

Enable Sync Out and select Sync Output pin. Configures QDECCTL.SPSEL, QDECCTL.SOEN

  • Valid values: [DL_EQEP_SYNCOUT]

variable syncOutPolarity

bool syncOutPolarity;

Select polarity of sync output. Configures QPOSCTL.PCPOL

  • true: Active low

  • false: Active high

variable syncOutPulseWidthcycles

uint16_t syncOutPulseWidthcycles;

Width of the pulse that can be generated on a position-compare event. Configures QPOSCTL.PCSPW

  • Valid values: Units of 4 SYSCLKOUT cycles. The maximum width is 4096 * 4 * SYSCLKOUT cycles.