23 #ifndef INCLUDED_GR_FXPT_VCO_H 24 #define INCLUDED_GR_FXPT_VCO_H 53 void sincos(
float* sinx,
float* cosx)
const 66 for (
int i = 0; i < noutput_items; i++) {
75 cos(
float* output,
const float* input,
int noutput_items,
float k,
float ampl = 1.0)
77 for (
int i = 0; i < noutput_items; i++) {
78 output[i] = (float)(
fxpt::cos(d_phase) * ampl);
void adjust_phase(float delta_phase)
Definition: fxpt_vco.h:48
Voltage Controlled Oscillator (VCO)
Definition: fxpt_vco.h:36
fxpt_vco()
Definition: fxpt_vco.h:41
~fxpt_vco()
Definition: fxpt_vco.h:43
float sin() const
Definition: fxpt_vco.h:85
void sincos(gr_complex *output, const float *input, int noutput_items, float k, float ampl=1.0)
Definition: fxpt_vco.h:60
void sincos(float *sinx, float *cosx) const
Definition: fxpt_vco.h:53
std::complex< float > gr_complex
Definition: gr_complex.h:27
float cos() const
Definition: fxpt_vco.h:84
static float cos(int32_t x)
Definition: fxpt.h:76
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
static float sin(int32_t x)
Given a fixed point angle x, return float sine (x)
Definition: fxpt.h:66
static float fixed_to_float(int32_t x)
Definition: fxpt.h:61
static int32_t float_to_fixed(float x)
Definition: fxpt.h:52
void cos(float *output, const float *input, int noutput_items, float k, float ampl=1.0)
Definition: fxpt_vco.h:75
float get_phase() const
Definition: fxpt_vco.h:50
void set_phase(float angle)
Definition: fxpt_vco.h:46