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(
short* output,
int noutput_items,
double ampl = 1.0)
115 for (
int i = 0; i < noutput_items; i++) {
122 void cos(
short* output,
int noutput_items,
double ampl = 1.0)
124 for (
int i = 0; i < noutput_items; i++) {
131 void sin(
int* output,
int noutput_items,
double ampl = 1.0)
133 for (
int i = 0; i < noutput_items; i++) {
140 void cos(
int* output,
int noutput_items,
double ampl = 1.0)
142 for (
int i = 0; i < noutput_items; i++) {
Numerically Controlled Oscillator (NCO)
Definition: fxpt_nco.h:38
void sin(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:131
float get_phase() const
Definition: fxpt_nco.h:74
void adjust_freq(float delta_angle_rate)
Definition: fxpt_nco.h:62
void adjust_phase(float delta_phase)
Definition: fxpt_nco.h:50
void cos(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:122
fxpt_nco()
Definition: fxpt_nco.h:43
void sincos(gr_complex *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:85
float get_freq() const
Definition: fxpt_nco.h:75
void set_freq(float angle_rate)
Definition: fxpt_nco.h:56
void cos(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:140
~fxpt_nco()
Definition: fxpt_nco.h:45
void cos(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:104
float cos() const
Definition: fxpt_nco.h:149
void sin(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:113
void sincos(float *sinx, float *cosx) const
Definition: fxpt_nco.h:78
void set_phase(float angle)
Definition: fxpt_nco.h:48
void step()
Definition: fxpt_nco.h:69
float sin() const
Definition: fxpt_nco.h:150
void step(int n)
Definition: fxpt_nco.h:71
void sin(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:95
static float cos(int32_t x)
Definition: fxpt.h:76
static int32_t float_to_fixed(float x)
Definition: fxpt.h:52
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
std::complex< float > gr_complex
Definition: gr_complex.h:27
Include this header to use the message passing features.
Definition: basic_block.h:45