23 #ifndef INCLUDED_GR_FXPT_NCO_H 24 #define INCLUDED_GR_FXPT_NCO_H 69 void step() { d_phase += d_phase_inc; }
71 void step(
int n) { d_phase += d_phase_inc * n; }
78 void sincos(
float* sinx,
float* cosx)
const 87 for (
int i = 0; i < noutput_items; i++) {
95 void sin(
float* output,
int noutput_items,
double ampl = 1.0)
97 for (
int i = 0; i < noutput_items; i++) {
104 void cos(
float* output,
int noutput_items,
double ampl = 1.0)
106 for (
int i = 0; i < noutput_items; i++) {
113 void sin(std::int8_t* output,
int noutput_items,
double ampl = 1.0)
115 for (
int i = 0; i < noutput_items; i++) {
122 void cos(std::int8_t* output,
int noutput_items,
double ampl = 1.0)
124 for (
int i = 0; i < noutput_items; i++) {
131 void sin(
short* output,
int noutput_items,
double ampl = 1.0)
133 for (
int i = 0; i < noutput_items; i++) {
140 void cos(
short* output,
int noutput_items,
double ampl = 1.0)
142 for (
int i = 0; i < noutput_items; i++) {
149 void sin(
int* output,
int noutput_items,
double ampl = 1.0)
151 for (
int i = 0; i < noutput_items; i++) {
158 void cos(
int* output,
int noutput_items,
double ampl = 1.0)
160 for (
int i = 0; i < noutput_items; i++) {
void sincos(gr_complex *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:85
~fxpt_nco()
Definition: fxpt_nco.h:45
Numerically Controlled Oscillator (NCO)
Definition: fxpt_nco.h:37
float get_phase() const
Definition: fxpt_nco.h:74
void sin(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:131
void step()
Definition: fxpt_nco.h:69
void sin(std::int8_t *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:113
std::complex< float > gr_complex
Definition: gr_complex.h:27
void sin(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:95
float cos() const
Definition: fxpt_nco.h:167
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
float get_freq() const
Definition: fxpt_nco.h:75
static float fixed_to_float(int32_t x)
Definition: fxpt.h:61
void set_phase(float angle)
Definition: fxpt_nco.h:48
float sin() const
Definition: fxpt_nco.h:168
static int32_t float_to_fixed(float x)
Definition: fxpt.h:52
void step(int n)
Definition: fxpt_nco.h:71
void cos(std::int8_t *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:122
void set_freq(float angle_rate)
Definition: fxpt_nco.h:56
void sin(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:149
void adjust_phase(float delta_phase)
Definition: fxpt_nco.h:50
void cos(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:158
void adjust_freq(float delta_angle_rate)
Definition: fxpt_nco.h:62
fxpt_nco()
Definition: fxpt_nco.h:43
void cos(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:104
void cos(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:140
void sincos(float *sinx, float *cosx) const
Definition: fxpt_nco.h:78