GNU Radio 3.5.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_string_to_symbol(), and pmt::PMT_T.
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_string_to_symbol(), and pmt::PMT_T.
Referenced by work().
void tag_source_demo::make_time_tag | ( | const uint64_t | tag_count | ) | [inline] |
References gr_block::add_item_tag(), gr_basic_block::name(), pmt::pmt_from_double(), pmt::pmt_from_uint64(), pmt::pmt_make_tuple(), and pmt::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().