MSPM0G3519SensorlessFOCMotorControlLibrary  1.0
Functions
appUserInputsConfig.h File Reference

Detailed Description

Application input config apis.


Overview

defines application input configuration apis


#include "appInputCtrlInterface.h"
#include "appUserInputs.h"
Include dependency graph for appUserInputsConfig.h:

Go to the source code of this file.

Functions

int32_t openLoopAccelDecelRate (uint16_t index)
 Gets the open loop acceleration and deceleration rate. More...
 
int32_t closeLoopAccelDecelRate (uint16_t index)
 Gets the close loop acceleration and deceleration rate. More...
 
void update_ISDConfig (USER_INPUTS_T *pUserInputs)
 Updates ISD configurations. More...
 
void update_RvsDrvConfig (USER_INPUTS_T *pUserInputs)
 Updates reverse drive configurations. More...
 
void update_MotorStartUp1Config (USER_INPUTS_T *pUserInputs)
 Updates startup1 configurations. More...
 
void update_MotorStartUp2Config (USER_INPUTS_T *pUserInputs)
 Updates startup2 configurations. More...
 
void update_CloseLoop1Config (USER_INPUTS_T *pUserInputs)
 Updates close loop 1 configurations. More...
 
void update_SystemParams (USER_INPUTS_T *pUserInputs)
 Updates motor configurations. More...
 
void update_FaultCfg1Config (USER_INPUTS_T *pUserInputs)
 Updates fault config 1 configurations. More...
 
void update_FaultCfg2Config (USER_INPUTS_T *pUserInputs)
 Updates fault config 2 configurations. More...
 
void update_MiscAlgoConfig (USER_INPUTS_T *pUserInputs)
 Updates Misc algo configurations. More...
 
void appUserInputRegsConfig (USER_INPUTS_T *pUserInputs)
 Updates all Input Registers configurations. More...
 
void appUserInputsInit (USER_INPUTS_T *pUserInputs)
 Initializes user inputs. More...
 

Function Documentation

§ openLoopAccelDecelRate()

int32_t openLoopAccelDecelRate ( uint16_t  index)

Gets the open loop acceleration and deceleration rate.

Parameters
[in]indexSet Index
Returns
Returns acceleration and deceleration rate from the config table

References tbl1_olAccA1A2_centiHzPerSec, and tbl2_olAccA1A2_HzPerSec.

Referenced by update_MotorStartUp2Config(), and update_RvsDrvConfig().

§ closeLoopAccelDecelRate()

int32_t closeLoopAccelDecelRate ( uint16_t  index)

Gets the close loop acceleration and deceleration rate.

Parameters
[in]indexSet Index
Returns
Returns acceleration and deceleration rate from the config table

References tbl1_clDecClAcc_deciHzPerSec, and tbl2_clDecClAcc_HzPerSec.

Referenced by update_CloseLoop1Config().

§ update_ISDConfig()

void update_ISDConfig ( USER_INPUTS_T pUserInputs)

§ update_RvsDrvConfig()

void update_RvsDrvConfig ( USER_INPUTS_T pUserInputs)

§ update_MotorStartUp1Config()

void update_MotorStartUp1Config ( USER_INPUTS_T pUserInputs)

Updates startup1 configurations.

Parameters
[in]pUserInputsPointer to user Inputs

References USER_INPUTS_T::ipdPulseToPulseTimeMsec, pUserInputRegs, and tbl_ipdClkFreq_Hz.

Referenced by appUserInputRegsConfig().

§ update_MotorStartUp2Config()

void update_MotorStartUp2Config ( USER_INPUTS_T pUserInputs)

§ update_CloseLoop1Config()

void update_CloseLoop1Config ( USER_INPUTS_T pUserInputs)

§ update_SystemParams()

void update_SystemParams ( USER_INPUTS_T pUserInputs)

§ update_FaultCfg1Config()

void update_FaultCfg1Config ( USER_INPUTS_T pUserInputs)

Updates fault config 1 configurations.

Parameters
[in]pUserInputsPointer to user Inputs

Referenced by appUserInputRegsConfig().

§ update_FaultCfg2Config()

void update_FaultCfg2Config ( USER_INPUTS_T pUserInputs)

§ update_MiscAlgoConfig()

void update_MiscAlgoConfig ( USER_INPUTS_T pUserInputs)

§ appUserInputRegsConfig()

void appUserInputRegsConfig ( USER_INPUTS_T pUserInputs)

§ appUserInputsInit()

void appUserInputsInit ( USER_INPUTS_T pUserInputs)

Initializes user inputs.

Parameters
[in]pUserInputsPointer to user Inputs

References USER_INPUTS_T::overVoltageHystPU, and USER_INPUTS_T::underVoltageHystPU.

© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale