39 template <
class o_type,
class i_type>
88 void sincos(
float* sinx,
float* cosx)
const;
95 void sin(
float* output,
int noutput_items,
double ampl = 1.0);
96 void cos(
float* output,
int noutput_items,
double ampl = 1.0);
98 void sin(
short* output,
int noutput_items,
double ampl = 1.0);
99 void cos(
short* output,
int noutput_items,
double ampl = 1.0);
100 void sin(
int* output,
int noutput_items,
double ampl = 1.0);
101 void cos(
int* output,
int noutput_items,
double ampl = 1.0);
108 template <
class o_type,
class i_type>
114 template <
class o_type,
class i_type>
117 for (
int i = 0; i < noutput_items; i++) {
118 output[i] = (float)(
sin() * ampl);
123 template <
class o_type,
class i_type>
126 for (
int i = 0; i < noutput_items; i++) {
127 output[i] = (float)(
cos() * ampl);
132 template <
class o_type,
class i_type>
135 for (
int i = 0; i < noutput_items; i++) {
136 output[i] = (short)(
sin() * ampl);
141 template <
class o_type,
class i_type>
144 for (
int i = 0; i < noutput_items; i++) {
145 output[i] = (short)(
cos() * ampl);
150 template <
class o_type,
class i_type>
153 for (
int i = 0; i < noutput_items; i++) {
154 output[i] = (int)(
sin() * ampl);
159 template <
class o_type,
class i_type>
162 for (
int i = 0; i < noutput_items; i++) {
163 output[i] = (int)(
cos() * ampl);
168 template <
class o_type,
class i_type>
171 for (
int i = 0; i < noutput_items; i++) {
174 output[i] =
gr_complex(cosx * ampl, sinx * ampl);
void adjust_phase(double delta_phase)
Definition: nco.h:50
float cos() const
Definition: nco.h:91
void step(int n)
Definition: nco.h:71
void sincos(float *sinx, float *cosx) const
Definition: nco.h:109
void step()
Definition: nco.h:59
void adjust_freq(double delta_angle_rate)
Definition: nco.h:56
double get_freq() const
Definition: nco.h:85
GR_RUNTIME_API void sincosf(float x, float *sin, float *cos)
nco()
Definition: nco.h:43
double phase
Definition: nco.h:104
double get_phase() const
Definition: nco.h:84
std::complex< float > gr_complex
Definition: gr_complex.h:27
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
virtual ~nco()
Definition: nco.h:45
float sin() const
Definition: nco.h:92
void set_freq(double angle_rate)
Definition: nco.h:53
void set_phase(double angle)
Definition: nco.h:48
base class template for Numerically Controlled Oscillator (NCO)
Definition: nco.h:40
#define GR_M_PI
Definition: math.h:44
double phase_inc
Definition: nco.h:105