MSPM0G3519SensorlessFOCMotorControlLibrary  1.0
Data Fields
USER_INPUTS_T Struct Reference

User Input structure. More...

#include <appUserInputs.h>

Collaboration diagram for USER_INPUTS_T:
Collaboration graph
[legend]

Data Fields

int32_t hardwareOverCurrentLimitPU
 
int32_t noMotorLimitPU
 
uint32_t rsMilliOhms
 
uint32_t LdMicroHenry
 
uint32_t LqMicroHenry
 
uint32_t KeMilliVoltPhasePkPerHz
 
uint32_t openLoopDecelToSlowAccelSlewRateRatioPerMil
 
uint32_t forwardTransitionSpeedPerMil
 
uint32_t reverseTransitionSpeedPerMil
 
uint32_t angleErrorSlewRateMilliDegreesPerMsec
 
uint32_t closeLoopSlowAccelSpeedSlewRateDeciHzPerSec
 
uint32_t lowBemfEmagThresholdPerMil
 
uint32_t abnormalSpeedLimitPerMil
 
uint32_t isdMaxStopBemfPU
 
uint32_t faultRetryTimeMsec
 
uint32_t underVoltageHystPU
 
uint32_t overVoltageHystPU
 
MODULE_ENABLE_FLAGS_T moduleFlags
 
DEBUG_ENABLE_FLAGS_T debugFlags
 
float systemDCBusVoltageVolts
 
float fullScalePhaseCurrentAmp
 
float maximumSpeedHz
 
float basePower
 
float kpCurrent
 
float kiCurrent
 
float kpSpeed
 
float kiSpeed
 
float kpPlug
 
float kiPlug
 
float kpFluxWeak
 
float kiFluxWeak
 
float ipdPulseToPulseTimeMsec
 
int32_t speedInput
 
int32_t openLoopFastAccelAccelSlewRateCentiHzPerSecPerSec
 
int32_t openLoopSlowAccelSpeedSlewRateCentiHzPerSec
 
int32_t openLoopSlowAccelAccelSlewRateCentiHzPerSecPerSec
 
int32_t closeLoopFastAccelSpeedSlewRateDeciHzPerSec
 
int32_t closeLoopFastDecelSpeedSlewRateDeciHzPerSec
 
uint8_t ipdMaxOverflow
 

Detailed Description

User Input structure.

Field Documentation

§ hardwareOverCurrentLimitPU

int32_t USER_INPUTS_T::hardwareOverCurrentLimitPU

Over current limit in hardware

§ noMotorLimitPU

int32_t USER_INPUTS_T::noMotorLimitPU

No Motor Current Limit

Referenced by update_FaultCfg2Config().

§ rsMilliOhms

uint32_t USER_INPUTS_T::rsMilliOhms

Phase Resistance in milliOhms

Referenced by update_SystemParams().

§ LdMicroHenry

uint32_t USER_INPUTS_T::LdMicroHenry

D-Axis Inductance in uH

Referenced by update_SystemParams().

§ LqMicroHenry

uint32_t USER_INPUTS_T::LqMicroHenry

Q-Axis Inductance in uH

Referenced by update_SystemParams().

§ KeMilliVoltPhasePkPerHz

uint32_t USER_INPUTS_T::KeMilliVoltPhasePkPerHz

BEMF Constant Units: Phase Peak MilliVolt per Hz

Referenced by update_SystemParams().

§ openLoopDecelToSlowAccelSlewRateRatioPerMil

uint32_t USER_INPUTS_T::openLoopDecelToSlowAccelSlewRateRatioPerMil

Decel to accel ratio

Referenced by update_MiscAlgoConfig().

§ forwardTransitionSpeedPerMil

uint32_t USER_INPUTS_T::forwardTransitionSpeedPerMil

Forward Transition Speed

Referenced by update_MotorStartUp2Config().

§ reverseTransitionSpeedPerMil

uint32_t USER_INPUTS_T::reverseTransitionSpeedPerMil

Reverse Transition Speed

Referenced by update_ISDConfig().

§ angleErrorSlewRateMilliDegreesPerMsec

uint32_t USER_INPUTS_T::angleErrorSlewRateMilliDegreesPerMsec

Rate of aligning of angle

Referenced by update_MotorStartUp2Config().

§ closeLoopSlowAccelSpeedSlewRateDeciHzPerSec

uint32_t USER_INPUTS_T::closeLoopSlowAccelSpeedSlewRateDeciHzPerSec

Close Loop Accel slew rate

Referenced by update_MiscAlgoConfig().

§ lowBemfEmagThresholdPerMil

uint32_t USER_INPUTS_T::lowBemfEmagThresholdPerMil

