This module contains APIs for TMU operations.
|
float | ti_tmu_sin_pu (float anglePU) |
| Computes the trigonometric sine value of the input angle using TMU. More...
|
|
float | ti_tmu_cos_pu (float anglePU) |
| Computes the trigonometric cosine value of the input angle using TMU. More...
|
|
float | ti_tmu_atan_pu (float x) |
| Computes the trigonometric atan value of the input using TMU. More...
|
|
float | ti_tmu_log_pu (float x) |
| Computes the logarithmic value of the input using TMU. More...
|
|
float | ti_tmu_iexp_pu (float x) |
| Computes the inverse exponential value of the input using TMU. More...
|
|
float | ti_tmu_sin (float angleRad) |
| Computes the trigonometric sine value of the input angle using TMU. More...
|
|
float | ti_tmu_cos (float angleRad) |
| Computes the trigonometric cosine value of the input angle using TMU. More...
|
|
float | ti_tmu_atan (float x) |
| Computes the trigonometric atan value of the input angle using TMU. More...
|
|
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 function to comput the ratio and quadrant value, which is then used to comput atan2 value of input. More...
|
|
◆ ti_tmu_sin_pu()
float ti_tmu_sin_pu |
( |
float |
anglePU | ) |
|
Computes the trigonometric sine value of the input angle using TMU.
- Parameters
-
[in] | anglePU | - input angle in per unit within [-1.0f, +1.0f] |
- Returns
- Computed sine value
- Note
- Usage Considerations: Valid input is limited to values between -1.0f to +1.0f. No error checking is performed on input.
◆ ti_tmu_cos_pu()
float ti_tmu_cos_pu |
( |
float |
anglePU | ) |
|
Computes the trigonometric cosine value of the input angle using TMU.
- Parameters
-
[in] | anglePU | - input angle in per unit within [-1.0f, +1.0f] |
- Returns
- Computed cosine value
- Note
- Usage Considerations: Valid input is limited to values between -1.0f to +1.0f. No error checking is performed on input.
◆ ti_tmu_atan_pu()
float ti_tmu_atan_pu |
( |
float |
x | ) |
|
Computes the trigonometric atan value of the input using TMU.
- Parameters
-
[in] | x | - input value from -1.0f to 1.0f |
- Returns
- Computed atan value −0.125f to +0.125f (the value whose tan is x)
- Note
- Usage Considerations: Valid input is limited to values between -1.0f to 1.0f. No error checking is performed on input.
◆ ti_tmu_log_pu()
float ti_tmu_log_pu |
( |
float |
x | ) |
|
Computes the logarithmic value of the input using TMU.
- Parameters
-
[in] | x | - input value in float |
- Returns
- Computed log value (base of 2)
- Note
- Usage Considerations: Valid input is limited to values between negative infinity to positive infinity. No error checking is performed on input.
◆ ti_tmu_iexp_pu()
float ti_tmu_iexp_pu |
( |
float |
x | ) |
|
Computes the inverse exponential value of the input using TMU.
- Parameters
-
[in] | x | - input value in float |
- Returns
- Computed exponential value (base of 2)
- Note
- Usage Considerations: No error checking is performed on input.
◆ ti_tmu_sin()
float ti_tmu_sin |
( |
float |
angleRad | ) |
|
Computes the trigonometric sine value of the input angle using TMU.
- Parameters
-
[in] | angleRad | - input angle in radians within [-2PI, +2PI] |
- Returns
- Computed sine value
- Note
- Usage Considerations: Valid input is limited to values between -2PI to 2PI. The input is multiplied with 1/2PI to convert it to per unit value for using TMU. No error checking is performed on input.
◆ ti_tmu_cos()
float ti_tmu_cos |
( |
float |
angleRad | ) |
|
Computes the trigonometric cosine value of the input angle using TMU.
- Parameters
-
[in] | angleRad | - input angle in radians within [-2PI, +2PI] |
- Returns
- Computed cosine value
- Note
- Usage Considerations: Valid input is limited to values between -2PI to 2PI. The input is multiplied with 1/2PI to convert it to per unit value for using TMU. No error checking is performed on input.
◆ ti_tmu_atan()
float ti_tmu_atan |
( |
float |
x | ) |
|
Computes the trigonometric atan value of the input angle using TMU.
- Parameters
-
[in] | x | - input value from -1.0f to 1.0f |
- Returns
- Computed atan value
- Note
- Usage Considerations: Valid input is limited to values between -1.0f to 1.0f. The computed output value is multiplied with 2PI to change it to radians. No error checking is performed on input.
◆ 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 function to comput the ratio and quadrant value, which is then used to comput atan2 value of input.
- Parameters
-
[in] | x | - input value within the domain of arctangent |
[in] | y | - input value within the domain of arctangent |
- Returns
- Computed atan2 value
- Note
- Usage Considerations: No error checking is performed on input.