11#ifndef INCLUDED_GR_FXPT_NCO_H
12#define INCLUDED_GR_FXPT_NCO_H
57 void step() { d_phase += d_phase_inc; }
59 void step(
int n) { d_phase += d_phase_inc * n; }
66 void sincos(
float* sinx,
float* cosx)
const
75 for (
int i = 0; i < noutput_items; i++) {
83 void sin(
float* output,
int noutput_items,
double ampl = 1.0)
85 for (
int i = 0; i < noutput_items; i++) {
92 void cos(
float* output,
int noutput_items,
double ampl = 1.0)
94 for (
int i = 0; i < noutput_items; i++) {
101 void sin(std::int8_t* output,
int noutput_items,
double ampl = 1.0)
103 for (
int i = 0; i < noutput_items; i++) {
110 void cos(std::int8_t* output,
int noutput_items,
double ampl = 1.0)
112 for (
int i = 0; i < noutput_items; i++) {
119 void sin(
short* output,
int noutput_items,
double ampl = 1.0)
121 for (
int i = 0; i < noutput_items; i++) {
128 void cos(
short* output,
int noutput_items,
double ampl = 1.0)
130 for (
int i = 0; i < noutput_items; i++) {
137 void sin(
int* output,
int noutput_items,
double ampl = 1.0)
139 for (
int i = 0; i < noutput_items; i++) {
146 void cos(
int* output,
int noutput_items,
double ampl = 1.0)
148 for (
int i = 0; i < noutput_items; i++) {
Numerically Controlled Oscillator (NCO)
Definition: fxpt_nco.h:26
void sin(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:137
float get_phase() const
Definition: fxpt_nco.h:62
void adjust_freq(float delta_angle_rate)
Definition: fxpt_nco.h:50
void adjust_phase(float delta_phase)
Definition: fxpt_nco.h:38
void cos(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:128
fxpt_nco()
Definition: fxpt_nco.h:31
void sincos(gr_complex *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:73
float get_freq() const
Definition: fxpt_nco.h:63
void set_freq(float angle_rate)
Definition: fxpt_nco.h:44
void cos(int *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:146
void cos(std::int8_t *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:110
~fxpt_nco()
Definition: fxpt_nco.h:33
void cos(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:92
float cos() const
Definition: fxpt_nco.h:155
void sin(short *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:119
void sincos(float *sinx, float *cosx) const
Definition: fxpt_nco.h:66
void set_phase(float angle)
Definition: fxpt_nco.h:36
void step()
Definition: fxpt_nco.h:57
float sin() const
Definition: fxpt_nco.h:156
void sin(std::int8_t *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:101
void step(int n)
Definition: fxpt_nco.h:59
void sin(float *output, int noutput_items, double ampl=1.0)
Definition: fxpt_nco.h:83
static float cos(int32_t x)
Definition: fxpt.h:65
static int32_t float_to_fixed(float x)
Definition: fxpt.h:41
static float sin(int32_t x)
Given a fixed point angle x, return float sine (x)
Definition: fxpt.h:55
static float fixed_to_float(int32_t x)
Definition: fxpt.h:50
std::complex< float > gr_complex
Definition: gr_complex.h:15
GNU Radio logging wrapper.
Definition: basic_block.h:29