![]() |
RTOS_MSPM0
1.1
ECE445M starter code
|
trig functions using fixed point More...
#include <stdint.h>Go to the source code of this file.
Functions | |
| int16_t | fixed_sin (int32_t theta) |
| decimal fixed-point sin More... | |
| int16_t | fixed_cos (int32_t theta) |
| decimal fixed-point cos More... | |
| int32_t | fixed_sin2 (int32_t theta) |
| binary fixed-point sin More... | |
| int32_t | fixed_cos2 (int32_t theta) |
| binary fixed-point cos More... | |
| int32_t | sin540 (int32_t theta) |
| binary fixed-point sin More... | |
| int32_t | cos540 (int32_t theta) |
| binary fixed-point cos More... | |
trig functions using fixed point
sin and cos functions. Input in decimal fixed point (units radians/1000) or binary fixed point (units 2*pi/16384). Output in either decimal fixed-point (units 1/10000) or binary fixed-point (units 1/65536)