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

Send tags at defined interval. More...

#include <tags_strobe.h>

Inheritance diagram for gr::blocks::tags_strobe:

List of all members.

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)

Detailed Description

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.


Member Typedef Documentation


Member Function Documentation

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.

Parameters:
sizeof_stream_itemsize of the stream items in bytes.
valueThe value of the tags to send, as a PMT.
nsampsthe 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.

Parameters:
nsampsthe 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.

Parameters:
valueThe 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.


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