GNU Radio 3.6.5 C++ API

digital_probe_density_b Class Reference

#include <digital_probe_density_b.h>

Inheritance diagram for digital_probe_density_b:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 ~digital_probe_density_b ()
double density () const
 Returns the current density value.
void set_alpha (double alpha)
 Set the average filter constant.
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


digital_make_probe_density_b (double alpha)

Detailed Description

This block maintains a running average of the input stream and makes it available as an accessor function. The input stream is type unsigned char.

If you send this block a stream of unpacked bytes, it will tell you what the bit density is.

alphaAverage filter constant

Constructor & Destructor Documentation

digital_probe_density_b::~digital_probe_density_b ( )

Member Function Documentation

double digital_probe_density_b::density ( ) const [inline]

Returns the current density value.

void digital_probe_density_b::set_alpha ( double  alpha)

Set the average filter constant.

int digital_probe_density_b::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.

Friends And Related Function Documentation

DIGITAL_API digital_probe_density_b_sptr digital_make_probe_density_b ( double  alpha) [friend]

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