23 #ifndef INCLUDED_GR_REGENERATE_BB_H
24 #define INCLUDED_GR_REGENERATE_BB_IMPL_H
36 unsigned int d_max_regen;
37 unsigned int d_regen_count;
46 unsigned int max_regen()
const {
return d_max_regen; };
47 int period()
const {
return d_period; };
49 int work(
int noutput_items,
50 gr_vector_const_void_star &input_items,
51 gr_vector_void_star &output_items);
void set_period(int period)
Reset the period of regenerations; this will reset the current regen.
regenerate_bb_impl(int period, unsigned int max_regen=500)
void set_max_regen(unsigned int regen)
Reset the maximum regeneration count; this will reset the current regen.
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 ...
Definition: regenerate_bb_impl.h:31
unsigned int max_regen() const
return the maximum regeneration count.
Definition: regenerate_bb_impl.h:46
int period() const
return the regeneration period.
Definition: regenerate_bb_impl.h:47
Detect the peak of a signal and repeat every period samplesIf a peak is detected, this block outputs ...
Definition: regenerate_bb.h:43