23 #ifndef INCLUDED_GR_REGENERATE_BB_H
24 #define INCLUDED_GR_REGENERATE_BB_H
59 unsigned int d_max_regen;
60 unsigned int d_regen_count;
65 void set_max_regen(
unsigned int regen);
69 void set_period(
int period);
71 int work (
int noutput_items,
72 gr_vector_const_void_star &input_items,
73 gr_vector_void_star &output_items);
GR_CORE_API gr_regenerate_bb_sptr gr_make_regenerate_bb(int period, unsigned int max_regen=500)
Definition: gr_sync_block.h:27
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
#define GR_CORE_API
Definition: gr_core_api.h:30
Detect the peak of a signal and repeat every period samplesIf a peak is detected, this block outputs ...
Definition: gr_regenerate_bb.h:44
virtual 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 ...