GNU Radio 3.5.1 C++ API
|
fixed point sine and cosine and friend GR_CORE_APIs.fixed pt radians More...
#include <gr_fxpt.h>
Static Public Member Functions | |
static gr_int32 | float_to_fixed (float x) |
static float | fixed_to_float (gr_int32 x) |
static float | sin (gr_int32 x) |
Given a fixed point angle x, return float sine (x) | |
static float | cos (gr_int32 x) |
fixed point sine and cosine and friend GR_CORE_APIs.
fixed pt radians
--------- -------- -2**31 -pi 0 0 2**31-1 pi - epsilon
static float gr_fxpt::cos | ( | gr_int32 | x | ) | [inline, static] |
Referenced by gr_fxpt_vco::cos(), gr_fxpt_nco::cos(), gr_fxpt_vco::sincos(), and gr_fxpt_nco::sincos().
static float gr_fxpt::fixed_to_float | ( | gr_int32 | x | ) | [inline, static] |
References PI.
Referenced by gr_fxpt_nco::get_freq(), gr_fxpt_vco::get_phase(), and gr_fxpt_nco::get_phase().
static gr_int32 gr_fxpt::float_to_fixed | ( | float | x | ) | [inline, static] |
References PI.
Referenced by gr_fxpt_nco::adjust_freq(), gr_fxpt_vco::adjust_phase(), gr_fxpt_nco::adjust_phase(), gr_fxpt_nco::set_freq(), gr_fxpt_vco::set_phase(), and gr_fxpt_nco::set_phase().
static float gr_fxpt::sin | ( | gr_int32 | x | ) | [inline, static] |
Given a fixed point angle x, return float sine (x)
Referenced by gr_fxpt_vco::sin(), gr_fxpt_nco::sin(), gr_fxpt_vco::sincos(), and gr_fxpt_nco::sincos().