GNU Radio 3.7.1 C++ API
gr::blocks::message_strobe Class Reference

Send message at defined interval. More...

#include <message_strobe.h>

Inheritance diagram for gr::blocks::message_strobe:

List of all members.

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)

Detailed Description

Send message at defined interval.

Takes a PMT message and sends it out every period_ms milliseconds. Useful for testing/debugging the message system.


Member Typedef Documentation


Member Function Documentation

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.

Parameters:
msgThe message to send as a PMT.
period_msthe 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.

virtual float gr::blocks::message_strobe::period ( ) const [pure virtual]

Get the time interval of the strobe.

virtual void gr::blocks::message_strobe::set_msg ( pmt::pmt_t  msg) [pure virtual]

Reset the message being sent.

Parameters:
msgThe message to send as a PMT.
virtual void gr::blocks::message_strobe::set_period ( float  period_ms) [pure virtual]

Reset the sending interval.

Parameters:
period_msthe time period in milliseconds.

The documentation for this class was generated from the following file: