23 #ifndef INCLUDED_GR_FXPT_VCO_H 24 #define INCLUDED_GR_FXPT_VCO_H 58 void sincos(
float *sinx,
float *cosx)
const 66 float k,
float ampl = 1.0)
68 for(
int i = 0; i < noutput_items; i++) {
76 void cos(
float *output,
const float *input,
int noutput_items,
float k,
float ampl = 1.0)
78 for(
int i = 0; i < noutput_items; i++) {
79 output[i] = (float)(
fxpt::cos(d_phase) * ampl);
void adjust_phase(float delta_phase)
Definition: fxpt_vco.h:49
Voltage Controlled Oscillator (VCO)
Definition: fxpt_vco.h:36
fxpt_vco()
Definition: fxpt_vco.h:40
float cos() const
Definition: fxpt_vco.h:85
~fxpt_vco()
Definition: fxpt_vco.h:42
void sincos(gr_complex *output, const float *input, int noutput_items, float k, float ampl=1.0)
Definition: fxpt_vco.h:65
float sin() const
Definition: fxpt_vco.h:86
float get_phase() const
Definition: fxpt_vco.h:53
std::complex< float > gr_complex
Definition: gr_complex.h:27
static float cos(int32_t x)
Definition: fxpt.h:83
Include this header to use the message passing features.
Definition: logger.h:695
static float sin(int32_t x)
Given a fixed point angle x, return float sine (x)
Definition: fxpt.h:72
static float fixed_to_float(int32_t x)
Definition: fxpt.h:63
void sincos(float *sinx, float *cosx) const
Definition: fxpt_vco.h:58
static int32_t float_to_fixed(float x)
Definition: fxpt.h:53
void cos(float *output, const float *input, int noutput_items, float k, float ampl=1.0)
Definition: fxpt_vco.h:76
void set_phase(float angle)
Definition: fxpt_vco.h:45