Low BEMF Threshold

Referenced by update_FaultCfg2Config().

§ abnormalSpeedLimitPerMil

uint32_t USER_INPUTS_T::abnormalSpeedLimitPerMil

Abnormal Speed Limit

Referenced by update_FaultCfg2Config().

§ isdMaxStopBemfPU

uint32_t USER_INPUTS_T::isdMaxStopBemfPU

BEMF threshold for motor stop

Referenced by update_ISDConfig().

§ faultRetryTimeMsec

uint32_t USER_INPUTS_T::faultRetryTimeMsec

Retry time after fault

§ underVoltageHystPU

uint32_t USER_INPUTS_T::underVoltageHystPU

Undervoltage hysteresis

Referenced by appUserInputsInit().

§ overVoltageHystPU

uint32_t USER_INPUTS_T::overVoltageHystPU

Overvoltage hysteresis

Referenced by appUserInputsInit().

§ moduleFlags

MODULE_ENABLE_FLAGS_T USER_INPUTS_T::moduleFlags

Module Flags

Referenced by update_FaultCfg2Config().

§ debugFlags

DEBUG_ENABLE_FLAGS_T USER_INPUTS_T::debugFlags

Debug Flags

§ systemDCBusVoltageVolts

float USER_INPUTS_T::systemDCBusVoltageVolts

System DC bus voltage

Referenced by update_SystemParams().

§ fullScalePhaseCurrentAmp

float USER_INPUTS_T::fullScalePhaseCurrentAmp

Full scale phase current

Referenced by update_SystemParams().

§ maximumSpeedHz

float USER_INPUTS_T::maximumSpeedHz

Motor Maximum Speed

Referenced by update_SystemParams().

§ basePower

float USER_INPUTS_T::basePower

Base power

§ kpCurrent

float USER_INPUTS_T::kpCurrent

Proportional - Current

Referenced by update_SystemParams().

§ kiCurrent

float USER_INPUTS_T::kiCurrent

Integral - Current

Referenced by update_SystemParams().

§ kpSpeed

float USER_INPUTS_T::kpSpeed

Proportional - Speed

Referenced by update_SystemParams().

§ kiSpeed

float USER_INPUTS_T::kiSpeed

Integral - Speed

Referenced by update_SystemParams().

§ kpPlug

float USER_INPUTS_T::kpPlug

Proportional - Plug Brake

Referenced by update_RvsDrvConfig().

§ kiPlug

float USER_INPUTS_T::kiPlug

Integral - Plug Brake

Referenced by update_RvsDrvConfig().

§ kpFluxWeak

float USER_INPUTS_T::kpFluxWeak

Proportional - Flux Weakening

Referenced by update_SystemParams().

§ kiFluxWeak

float USER_INPUTS_T::kiFluxWeak

Integral - Flux Weakening

Referenced by update_SystemParams().

§ ipdPulseToPulseTimeMsec

float USER_INPUTS_T::ipdPulseToPulseTimeMsec

Time between two IPD pulses

Referenced by update_MotorStartUp1Config().

§ speedInput

int32_t USER_INPUTS_T::speedInput

Speed Input

§ openLoopFastAccelAccelSlewRateCentiHzPerSecPerSec

int32_t USER_INPUTS_T::openLoopFastAccelAccelSlewRateCentiHzPerSecPerSec

Startup Open Loop Accel rate

Referenced by update_MotorStartUp2Config().

§ openLoopSlowAccelSpeedSlewRateCentiHzPerSec

int32_t USER_INPUTS_T::openLoopSlowAccelSpeedSlewRateCentiHzPerSec

Reversal Open Loop Speed Slew Rate

Referenced by update_RvsDrvConfig().

§ openLoopSlowAccelAccelSlewRateCentiHzPerSecPerSec

int32_t USER_INPUTS_T::openLoopSlowAccelAccelSlewRateCentiHzPerSecPerSec

Reversal Open Loop Acce rate

Referenced by update_RvsDrvConfig().

§ closeLoopFastAccelSpeedSlewRateDeciHzPerSec

int32_t USER_INPUTS_T::closeLoopFastAccelSpeedSlewRateDeciHzPerSec

Close Loop Accel slew rate

Referenced by update_CloseLoop1Config().

§ closeLoopFastDecelSpeedSlewRateDeciHzPerSec

int32_t USER_INPUTS_T::closeLoopFastDecelSpeedSlewRateDeciHzPerSec

Close Loop Decel slew rate

Referenced by update_CloseLoop1Config().

§ ipdMaxOverflow

uint8_t USER_INPUTS_T::ipdMaxOverflow

Maximum number of timer overflows allowed during IPD

Referenced by update_MiscAlgoConfig().


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