23 #ifndef _GR_ROTATOR_H_
24 #define _GR_ROTATOR_H_
28 #include <volk/volk.h>
38 unsigned int d_counter;
41 rotator() : d_phase(1), d_phase_incr(1), d_counter(0)
52 d_phase *= d_phase_incr;
54 if((d_counter % 512) == 0)
55 d_phase /= abs(d_phase);
62 volk_32fc_s32fc_x2_rotator_32fc(out, in, d_phase_incr, &d_phase, n);
void rotateN(gr_complex *out, const gr_complex *in, int n)
Definition: rotator.h:60
void set_phase_incr(gr_complex incr)
Definition: rotator.h:45
void set_phase(gr_complex phase)
Definition: rotator.h:44
gr_complex rotate(gr_complex in)
Definition: rotator.h:47
std::complex< float > gr_complex
Definition: gr_complex.h:27
Include this header to use the message passing features.
Definition: logger.h:131
rotator()
Definition: rotator.h:41