GNU Radio 3.7.1 C++ API
|
Detect the peak of a signal and repeat every period samples. More...
#include <regenerate_bb.h>
Public Types | |
typedef boost::shared_ptr < regenerate_bb > | sptr |
Public Member Functions | |
virtual void | set_max_regen (unsigned int regen)=0 |
Reset the maximum regeneration count; this will reset the current regen. | |
virtual void | set_period (int period)=0 |
Reset the period of regenerations; this will reset the current regen. | |
virtual unsigned int | max_regen () const =0 |
return the maximum regeneration count. | |
virtual int | period () const =0 |
return the regeneration period. | |
Static Public Member Functions | |
static sptr | make (int period, unsigned int max_regen=500) |
Make a regenerate block. |
Detect the peak of a signal and repeat every period samples.
If a peak is detected, this block outputs a 1 repeated every period samples until reset by detection of another 1 on the input or stopped after max_regen regenerations have occurred.
Note that if max_regen=(-1)/ULONG_MAX then the regeneration will run forever.
static sptr gr::blocks::regenerate_bb::make | ( | int | period, |
unsigned int | max_regen = 500 |
||
) | [static] |
Make a regenerate block.
period | The number of samples between regenerations |
max_regen | The maximum number of regenerations to perform; if set to ULONG_MAX, it will regenerate continuously. |
virtual unsigned int gr::blocks::regenerate_bb::max_regen | ( | ) | const [pure virtual] |
return the maximum regeneration count.
virtual int gr::blocks::regenerate_bb::period | ( | ) | const [pure virtual] |
return the regeneration period.
virtual void gr::blocks::regenerate_bb::set_max_regen | ( | unsigned int | regen | ) | [pure virtual] |
Reset the maximum regeneration count; this will reset the current regen.
virtual void gr::blocks::regenerate_bb::set_period | ( | int | period | ) | [pure virtual] |
Reset the period of regenerations; this will reset the current regen.