Go to the documentation of this file.
241 SVGEN_init(
void *pMemory,
const size_t numBytes);
259 float32_t Vmax_pu = 0,Vmin_pu = 0,Vcom_pu;
298 else if(Vc_pu < Vmin_pu)
304 Vcom_pu = 0.5f * (Vmax_pu + Vmin_pu);
309 pVabc_pu->
value[0] = (Va_pu - Vcom_pu);
310 pVabc_pu->
value[1] = (Vb_pu - Vcom_pu);
311 pVabc_pu->
value[2] = (Vc_pu - Vcom_pu);
315 pVabc_pu->
value[0] = (Va_pu - Vmin_pu) - 0.5f;
316 pVabc_pu->
value[1] = (Vb_pu - Vmin_pu) - 0.5f;
317 pVabc_pu->
value[2] = (Vc_pu - Vmin_pu) - 0.5f;
321 pVabc_pu->
value[0] = (Va_pu - Vmax_pu) + 0.5f;
322 pVabc_pu->
value[1] = (Vb_pu - Vmax_pu) + 0.5f;
323 pVabc_pu->
value[2] = (Vc_pu - Vmax_pu) + 0.5f;
345 #endif // end of SVGEN_H definition
Defines a two element vector.
Definition: math.h:218
SVPWM standard DQ mode.
Definition: svgen.h:75
static void SVGEN_run(SVGEN_Handle handle, const MATH_Vec2 *pVab_V, MATH_Vec3 *pVabc_pu)
Implements a SVM that saturates at the level of MaxModulation.
Definition: svgen.h:257
static void SVGEN_setSector(SVGEN_Handle handle, uint16_t sector)
Sets the spave vector sector value.
Definition: svgen.h:200
static float32_t SVGEN_getOneOverDcBus_invV(SVGEN_Handle handle)
Gets the one over DC bus voltage value.
Definition: svgen.h:107
float float32_t
Definition: sfra_f32.h:42
DPWM minimum SVM mode.
Definition: svgen.h:73
SVM_Mode_e
Enumeration for svpwm mode.
Definition: svgen.h:70
uint16_t sector
the sector value of space vector
Definition: svgen.h:86
Defines the Space Vector Generator (SVGEN) object.
Definition: svgen.h:83
static void SVGEN_setOneOverDcBus_invV(SVGEN_Handle handle, const float32_t oneOverDcBus_invV)
Sets the one over DC bus voltage value.
Definition: svgen.h:159
float32_t oneOverDcBus_invV
The inverse DC bus voltage value, 1/V.
Definition: svgen.h:85
struct _SVGEN_Obj_ * SVGEN_Handle
Defines the SVGEN handle.
Definition: svgen.h:95
SVM_Mode_e svmMode
Definition: svgen.h:87
static void SVGEN_setup(SVGEN_Handle handle, const float32_t oneOverDcBus_invV)
Sets up the space vector generator (SVGEN) module.
Definition: svgen.h:221
float32_t value[3]
Definition: math.h:232
#define MATH_SQRTTHREE_OVER_TWO
Defines sqrt(3)/2.
Definition: math.h:422
struct _SVGEN_Obj_ SVGEN_Obj
Defines the Space Vector Generator (SVGEN) object.
static uint16_t SVGEN_getSector(SVGEN_Handle handle)
Gets the spave vector sector value.
Definition: svgen.h:140
DPWM maximum SVM.
Definition: svgen.h:74
static void SVGEN_setMode(SVGEN_Handle handle, SVM_Mode_e svmMode)
Sets the spave vector mode.
Definition: svgen.h:180
SVGEN_Handle SVGEN_init(void *pMemory, const size_t numBytes)
Initializes the space vector generator module.
SVPWM common SVM mode.
Definition: svgen.h:72
static SVM_Mode_e SVGEN_getMode(SVGEN_Handle handle)
Gets the spave vector mode.
Definition: svgen.h:123
float32_t value[2]
Definition: math.h:220
Defines a three element vector.
Definition: math.h:230
Copyright 2023, Texas Instruments Incorporated