GNU Radio 3.7.1 C++ API
|
Send tags at defined interval. More...
#include <tags_strobe.h>
Public Types | |
typedef boost::shared_ptr < tags_strobe > | sptr |
Public Member Functions | |
virtual void | set_value (pmt::pmt_t value)=0 |
virtual pmt::pmt_t | value () const =0 |
virtual void | set_nsamps (uint64_t nsamps)=0 |
virtual uint64_t | nsamps () const =0 |
Static Public Member Functions | |
static sptr | make (size_t sizeof_stream_item, pmt::pmt_t value, uint64_t nsamps) |
Send tags at defined interval.
Sends a tag with key 'strobe' and a user-defined value (as a PMT) every nsamps
number of samples. Useful for testing/debugging the tags system.
Because tags are sent with a data stream, this is a source block that acts identical to a null_source block.
static sptr gr::blocks::tags_strobe::make | ( | size_t | sizeof_stream_item, |
pmt::pmt_t | value, | ||
uint64_t | nsamps | ||
) | [static] |
Make a tags stobe block to send tags with value value
every nsamps
number of samples.
sizeof_stream_item | size of the stream items in bytes. |
value | The value of the tags to send, as a PMT. |
nsamps | the number of samples between each tag. |
virtual uint64_t gr::blocks::tags_strobe::nsamps | ( | ) | const [pure virtual] |
Get the number of samples between the tag strobe.
virtual void gr::blocks::tags_strobe::set_nsamps | ( | uint64_t | nsamps | ) | [pure virtual] |
Reset the sending interval.
nsamps | the number of samples between each tag |
virtual void gr::blocks::tags_strobe::set_value | ( | pmt::pmt_t | value | ) | [pure virtual] |
Reset the value of the tags being sent.
value | The value of the tags to send as a PMT. |
virtual pmt::pmt_t gr::blocks::tags_strobe::value | ( | ) | const [pure virtual] |
Get the value of the tags being sent.