27template <
class o_type,
class i_type>
71 void sin(
float* output,
int noutput_items,
double ampl = 1.0);
72 void cos(
float* output,
int noutput_items,
double ampl = 1.0);
74 void sin(
short* output,
int noutput_items,
double ampl = 1.0);
75 void cos(
short* output,
int noutput_items,
double ampl = 1.0);
76 void sin(
int* output,
int noutput_items,
double ampl = 1.0);
77 void cos(
int* output,
int noutput_items,
double ampl = 1.0);
84template <
class o_type,
class i_type>
87 for (
int i = 0; i < noutput_items; i++) {
88 output[i] = (float)(sin() * ampl);
93template <
class o_type,
class i_type>
96 for (
int i = 0; i < noutput_items; i++) {
97 output[i] = (float)(cos() * ampl);
102template <
class o_type,
class i_type>
105 for (
int i = 0; i < noutput_items; i++) {
106 output[i] = (short)(sin() * ampl);
111template <
class o_type,
class i_type>
114 for (
int i = 0; i < noutput_items; i++) {
115 output[i] = (short)(cos() * ampl);
120template <
class o_type,
class i_type>
123 for (
int i = 0; i < noutput_items; i++) {
124 output[i] = (int)(sin() * ampl);
129template <
class o_type,
class i_type>
132 for (
int i = 0; i < noutput_items; i++) {
133 output[i] = (int)(cos() * ampl);
138template <
class o_type,
class i_type>
141 for (
int i = 0; i < noutput_items; i++) {
144 output[i] =
gr_complex(cosx * ampl, sinx * ampl);
base class template for Numerically Controlled Oscillator (NCO)
Definition: nco.h:29
double phase_inc
Definition: nco.h:81
void sincos(float *sinx, float *cosx) const
Definition: nco.h:64
float sin() const
Definition: nco.h:68
void set_freq(double angle_rate)
Definition: nco.h:41
void adjust_phase(double delta_phase)
Definition: nco.h:38
virtual ~nco()
Definition: nco.h:33
double phase
Definition: nco.h:80
void adjust_freq(double delta_angle_rate)
Definition: nco.h:44
void step(int n=1)
Definition: nco.h:47
void set_phase(double angle)
Definition: nco.h:36
float cos() const
Definition: nco.h:67
double get_phase() const
Definition: nco.h:60
double get_freq() const
Definition: nco.h:61
nco()
Definition: nco.h:31
std::complex< float > gr_complex
Definition: gr_complex.h:15
#define GR_M_PI
Definition: math.h:32
GNU Radio logging wrapper.
Definition: basic_block.h:29
void sincosf(float x, float *sinx, float *cosx)
Definition: sincos.h:49