GNU Radio 3.7.1 C++ API
|
#include <tag_source_demo.h>
Public Member Functions | |
tag_source_demo (const uint64_t start_secs, const double start_fracs, const double samp_rate, const double idle_duration, const double burst_duration) | |
void | make_time_tag (const uint64_t tag_count) |
void | make_sob_tag (const uint64_t tag_count) |
void | make_eob_tag (const uint64_t tag_count) |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr::block::general_work, only this arranges to call consume_each for you |
tag_source_demo::tag_source_demo | ( | const uint64_t | start_secs, |
const double | start_fracs, | ||
const double | samp_rate, | ||
const double | idle_duration, | ||
const double | burst_duration | ||
) | [inline] |
void tag_source_demo::make_eob_tag | ( | const uint64_t | tag_count | ) | [inline] |
References gr::block::add_item_tag(), gr::basic_block::name(), pmt::PMT_T, and pmt::string_to_symbol().
Referenced by work().
void tag_source_demo::make_sob_tag | ( | const uint64_t | tag_count | ) | [inline] |
References gr::block::add_item_tag(), gr::basic_block::name(), pmt::PMT_T, and pmt::string_to_symbol().
Referenced by work().
void tag_source_demo::make_time_tag | ( | const uint64_t | tag_count | ) | [inline] |
References gr::block::add_item_tag(), pmt::from_double(), pmt::from_uint64(), pmt::make_tuple(), gr::basic_block::name(), and pmt::string_to_symbol().
Referenced by work().
int tag_source_demo::work | ( | int | noutput_items, |
gr_vector_const_void_star & | input_items, | ||
gr_vector_void_star & | output_items | ||
) | [inline, virtual] |
just like gr::block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr::sync_block.
References make_eob_tag(), make_sob_tag(), make_time_tag(), and gr::block::nitems_written().