GNU Radio 3.6.5 C++ API
|
Send message at defined interval. More...
#include <message_strobe.h>
Public Types | |
typedef boost::shared_ptr < message_strobe > | sptr |
Public Member Functions | |
virtual void | set_msg (pmt::pmt_t msg)=0 |
virtual pmt::pmt_t | msg () const =0 |
virtual void | set_period (float period_ms)=0 |
virtual float | period () const =0 |
Static Public Member Functions | |
static sptr | make (pmt::pmt_t msg, float period_ms) |
Send message at defined interval.
Takes a PMT message and sends it out every period_ms
milliseconds. Useful for testing/debugging the message system.
static sptr gr::blocks::message_strobe::make | ( | pmt::pmt_t | msg, |
float | period_ms | ||
) | [static] |
Make a message stobe block to send message msg
every period_ms
milliseconds.
msg | The message to send as a PMT. |
period_ms | the time period in milliseconds in which to send msg . |
virtual pmt::pmt_t gr::blocks::message_strobe::msg | ( | ) | const [pure virtual] |
Get the value of the message being sent.
Implemented in gr::blocks::message_strobe_impl.
virtual float gr::blocks::message_strobe::period | ( | ) | const [pure virtual] |
Get the time interval of the strobe.
Implemented in gr::blocks::message_strobe_impl.
virtual void gr::blocks::message_strobe::set_msg | ( | pmt::pmt_t | msg | ) | [pure virtual] |
Reset the message being sent.
msg | The message to send as a PMT. |
Implemented in gr::blocks::message_strobe_impl.
virtual void gr::blocks::message_strobe::set_period | ( | float | period_ms | ) | [pure virtual] |
Reset the sending interval.
period_ms | the time period in milliseconds. |
Implemented in gr::blocks::message_strobe_impl.