summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/repeat.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/repeat.h')
-rw-r--r--gr-blocks/include/gnuradio/blocks/repeat.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/repeat.h b/gr-blocks/include/gnuradio/blocks/repeat.h
index 622b066017..b34bda1ec5 100644
--- a/gr-blocks/include/gnuradio/blocks/repeat.h
+++ b/gr-blocks/include/gnuradio/blocks/repeat.h
@@ -32,6 +32,10 @@ namespace gr {
/*!
* \brief repeat each input \p repeat times
* \ingroup stream_operators_blk
+ *
+ * Message Ports:
+ * * interpolation (in):
+ * Takes a pmt_pair(pmt::mp("interpolation"), pmt_long interp), setting the interpolation to interp.
*/
class BLOCKS_API repeat : virtual public sync_interpolator
{
@@ -46,6 +50,20 @@ namespace gr {
* \param repeat number of times to repeat the input
*/
static sptr make(size_t itemsize, int repeat);
+
+ /*!
+ * \brief Return current interpolation
+ */
+ virtual int interpolation() const = 0;
+
+ /*!
+ * \brief sets the interpolation
+ *
+ * Call this method in a callback to adjust the interpolation at run time.
+ *
+ * \param interp interpolation to be set
+ */
+ virtual void set_interpolation(int interp) = 0;
};
} /* namespace blocks */