AM243x Motor Control SDK  09.02.00

Introduction

Contains space vector generation current (SVGENCURRENT) functions implementation.

Go to the source code of this file.

Data Structures

struct  SVGENCURRENT_Obj
 Defines the Svgen Current object. More...
 

Typedefs

typedef struct _SVGENCURRENT_Obj_ * SVGENCURRENT_Handle
 Defines the Svgen Current handle. More...
 

Enumerations

enum  SVGENCURRENT_IgnoreShunt_e {
  SVGENCURRENT_USE_ALL = 0, SVGENCURRENT_IGNORE_A, SVGENCURRENT_IGNORE_B, SVGENCURRENT_IGNORE_C,
  SVGENCURRENT_IGNORE_AB, SVGENCURRENT_IGNORE_AC, SVGENCURRENT_IGNORE_BC, SVGENCURRENT_IGNORE_ALL
}
 
enum  SVGENCURRENT_MeasureShunt_e { SVGENCURRENT_ALL_PHASE_MEASURABLE = 1, SVGENCURRENT_TWO_PHASE_MEASURABLE, SVGENCURRENT_ONE_PHASE_MEASURABLE, SVGENCURRENT_IMMEASUREABLE }
 
enum  SVGENCURRENT_VmidShunt_e { SVGENCURRENT_VMID_A =0, SVGENCURRENT_VMID_B, SVGENCURRENT_VMID_C }
 

Functions

SVGENCURRENT_Handle SVGENCURRENT_init (void *pMemory, const size_t numBytes)
 Initializes the svgen current object. More...
 
void SVGENCURRENT_setup (SVGENCURRENT_Handle handle, const float32_t minWidth_usec, const float32_t pwmFreq_kHz, const float32_t systemFreq_MHz)
 Sets up the PWM minimum width. More...
 
static void SVGENCURRENT_setMinWidth (SVGENCURRENT_Handle handle, const int16_t minwidth)
 Sets the minimum Duty Cycle width that the lower switch can be on before. More...
 
static void SVGENCURRENT_setIgnoreShunt (SVGENCURRENT_Handle handle, const SVGENCURRENT_IgnoreShunt_e ignoreShunt)
 Sets the ignore shunt value. More...
 
static void SVGENCURRENT_setMode (SVGENCURRENT_Handle handle, const SVGENCURRENT_MeasureShunt_e compMode)
 Sets the compensation mode. More...
 
static void SVGENCURRENT_setVlimit (SVGENCURRENT_Handle handle, const float32_t Vlimit)
 Sets the output voltage limit value for gurrantee a current sampling. More...
 
static SVGENCURRENT_IgnoreShunt_e SVGENCURRENT_getIgnoreShunt (SVGENCURRENT_Handle handle)
 Gets the ignore shunt value. More...
 
static int16_t SVGENCURRENT_getMinWidth (SVGENCURRENT_Handle handle)
 Gets the minimum Duty Cycle width that the lower switch can be on before. More...
 
static float32_t SVGENCURRENT_getVlimit (SVGENCURRENT_Handle handle)
 Gets the Voltage(Duty) Limit value. More...
 
static SVGENCURRENT_MeasureShunt_e SVGENCURRENT_getMode (SVGENCURRENT_Handle handle)
 Gets the current reconstruction mode. More...
 
static SVGENCURRENT_VmidShunt_e SVGENCURRENT_getVmid (SVGENCURRENT_Handle handle)
 Gets the middle amplitude voltage. More...
 
static void SVGENCURRENT_RunIgnoreShunt (SVGENCURRENT_Handle handle, uint16_t cmp1, uint16_t cmp2, uint16_t cmp3, uint16_t cmpM1, uint16_t cmpM2, uint16_t cmpM3)
 Gets the svgen current module ignore shunt. More...
 
static void SVGENCURRENT_RunRegenCurrent (SVGENCURRENT_Handle handle, MATH_Vec3 *pADCData, MATH_Vec3 *pADCDataPrev)
 Reconstructs the missed measured currents due to a small sampling window. More...
 
static void SVGENCURRENT_compPWMData (SVGENCURRENT_Handle handle, MATH_Vec3 *pPWMData, MATH_Vec3 *pPWMData_prev)
 output voltage reconsturction to guarantee min duty in two phase at least More...