94 #include <ti/iqmath/include/IQmathLib.h> 100 #include <ti/devices/msp/msp.h> 101 #include <ti/driverlib/driverlib.h> 102 #include <ti/driverlib/m0p/dl_core.h> 109 #define LOOKUP_POINTS 16 112 #define DELX_LOOKUP _IQ(0.25)/(LOOKUP_POINTS - 1) 114 #define INV_DELX_LOOKUP (int32_t)(((LOOKUP_POINTS - 1) / 0.25)) 139 return ( ((int_fast32_t)MATHACL->RES2) >> (31 -
GLOBAL_IQ) );
149 return ( ((int_fast32_t)MATHACL->RES1) >> (31 -
GLOBAL_IQ) );
171 int_fast32_t
sine(int32_t orig_angle);
178 int_fast32_t
cosine(int32_t orig_angle);
186 int_fast32_t
arcTan2(int_fast32_t iqNInputX, int_fast32_t iqNInputY);
int32_t sine_LowPriority(int32_t orig_angle)
LUT based sine computation.
Definition: iqTrig.c:97
void sinCosMATHACLCompute(int_fast32_t orig_angle)
Configures the MATHACL for sinCos computation and set the angle.
Definition: iqTrig.c:184
int32_t sine_LowPrioirty(int32_t orig_angle)
sine of angle
#define GLOBAL_IQ
The IQ format to be used when the IQ format is not explicitly specified (such as _IQcos instead of _I...
Definition: IQmath_mathacl.h:103
Library of IQMath operations.
int_fast32_t sine(int32_t orig_angle)
sine of angle
int_fast32_t arcTan2(int_fast32_t iqNInputX, int_fast32_t iqNInputY)
Finds tan inverse angle.
Definition: iqTrig.c:221
__STATIC_INLINE int_fast32_t readMATHACLSin(void)
Reads and scales the MATHACL register with sine result.
Definition: iqTrig.h:136
__STATIC_INLINE int_fast32_t readMATHACLCos(void)
Reads and scales the MATHACL register with cosine result.
Definition: iqTrig.h:146
int_fast32_t cosine(int32_t orig_angle)
cosine of angle
int32_t cosine_LowPriority(int32_t orig_angle)
LUT based cosine computation.
Definition: iqTrig.c:102