11 #ifndef INCLUDED_GR_FXPT_VCO_H
12 #define INCLUDED_GR_FXPT_VCO_H
41 void sincos(
float* sinx,
float* cosx)
const
54 for (
int i = 0; i < noutput_items; i++) {
63 cos(
float* output,
const float* input,
int noutput_items,
float k,
float ampl = 1.0)
65 for (
int i = 0; i < noutput_items; i++) {
66 output[i] = (float)(
fxpt::cos(d_phase) * ampl);
Voltage Controlled Oscillator (VCO)
Definition: fxpt_vco.h:25
void sincos(gr_complex *output, const float *input, int noutput_items, float k, float ampl=1.0)
Definition: fxpt_vco.h:48
void cos(float *output, const float *input, int noutput_items, float k, float ampl=1.0)
Definition: fxpt_vco.h:63
fxpt_vco()
Definition: fxpt_vco.h:29
void set_phase(float angle)
Definition: fxpt_vco.h:34
float sin() const
Definition: fxpt_vco.h:73
~fxpt_vco()
Definition: fxpt_vco.h:31
void adjust_phase(float delta_phase)
Definition: fxpt_vco.h:36
float cos() const
Definition: fxpt_vco.h:72
void sincos(float *sinx, float *cosx) const
Definition: fxpt_vco.h:41
float get_phase() const
Definition: fxpt_vco.h:38
static float cos(int32_t x)
Definition: fxpt.h:65
static int32_t float_to_fixed(float x)
Definition: fxpt.h:41
static float sin(int32_t x)
Given a fixed point angle x, return float sine (x)
Definition: fxpt.h:55
static float fixed_to_float(int32_t x)
Definition: fxpt.h:50
std::complex< float > gr_complex
Definition: gr_complex.h:15
GNU Radio logging wrapper.
Definition: basic_block.h:29