GNU Radio 3.6.5 C++ API

gr::blocks::regenerate_bb Class Reference

Detect the peak of a signal and repeat every period samples. More...

#include <regenerate_bb.h>

Inheritance diagram for gr::blocks::regenerate_bb:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::blocks::regenerate_bb_impl

List of all members.

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.

Detailed Description

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.


Member Typedef Documentation


Member Function Documentation

static sptr gr::blocks::regenerate_bb::make ( int  period,
unsigned int  max_regen = 500 
) [static]

Make a regenerate block.

Parameters:
periodThe number of samples between regenerations
max_regenThe 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.

Implemented in gr::blocks::regenerate_bb_impl.

virtual int gr::blocks::regenerate_bb::period ( ) const [pure virtual]

return the regeneration period.

Implemented in gr::blocks::regenerate_bb_impl.

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.

Implemented in gr::blocks::regenerate_bb_impl.

virtual void gr::blocks::regenerate_bb::set_period ( int  period) [pure virtual]

Reset the period of regenerations; this will reset the current regen.

Implemented in gr::blocks::regenerate_bb_impl.


The documentation for this class was generated from the following file: