23 #ifndef _GR_ROTATOR_H_
24 #define _GR_ROTATOR_H_
37 unsigned int d_counter;
40 rotator() : d_phase(1), d_phase_incr(1), d_counter(0)
51 d_phase *= d_phase_incr;
53 if((d_counter % 512) == 0)
54 d_phase /= abs(d_phase);
void set_phase_incr(gr_complex incr)
Definition: rotator.h:44
void set_phase(gr_complex phase)
Definition: rotator.h:43
gr_complex rotate(gr_complex in)
Definition: rotator.h:46
std::complex< float > gr_complex
Definition: gr_complex.h:27
rotator()
Definition: rotator.h:40