AM243x Motor Control SDK  09.02.00

Introduction

Defines the interface to reference generator module (REFGEN)

Go to the source code of this file.

Data Structures

struct  dcl_refgen
 Defines the DCL_REFGEN structure. More...
 

Macros

#define DCL_REFGEN_MIN_INC   1.0e-06f
 Defines the minimum normalized increment. More...
 
#define DCL_REFGEN_DEFAULTS
 Defines default values to initialize the DCL_REFGEN structure. More...
 

Typedefs

typedef _DCL_VOLATILE struct dcl_refgen DCL_REFGEN
 

Enumerations

enum  DCL_refgen_modes {
  REFGEN_OFF = 0, REFGEN_STATIC = 1, REFGEN_SINE = 2, REFGEN_SQUARE = 3,
  REFGEN_SAW = 4, REFGEN_TRIANGLE = 5, REFGEN_PULSE = 6, REFGEN_SINE2 = 7,
  REFGEN_SINE3 = 8
}
 Defines the REFGEN operating modes. More...
 

Functions

_DCL_CODE_ACCESS void DCL_resetRefgen (DCL_REFGEN *p)
 Resets DCL_REFGEN dynamic data. More...
 
_DCL_CODE_ACCESS void DCL_setRefgenRamp (DCL_REFGEN *p, float32_t tgt, float32_t tr)
 Loads the REFGEN ramp parameters. More...
 
_DCL_CODE_ACCESS void DCL_setRefgenAmpl (DCL_REFGEN *p, float32_t ampl, float32_t tr)
 Loads the REFGEN dynamic amplitude. More...
 
_DCL_CODE_ACCESS void DCL_setRefgenFreq (DCL_REFGEN *p, float32_t freq, float32_t tr)
 Loads the REFGEN frequency. More...
 
_DCL_CODE_ACCESS void DCL_setRefgenDuty (DCL_REFGEN *p, float32_t duty)
 Loads the REFGEN pulse duty cycle. More...
 
_DCL_CODE_ACCESS void DCL_setRefgenClamp (DCL_REFGEN *p, float32_t max, float32_t min)
 Loads the REFGEN output clam limits. More...
 
_DCL_CODE_ACCESS void DCL_setRefgenMode (DCL_REFGEN *p, int16_t mode)
 Sets the REFGEN operating mode. More...
 
_DCL_CODE_ACCESS void DCL_runRefgen (DCL_REFGEN *p)
 Runs the REFGEN module. More...
 
_DCL_CODE_ACCESS float32_t DCL_getRefgenPhaseA (DCL_REFGEN *p)
 Returns the phase reference output. More...
 
_DCL_CODE_ACCESS float32_t DCL_getRefgenPhaseB (DCL_REFGEN *p)
 Returns the phase reference output. More...
 
_DCL_CODE_ACCESS float32_t DCL_getRefgenPhaseC (DCL_REFGEN *p)
 Returns the phase reference output. More...