summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/message_strobe_random.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/message_strobe_random.h')
-rw-r--r--gr-blocks/include/gnuradio/blocks/message_strobe_random.h162
1 files changed, 82 insertions, 80 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/message_strobe_random.h b/gr-blocks/include/gnuradio/blocks/message_strobe_random.h
index 8f5a20e1b3..e481d670e0 100644
--- a/gr-blocks/include/gnuradio/blocks/message_strobe_random.h
+++ b/gr-blocks/include/gnuradio/blocks/message_strobe_random.h
@@ -27,92 +27,94 @@
#include <gnuradio/block.h>
namespace gr {
- namespace blocks {
+namespace blocks {
- /*
- * strobing models
- */
- typedef enum {
- STROBE_POISSON=1,
- STROBE_GAUSSIAN=2,
- STROBE_UNIFORM=3
- } message_strobe_random_distribution_t;
+/*
+ * strobing models
+ */
+typedef enum {
+ STROBE_POISSON = 1,
+ STROBE_GAUSSIAN = 2,
+ STROBE_UNIFORM = 3
+} message_strobe_random_distribution_t;
+
+/*!
+ * \brief Send message at defined interval
+ * \ingroup message_tools_blk
+ *
+ * \details
+
+ * Takes a PMT message and sends it out every at random
+ * intervals. The interval is basedon a random distribution, \p
+ * dist, with specified mean (\p mean_ms) and variance (\p
+ * std_ms). Useful for testing/debugging the message system.
+ */
+class BLOCKS_API message_strobe_random : virtual public block
+{
+public:
+ // gr::blocks::message_strobe_random::sptr
+ typedef boost::shared_ptr<message_strobe_random> sptr;
/*!
- * \brief Send message at defined interval
- * \ingroup message_tools_blk
+ * Make a message stobe block to sends message \p msg at random
+ * intervals defined by the distribution \p dist with mean \p
+ * mean_ms and standard deviation \p std_ms.
*
- * \details
+ * \param msg The message to send as a PMT.
+ * \param dist The random distribution from which to draw events.
+ * \param mean_ms The mean of the distribution.
+ * \param std_ms The standard deviation of the distribution.
+ */
+ static sptr make(pmt::pmt_t msg,
+ message_strobe_random_distribution_t dist,
+ float mean_ms,
+ float std_ms);
- * Takes a PMT message and sends it out every at random
- * intervals. The interval is basedon a random distribution, \p
- * dist, with specified mean (\p mean_ms) and variance (\p
- * std_ms). Useful for testing/debugging the message system.
+ /*!
+ * Reset the message being sent.
+ * \param msg The message to send as a PMT.
*/
- class BLOCKS_API message_strobe_random : virtual public block
- {
- public:
- // gr::blocks::message_strobe_random::sptr
- typedef boost::shared_ptr<message_strobe_random> sptr;
-
- /*!
- * Make a message stobe block to sends message \p msg at random
- * intervals defined by the distribution \p dist with mean \p
- * mean_ms and standard deviation \p std_ms.
- *
- * \param msg The message to send as a PMT.
- * \param dist The random distribution from which to draw events.
- * \param mean_ms The mean of the distribution.
- * \param std_ms The standard deviation of the distribution.
- */
- static sptr make(pmt::pmt_t msg, message_strobe_random_distribution_t dist, float mean_ms, float std_ms);
-
- /*!
- * Reset the message being sent.
- * \param msg The message to send as a PMT.
- */
- virtual void set_msg(pmt::pmt_t msg) = 0;
-
- /*!
- * Get the value of the message being sent.
- */
- virtual pmt::pmt_t msg() const = 0;
-
- /*!
- * \param dist new distribution.
- */
- virtual void set_dist(message_strobe_random_distribution_t dist) = 0;
-
- /*!
- * get the current distribution.
- */
- virtual message_strobe_random_distribution_t dist() const = 0;
-
- /*!
- * Reset the sending interval.
- * \param mean delay in milliseconds.
- */
- virtual void set_mean(float mean) = 0;
-
- /*!
- * Get the time interval of the strobe_random.
- */
- virtual float mean() const = 0;
-
- /*!
- * Reset the sending interval.
- * \param std delay in milliseconds.
- */
- virtual void set_std(float std) = 0;
-
- /*!
- * Get the std of strobe_random.
- */
- virtual float std() const = 0;
-
- };
-
- } /* namespace blocks */
+ virtual void set_msg(pmt::pmt_t msg) = 0;
+
+ /*!
+ * Get the value of the message being sent.
+ */
+ virtual pmt::pmt_t msg() const = 0;
+
+ /*!
+ * \param dist new distribution.
+ */
+ virtual void set_dist(message_strobe_random_distribution_t dist) = 0;
+
+ /*!
+ * get the current distribution.
+ */
+ virtual message_strobe_random_distribution_t dist() const = 0;
+
+ /*!
+ * Reset the sending interval.
+ * \param mean delay in milliseconds.
+ */
+ virtual void set_mean(float mean) = 0;
+
+ /*!
+ * Get the time interval of the strobe_random.
+ */
+ virtual float mean() const = 0;
+
+ /*!
+ * Reset the sending interval.
+ * \param std delay in milliseconds.
+ */
+ virtual void set_std(float std) = 0;
+
+ /*!
+ * Get the std of strobe_random.
+ */
+ virtual float std() const = 0;
+};
+
+} /* namespace blocks */
} /* namespace gr */
#endif /* INCLUDED_GR_MESSAGE_STROBE_H */