Data Structures | Macros | Enumerations
qep_defs.h File Reference
#include <stdint.h>
#include "inc/hw_types.h"

Go to the source code of this file.

Data Structures

struct  QEP
 

Macros

#define QEP_FLAG_IEL_EVENT   0x0400
 
#define QEP_FLAG_UTO_EVENT   0x0800
 
#define QEP_DEFAULTS
 

Enumerations

enum  ENC_Status_e {
  ENC_IDLE = 0,
  ENC_ALIGNMENT = 1,
  ENC_WAIT_FOR_INDEX = 2,
  ENC_CALIBRATION_DONE = 3,
  ENC_ALIGNMENT = 0,
  ENC_WAIT_FOR_INDEX = 1,
  ENC_CALIBRATION_DONE = 2
}
 

Macro Definition Documentation

◆ QEP_FLAG_IEL_EVENT

#define QEP_FLAG_IEL_EVENT   0x0400

◆ QEP_FLAG_UTO_EVENT

#define QEP_FLAG_UTO_EVENT   0x0800

◆ QEP_DEFAULTS

#define QEP_DEFAULTS
Value:
{ \
0.0, /* ElecTheta */ \
0.0, /* MechTheta */ \
0, /* DirectionQep */ \
0, /* QepPeriod */ \
0, /* QepCountIndex */ \
0, /* RawTheta */ \
0.0, /* MechScaler */ \
1000, /* LineEncoder */ \
4, /* PolePairs */ \
0, /* CalibratedAngle */ \
0 /* IndexSyncFlag */ \
}

Enumeration Type Documentation

◆ ENC_Status_e

Enumerator
ENC_IDLE 
ENC_ALIGNMENT 
ENC_WAIT_FOR_INDEX 
ENC_CALIBRATION_DONE 
ENC_ALIGNMENT 
ENC_WAIT_FOR_INDEX 
ENC_CALIBRATION_DONE 

Copyright 2023, Texas Instruments Incorporated