MSPM0G3519SensorlessFOCMotorControlLibrary  1.0
Macros | Functions
IQmath_mathacl.h File Reference

Detailed Description

Library of IQMath operations.



#include <limits.h>
#include <stdlib.h>
#include <stdint.h>
#include <ti/devices/msp/msp.h>
Include dependency graph for IQmath_mathacl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GLOBAL_IQ   24
 The IQ format to be used when the IQ format is not explicitly specified (such as _IQcos instead of _IQ16cos). This value must be between 1 and 30, inclusive.
 
#define _IQmpy_mathacl(A, B)   _IQ24mpy_mathacl(A, B)
 Multiplies two global IQ format numbers. More...
 
#define _IQdiv_mathacl(A, B)   _IQ24div_mathacl(A, B)
 Divides two global IQ format numbers. More...
 
#define _IQsqrt_mathacl(A)   _IQ24sqrt_mathacl(A)
 Calculate square root of a global IQ format input. More...
 

Functions

__STATIC_INLINE int_fast32_t _IQNmpy_mathacl_inline (int_fast32_t iqNInput1, int_fast32_t iqNInput2, const int8_t q_value)
 MATHACL inline multiplication. More...
 

Macro Definition Documentation

§ _IQmpy_mathacl

#define _IQmpy_mathacl (   A,
 
)    _IQ24mpy_mathacl(A, B)

Multiplies two global IQ format numbers.

Parameters
AGlobal IQ format number to be multiplied.
BGlobal IQ format number to be multiplied.
Returns
Global IQ type result of multiplication.

Referenced by HAL_EnableLowSideBrake(), HAL_GetPhasesFloatingStatus(), HAL_ReadCurrents(), HAL_ReadPhaseVoltages(), MC_ClarkeTransform(), MC_ClarkeTransformNoZeroSeq(), MC_InverseClarkeTransform(), MC_InverseParkTransform(), MC_ParkTransform(), MC_SpaceVectorGen(), and MC_SVM_ClarkeTransform().

§ _IQdiv_mathacl

#define _IQdiv_mathacl (   A,
 
)    _IQ24div_mathacl(A, B)

Divides two global IQ format numbers.

Parameters
AGlobal IQ format numerator to be divided.
BGlobal IQ format denominator to divide by.
Returns
Global IQ type result of division.

Referenced by arcTan2().

§ _IQsqrt_mathacl

#define _IQsqrt_mathacl (   A)    _IQ24sqrt_mathacl(A)

Calculate square root of a global IQ format input.

Parameters
AGlobal IQ format input.
Returns
Global IQ type result of the square root operation.

Function Documentation

§ _IQNmpy_mathacl_inline()

__STATIC_INLINE int_fast32_t _IQNmpy_mathacl_inline ( int_fast32_t  iqNInput1,
int_fast32_t  iqNInput2,
const int8_t  q_value 
)

MATHACL inline multiplication.

Parameters
iqNInput1IQN type value numerator to be divided.
iqNInput2IQN type value denominator to divide by.
q_valueIQ format.
Returns
IQN type result of the multiplication.
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale