23 #ifndef INCLUDED_GR_FXPT_NCO_H
24 #define INCLUDED_GR_FXPT_NCO_H
71 d_phase += d_phase_inc;
76 d_phase += d_phase_inc * n;
84 void sincos(
float *sinx,
float *cosx)
const
93 for(
int i = 0; i < noutput_items; i++) {
100 void sin(
float *output,
int noutput_items,
double ampl=1.0)
102 for(
int i = 0; i < noutput_items; i++) {
109 void cos(
float *output,
int noutput_items,
double ampl=1.0)
111 for(
int i = 0; i < noutput_items; i++) {
118 void sin(
short *output,
int noutput_items,
double ampl=1.0)
120 for(
int i = 0; i < noutput_items; i++) {
127 void cos(
short *output,
int noutput_items,
double ampl=1.0)
129 for(
int i = 0; i < noutput_items; i++) {
136 void sin(
int *output,
int noutput_items,
double ampl=1.0)
138 for(
int i = 0; i < noutput_items; i++) {
145 void cos(
int *output,
int noutput_items,
double ampl=1.0)
147 for(
int i = 0; i < noutput_items; i++) {
void sincos(float *sinx, float *cosx) const
Definition: fxpt_nco.h:84
void sincos(gr_complex *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:91
~fxpt_nco()
Definition: fxpt_nco.h:45
Numerically Controlled Oscillator (NCO)
Definition: fxpt_nco.h:37
void sin(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:118
void step()
Definition: fxpt_nco.h:69
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:100
static float cos(int32_t x)
Definition: fxpt.h:82
Include this header to use the message passing features.
Definition: logger.h:131
static float sin(int32_t x)
Given a fixed point angle x, return float sine (x)
Definition: fxpt.h:71
static float fixed_to_float(int32_t x)
Definition: fxpt.h:62
float get_freq() const
Definition: fxpt_nco.h:81
void set_phase(float angle)
Definition: fxpt_nco.h:48
static int32_t float_to_fixed(float x)
Definition: fxpt.h:52
void step(int n)
Definition: fxpt_nco.h:74
void set_freq(float angle_rate)
Definition: fxpt_nco.h:57
float cos() const
Definition: fxpt_nco.h:154
void sin(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:136
void adjust_phase(float delta_phase)
Definition: fxpt_nco.h:52
float get_phase() const
Definition: fxpt_nco.h:80
void cos(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:145
void adjust_freq(float delta_angle_rate)
Definition: fxpt_nco.h:62
float sin() const
Definition: fxpt_nco.h:155
fxpt_nco()
Definition: fxpt_nco.h:43
void cos(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:109
void cos(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:127