MSPM0G3507SensoredFOCMotorControlLibrary  1.0
Data Fields
FOC_T Struct Reference

FOC Working Structure. More...

#include <foc.h>

Collaboration diagram for FOC_T:
Collaboration graph
[legend]

Data Fields

const MC_ABC_TpIabc
 
const int32_t * pFOCAngle
 
const int32_t * pVelocityReference
 
const int32_t * pVdc
 
const int32_t * pInvVdc
 
FOC_STATE_TYPES state
 
MC_SINCOS_T sinCos
 
MC_ABC_T mabc
 
MC_SVM_T svm
 
MC_ALPHABETA_T iAlphaBeta
 
MC_ALPHABETA_T vAlphaBeta
 
MC_ALPHABETA_T mAlphaBeta
 
MC_ALPHABETA_T dAlphaBeta
 
MC_DQ_T idq
 
MC_DQ_T vdq
 
MC_DQ_T vdqForce
 
MC_DQ_T mdqForceSet
 
MC_DQ_T mdq
 
MC_DQ_T ddq
 
PI_T piId
 
PI_T piIq
 
OPEN_LOOP_T openLoop
 
CLOSE_LOOP_T closeLoop
 
STALL_DETECT_T stallDetect
 
DEAD_TIME_COMPUTE_TpDeadTime
 
int32_t modIndexLimit
 
int32_t electricalCycleCountMax
 
FOC_FLAGS_T flags
 
HALL_CALIB_T hallCalibObj
 
HALL_ESTIMATOR_OBJ_T hallObj
 

Detailed Description

FOC Working Structure.

Field Documentation

§ pIabc

const MC_ABC_T* FOC_T::pIabc

FOC Inputs

Input 3 phase current

Referenced by focRun().

§ pFOCAngle

const int32_t* FOC_T::pFOCAngle

Commutation Angle

Referenced by focRun().

§ pVelocityReference

const int32_t * FOC_T::pVelocityReference

Speed reference

Referenced by focRun().

§ pVdc

const int32_t * FOC_T::pVdc

DC bus voltage

Referenced by focLowPriorityRun(), and focRun().

§ pInvVdc

const int32_t * FOC_T::pInvVdc

Inverse of DC bus Voltage

Referenced by focRun().

§ state

FOC_STATE_TYPES FOC_T::state

FOC parameters for processing

FOC State

Referenced by focLowPriorityRun(), focRun(), and getFOCStallStatusForAction().

§ sinCos

MC_SINCOS_T FOC_T::sinCos

Sin and Cosine of commutation angle

Referenced by focRun().

§ mabc

MC_ABC_T FOC_T::mabc

Modulation Index

Referenced by focRun().

§ svm

MC_SVM_T FOC_T::svm

Space Vector Modulation Structure

Referenced by focInit(), focRun(), and motorInputOutputConfig().

§ iAlphaBeta

MC_ALPHABETA_T FOC_T::iAlphaBeta

Stationary Frame Current

Referenced by focRun().

§ vAlphaBeta

MC_ALPHABETA_T FOC_T::vAlphaBeta

Stationary Frame Voltage

Referenced by focRun().

§ mAlphaBeta

MC_ALPHABETA_T FOC_T::mAlphaBeta

Stationary Frame Modulation Index

Referenced by focRun().

§ dAlphaBeta

MC_ALPHABETA_T FOC_T::dAlphaBeta

Stationary Frame Applied Duty Cycle

Referenced by focRun().

§ idq

MC_DQ_T FOC_T::idq

Rotating Frame Current

Referenced by deadTimeComputeConfig(), focLowPriorityRun(), focRun(), and getKickBackStatus().

§ vdq

MC_DQ_T FOC_T::vdq

Rotating Frame Voltage

Referenced by focRun().

§ vdqForce

MC_DQ_T FOC_T::vdqForce

Rotating Frame Voltage Forced

Referenced by focRun().

§ mdqForceSet

MC_DQ_T FOC_T::mdqForceSet

Rotating Frame Voltage set by user

Referenced by focRun(), and updateMotorStopConfigParam().

§ mdq

MC_DQ_T FOC_T::mdq

Rotating Frame Modulation Index

Referenced by focRun().

§ ddq

MC_DQ_T FOC_T::ddq

Rotating Frame Applied Duty Cycle

Referenced by appInterfaceConfig(), and focRun().

§ piId

PI_T FOC_T::piId

D-axis current controller

Referenced by focInit(), focLowPriorityRun(), focRun(), and updateCurrentControlConfigParam().

§ piIq

PI_T FOC_T::piIq

Q-axis current controller

Referenced by focInit(), focLowPriorityRun(), focRun(), and updateCurrentControlConfigParam().

§ openLoop

OPEN_LOOP_T FOC_T::openLoop

Open Loop Parameters

Referenced by focInit(), focLowPriorityRun(), focRun(), and updateCurrentControlConfigParam().

§ closeLoop

CLOSE_LOOP_T FOC_T::closeLoop

§ stallDetect

STALL_DETECT_T FOC_T::stallDetect

§ pDeadTime

DEAD_TIME_COMPUTE_T* FOC_T::pDeadTime

Dead-Time Compensation

Referenced by focLowPriorityRun(), and focRun().

§ modIndexLimit

int32_t FOC_T::modIndexLimit

Modulation Index Limit

Referenced by focLowPriorityRun(), focRun(), and updateCurrentControlConfigParam().

§ electricalCycleCountMax

int32_t FOC_T::electricalCycleCountMax

Count for 1 complete electrical cycle

Referenced by focLowPriorityRun().

§ flags

FOC_FLAGS_T FOC_T::flags

Flags

Referenced by focInit(), focRun(), and updateMotorStopConfigParam().

§ hallCalibObj

HALL_CALIB_T FOC_T::hallCalibObj

§ hallObj

HALL_ESTIMATOR_OBJ_T FOC_T::hallObj

Handle for HALL Based Estimator

Referenced by deadTimeComputeConfig(), focLowPriorityRun(), focRun(), and user_config_faults().


The documentation for this struct was generated from the following file:
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale