GNU Radio 3.6.5 C++ API

gr::blocks::peak_detector2_fb_impl Class Reference

#include <peak_detector2_fb_impl.h>

Inheritance diagram for gr::blocks::peak_detector2_fb_impl:
gr::blocks::peak_detector2_fb gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 peak_detector2_fb_impl (float threshold_factor_rise, int look_ahead, float alpha)
 ~peak_detector2_fb_impl ()
void set_threshold_factor_rise (float thr)
 Set the threshold factor value for the rise time.
void set_look_ahead (int look)
 Set the look-ahead factor.
void set_alpha (int alpha)
 Set the running average alpha.
float threshold_factor_rise ()
 Get the threshold factor value for the rise time.
int look_ahead ()
 Get the look-ahead factor value.
float alpha ()
 Get the alpha value of the running average.
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

Constructor & Destructor Documentation

gr::blocks::peak_detector2_fb_impl::peak_detector2_fb_impl ( float  threshold_factor_rise,
int  look_ahead,
float  alpha 
)
gr::blocks::peak_detector2_fb_impl::~peak_detector2_fb_impl ( )

Member Function Documentation

float gr::blocks::peak_detector2_fb_impl::alpha ( ) [inline, virtual]

Get the alpha value of the running average.

Returns:
alpha

Implements gr::blocks::peak_detector2_fb.

Referenced by set_alpha().

int gr::blocks::peak_detector2_fb_impl::look_ahead ( ) [inline, virtual]

Get the look-ahead factor value.

Returns:
look-ahead factor

Implements gr::blocks::peak_detector2_fb.

void gr::blocks::peak_detector2_fb_impl::set_alpha ( int  alpha) [inline, virtual]

Set the running average alpha.

Parameters:
alphanew alpha for running average

Implements gr::blocks::peak_detector2_fb.

References alpha().

void gr::blocks::peak_detector2_fb_impl::set_look_ahead ( int  look) [inline, virtual]

Set the look-ahead factor.

Parameters:
looknew look-ahead factor

Implements gr::blocks::peak_detector2_fb.

void gr::blocks::peak_detector2_fb_impl::set_threshold_factor_rise ( float  thr) [inline, virtual]

Set the threshold factor value for the rise time.

Parameters:
thrnew threshold factor

Implements gr::blocks::peak_detector2_fb.

float gr::blocks::peak_detector2_fb_impl::threshold_factor_rise ( ) [inline, virtual]

Get the threshold factor value for the rise time.

Returns:
threshold factor

Implements gr::blocks::peak_detector2_fb.

int gr::blocks::peak_detector2_fb_impl::work ( int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items 
) [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.


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