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

Detailed Description

HALL Calibration module.


Overview


#include "stdint.h"
#include "mcLib.h"
#include "measure.h"
Include dependency graph for hallCalib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HALL_CALIB_T
 Hall Calibration Working Structure. More...
 

Macros

#define CALIBRATION_ALIGN_ANGLE   _IQ(0.125)
 ALIGN ANGLE FORWARD - HALL CALIBRATION Applied Voltage Vector from SVM is 90 Degree Phase advanced from Aligned Rotor Position During Align, compensate the offset.
 
#define CALIBRATION_ANGLE_STEP   _IQ(0.5/360.0)
 CALIBRATION ANGLE STEP SIZE.
 
#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.
 

Enumerations

enum  HALL_CALIBRATION_STATE_e {
  HALL_CALIB_INIT = 0,
  HAL_CALIB_ALIGN = 1,
  HAL_CALIB_RUN_FORWARD = 2,
  HAL_CALIB_RUN_REVERSE = 3,
  HAL_CALIB_COMPUTE = 4,
  HAL_CALIB_COMPLETE = 5,
  HAL_CALIB_FAILED = 6
}
 HallCalibration State. More...
 

Functions

void hallCalibInit (HALL_CALIB_T *pHallCalibHandle)
 Hall Calib Init. More...
 
void hallCalibRun (HALL_CALIB_T *pHallCalibHandle)
 Hall Calib Run. More...
 
_Bool getHallCalibStatus (HALL_CALIB_T *pHallCalibHandle)
 Get Calib Status. More...
 

Enumeration Type Documentation

§ HALL_CALIBRATION_STATE_e

HallCalibration State.

Enumerator
HALL_CALIB_INIT 

Hall Calibration State INIT

HAL_CALIB_ALIGN 

Hall Calibration State ALIGN

HAL_CALIB_RUN_FORWARD 

Hall Calibration State RUN

HAL_CALIB_RUN_REVERSE 

Hall Calibration State RUN

HAL_CALIB_COMPUTE 

Hall Calibration State Compute

HAL_CALIB_COMPLETE 

Hall Calibration State Done

HAL_CALIB_FAILED 

Hall Calibration Failed

Function Documentation

§ hallCalibInit()

void hallCalibInit ( HALL_CALIB_T pHallCalibHandle)

Hall Calib Init.

Parameters
[in]*pHallCalibHandleInput Pointer

References HALL_CALIB_T::calibSectorCount, HALL_CALIB_T::calibState, HALL_CALIB_T::count, FALSE, HALL_CALIB_INIT, HALL_CALIB_T::idRef, HALL_CALIB_T::iqRef, and HALL_CALIB_T::status.

Referenced by focInit().

§ hallCalibRun()

void hallCalibRun ( HALL_CALIB_T pHallCalibHandle)

§ getHallCalibStatus()

_Bool getHallCalibStatus ( HALL_CALIB_T pHallCalibHandle)
inline

Get Calib Status.

Parameters
[in]*pHallCalibHandlePointer
Returns
Returns the status

References HALL_CALIB_T::status.

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