MotorWare f2806x Module API Documentation
Data Structures | Macros | Typedefs | Functions
32b/svgen.h File Reference

Contains the public interface to the Space Vector Generator (SVGEN) module routines. More...

#include "sw/modules/iqmath/src/32b/IQmathLib.h"
#include "sw/modules/types/src/types.h"
#include "sw/modules/math/src/32b/math.h"

Go to the source code of this file.

Data Structures

struct  _SVGEN_Obj_
 Defines the Space Vector Generator object. More...
 

Macros

#define SVGEN_MAX_VAB_VOLTAGES   _IQ(1.1547005384)
 Defines the maximum reference alpha and beta voltages in PU. More...
 
#define SVGEN_100_PERCENT_MODULATION   _IQ(1.0 - 1.0/32768)
 Defines 100% modulation for Q15. More...
 
#define SVGEN_SQRT3_OVER_2   _IQ(0.8660254038)
 Defines sqrt(3)/2. More...
 
#define SVGEN_4_OVER_3   _IQ(4.0/3.0)
 Defines 4/3. More...
 

Typedefs

typedef struct _SVGEN_Obj_ SVGEN_Obj
 Defines the Space Vector Generator object. More...
 
typedef struct _SVGEN_Obj_SVGEN_Handle
 Defines the SVGEN handle. More...
 

Functions

static _iq SVGEN_getMaxModulation (SVGEN_Handle handle)
 Gets the maximum modulation used in the space vector generator module. More...
 
SVGEN_Handle SVGEN_init (void *pMemory, const size_t numBytes)
 Initializes the space vector generator module. More...
 
static void SVGEN_run (SVGEN_Handle handle, const MATH_vec2 *pVab, MATH_vec3 *pT)
 Implements a SVM that saturates at the level of MaxModulation. More...
 
static void SVGEN_setMaxModulation (SVGEN_Handle handle, const _iq maxModulation)
 Sets the maximum modulation in the space vector generator module. More...
 

Detailed Description

Contains the public interface to the Space Vector Generator (SVGEN) module routines.

(C) Copyright 2011, Texas Instruments, Inc.

Definition in file 32b/svgen.h.