AM243x MCU+ SDK  09.01.00
ti_tmu_trig.h
Go to the documentation of this file.
1 /* Copyright (c) 2023, Texas Instruments Incorporated
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  *
15  * * Neither the name of Texas Instruments Incorporated nor the names of
16  * its contributors may be used to endorse or promote products derived
17  * from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
29  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
30 
40 #ifndef TI_TMU_TRIG_H_
41 #define TI_TMU_TRIG_H_
42 
43 /* ========================================================================== */
44 /* Function Declarations */
45 /* ========================================================================== */
46 
58 extern float ti_tmu_sin_pu(float anglePU);
59 
60 
72 extern float ti_tmu_cos_pu(float anglePU);
73 
74 
86 extern float ti_tmu_atan_pu(float x);
87 
88 
100 extern float ti_tmu_log_pu(float x);
101 
102 
113 extern float ti_tmu_iexp_pu(float x);
114 
115 
127 extern float ti_tmu_sin(float angleRad);
128 
129 
141 extern float ti_tmu_cos(float angleRad);
142 
154 extern float ti_tmu_atan(float x);
155 
156 
168 extern float ti_tmu_atan2(float x, float y);
169 
170 #endif /* TI_TMU_TRIG_H */
171 
ti_tmu_iexp_pu
float ti_tmu_iexp_pu(float x)
Computes the inverse exponential value of the input using TMU.
ti_tmu_log_pu
float ti_tmu_log_pu(float x)
Computes the logarithmic value of the input using TMU.
ti_tmu_sin_pu
float ti_tmu_sin_pu(float anglePU)
Computes the trigonometric sine value of the input angle using TMU.
ti_tmu_cos_pu
float ti_tmu_cos_pu(float anglePU)
Computes the trigonometric cosine value of the input angle using TMU.
ti_tmu_atan
float ti_tmu_atan(float x)
Computes the trigonometric atan value of the input angle using TMU.
ti_tmu_sin
float ti_tmu_sin(float angleRad)
Computes the trigonometric sine value of the input angle using TMU.
ti_tmu_atan_pu
float ti_tmu_atan_pu(float x)
Computes the trigonometric atan value of the input using TMU.
ti_tmu_atan2
float ti_tmu_atan2(float x, float y)
Computes the trigonometric atan2 value of the input values using TMU. Uses the quadratic built in TMU...
ti_tmu_cos
float ti_tmu_cos(float angleRad)
Computes the trigonometric cosine value of the input angle using TMU.