![]() |
![]() |
|
MSPM0G3519SensoredFOCMotorControlLibrary
1.0
|
#include <ti/iqmath/include/IQmathLib.h>#include "IQmath_mathacl.h"#include "appInterface.h"#include "measure.h"#include "foc.h"#include "motor.h"#include "sourceLimits.h"#include "load.h"#include "deadTimeCompute.h"#include "faults.h"#include "hallCalib.h"

Go to the source code of this file.
Data Structures | |
| union | APP_FLAGS_T |
| Application Flags Structure. More... | |
| struct | APP_FLAGS_T::appFlags |
| Application Flags. More... | |
| struct | SENSORED_FOC_APPLICATION_T |
| Application Working Structure. More... | |
Macros | |
| #define | MIN_TARGET_DUTY_FLOAT 0.01 |
| Min target Duty Float. | |
| #define | MIN_TARGET_SPEED _IQ(MIN_TARGET_DUTY_FLOAT) |
| Min Target Duty. | |
| #define | VOLTAGE_OUT_OF_BOUNDS_TIME_MSEC 50.0 |
| Voltage Out of Bound Deglitch Time in mS. | |
| #define | NO_MOTOR_TIME_MSEC 500 |
| No Motor Fault Detect Deglitch Time in mS. | |
| #define | ABNORMAL_SPEED_TIME_MSEC 10 |
| VAbnormal Speed Fault Detect Deglitch Time in mS. | |
Enumerations | |
| enum | APP_STATE_TYPES { APP_INIT = 0, APP_IDLE = 1, APP_OFFSET_CALIBRATION = 2, APP_START = 3, APP_RUN = 4, APP_STOP = 5, APP_BRAKE = 6, APP_FAULT = 7 } |
| App State type. More... | |
Functions | |
| void | FOC_faultReport (SENSORED_FOC_APPLICATION_T *pMC_App, FAULT_SERVICE_T *pFault) |
| FOC_fault Report. More... | |
| void | FOC_fault_Recovery (SENSORED_FOC_APPLICATION_T *pMC_App, FAULT_SERVICE_T *pFault) |
| FOC_fault Recovery. More... | |
Variables | |
| SENSORED_FOC_APPLICATION_T * | g_pMC_App |
| Motor Control Application Variable. | |
| enum APP_STATE_TYPES |
App State type.
| void FOC_faultReport | ( | SENSORED_FOC_APPLICATION_T * | pMC_App, |
| FAULT_SERVICE_T * | pFault | ||
| ) |
FOC_fault Report.
| [in] | *pMC_App | Input Pointer |
| [in] | *pFault | Input Pointer |
References APP_FAULT, controllerFaultAction, USER_STATUS_INTERFACE_T::controllerFaultStatus, controllernFaultReport, gateDriverFaultAction, USER_STATUS_INTERFACE_T::gateDriverFaultStatus, gateDrivernFaultReport, HAL_ClearNFault(), HAL_SetNFault(), SENSORED_FOC_APPLICATION_T::pAppInterface, APP_INTERFACE_T::pUserOutputs, and SENSORED_FOC_APPLICATION_T::state.
| void FOC_fault_Recovery | ( | SENSORED_FOC_APPLICATION_T * | pMC_App, |
| FAULT_SERVICE_T * | pFault | ||
| ) |
FOC_fault Recovery.
| [in] | *pMC_App | Input Pointer |
| [in] | *pFault | Input Pointer |
References USER_CTRL_INTERFACE_T::algoDebugCtrl1, APP_FAULT, FAULT_FLAGS_T::b, RAM_ALGO_DEBUG_1_T::b, FAULT_FLAGS_T::faultFlags::clearFault, ramAlgoDebugCtrl1::clearFlt, controllerFaultAction, faultReportClear(), FAULT_SERVICE_T::flags, gateDriverClearFault(), gateDriverFaultAction, HAL_getRawFaultStatus(), pUserCtrlRegs, SENSORED_FOC_APPLICATION_T::state, and TRUE.