diff options
Diffstat (limited to 'gr-digital/lib/constellation_receiver_cb_impl.h')
-rw-r--r-- | gr-digital/lib/constellation_receiver_cb_impl.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gr-digital/lib/constellation_receiver_cb_impl.h b/gr-digital/lib/constellation_receiver_cb_impl.h index ccbbf83657..90482e2cc5 100644 --- a/gr-digital/lib/constellation_receiver_cb_impl.h +++ b/gr-digital/lib/constellation_receiver_cb_impl.h @@ -35,7 +35,7 @@ namespace gr { : public constellation_receiver_cb, blocks::control_loop { public: - constellation_receiver_cb_impl(constellation_sptr constell, + constellation_receiver_cb_impl(constellation_sptr constell, float loop_bw, float fmin, float fmax); ~constellation_receiver_cb_impl(); @@ -58,18 +58,31 @@ namespace gr { //! Typically used when we receive a tag with values for these. void set_phase_freq(float phase, float freq); + /*! + * Message handler port to receiver a new constellation. + * constellation_pmt is a pmt_any; constellation objects have + * an as_pmt function that can be used for this purpose. + */ void handle_set_constellation(pmt::pmt_t constellation_pmt); + /*! + * Message handler port to update the phase of the rotator. The + * phase should be a real number (float or double) that is added + * to the current phase. So we can rotate the constellation by + * 90 degress by passing a value of pmt::from_double(M_PI/2). + */ + void handle_rotate_phase(pmt::pmt_t rotation); + //! Set the constellation used. //! Typically used when we receive a tag with a value for this. void set_constellation(constellation_sptr constellation); //! delay line length. static const unsigned int DLLEN = 8; - + //! delay line plus some length for overflow protection __GR_ATTR_ALIGNED(8) gr_complex d_dl[2*DLLEN]; - + //! index to delay line unsigned int d_dl_idx; }; |