MSPM0G3519SensoredFOCMotorControlLibrary  1.0
Data Structures | Macros | Typedefs | Enumerations | Functions
hallEstimator.h File Reference

Detailed Description

HallEstimator Module.


Overview


#include <ti/iqmath/include/IQmathLib.h>
#include "IQmath_mathacl.h"
#include "iqNum.h"
#include "motor.h"
#include "mcLib.h"
#include "measure.h"
Include dependency graph for hallEstimator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HALL_ESTIMATOR_OBJ_T
 Hall Estimator structure. More...
 
struct  HALL_INVALID_STALL_DETECT_T
 Hall Invalid Stall structure. More...
 

Macros

#define HALL_SPEED_FILTER_CONST   _IQ(0.005)
 Hall SPEED FILTER CONSTANT.
 
#define HALL_ANGLE_MASK   0x7FFFFFF
 HALL angle mask to reset for 27 bits.
 
#define HALL_ANGLE_OVERFLOW_MASK   0xF8000000
 Hall angle Overflow Mask for 27 bits.
 

Typedefs

typedef struct HALL_ESTIMATOR_OBJ_T HALL_ESTIMATOR_OBJ_T
 Hall Estimator structure.
 
typedef struct HALL_INVALID_STALL_DETECT_T HALL_INVALID_STALL_DETECT_T
 Hall Invalid Stall structure.
 

Enumerations

enum  HALL_State_e {
  HALL_IDLE = 0,
  HALL_CALIBRATION = 1,
  HALL_CALIBRATION_DONE = 2
}
 Hall State Enumeration. More...
 

Functions

void hallAngleEstimRun (HALL_ESTIMATOR_OBJ_T *pHallHandle)
 Hall Angle Estimator run. More...
 
int32_t hallForcedAngleRun (HALL_ESTIMATOR_OBJ_T *pHallHandle)
 Hall Angle Forced open Loop run. More...
 
void hallAngleInit (HALL_ESTIMATOR_OBJ_T *pHallHandle)
 Hall Angle Finit. More...
 
void hallSinCosEstim (MC_SINCOS_T *pFOCSinCos, HALL_ESTIMATOR_OBJ_T *pHallHandle)
 Hall Angle Estim - Sine & Cosine. More...
 
bool hallInvalidStallDetectRun (uint16_t *pHallSector)
 Invalid Hall Check. More...
 

Enumeration Type Documentation

§ HALL_State_e

Hall State Enumeration.

Enumerator
HALL_IDLE 

State for Idle

HALL_CALIBRATION 

State for Derived Hall Calibration

HALL_CALIBRATION_DONE 

State for completed Hall Calibration

Function Documentation

§ hallAngleEstimRun()

void hallAngleEstimRun ( HALL_ESTIMATOR_OBJ_T pHallHandle)

§ hallForcedAngleRun()

int32_t hallForcedAngleRun ( HALL_ESTIMATOR_OBJ_T pHallHandle)

Hall Angle Forced open Loop run.

Parameters
[in]*pHallHandlePointer
Returns
Returns the Hall Flux angle

References HALL_ESTIMATOR_OBJ_T::hallIndex, and HALL_ESTIMATOR_OBJ_T::pThetaHallIndexPU.

Referenced by focRun().

§ hallAngleInit()

void hallAngleInit ( HALL_ESTIMATOR_OBJ_T pHallHandle)

§ hallSinCosEstim()

void hallSinCosEstim ( MC_SINCOS_T pFOCSinCos,
HALL_ESTIMATOR_OBJ_T pHallHandle 
)

Hall Angle Estim - Sine & Cosine.

Parameters
[in]*pFOCSinCosMC Sine Cos Pointer
[in]*pHallHandleHall Input Pointer

References _IQmpy_mathacl, MC_SINCOS_T::cos, HALL_ESTIMATOR_OBJ_T::freqTs, HALL_ESTIMATOR_OBJ_T::gainEst, HALL_ESTIMATOR_OBJ_T::omegaTs, HALL_ESTIMATOR_OBJ_T::prevSinCos, MC_SINCOS_T::sin, HALL_ESTIMATOR_OBJ_T::sinCos, and HALL_ESTIMATOR_OBJ_T::sinErr.

Referenced by focRun().

§ hallInvalidStallDetectRun()

bool hallInvalidStallDetectRun ( uint16_t *  pHallSector)

Invalid Hall Check.

Parameters
[in]*pHallSectorPointer
Returns
Returns true if invalid Hall state is detected

Referenced by stallDetectRun().

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