#include <pwr_squelch_ff_impl.h>
|
typedef boost::shared_ptr
< pwr_squelch_ff > | sptr |
|
static sptr | make (double db, double alpha=0.0001, int ramp=0, bool gate=false) |
| Make power-based squelch block. More...
|
|
enum | vcolor { WHITE,
GREY,
BLACK
} |
|
std::vector< long > | d_max_output_buffer |
|
std::vector< long > | d_min_output_buffer |
|
gruel::mutex | d_setlock |
|
enum | { WORK_CALLED_PRODUCE = -2,
WORK_DONE = -1
} |
| Magic return values from general_work. More...
|
|
enum | tag_propagation_policy_t { TPP_DONT = 0,
TPP_ALL_TO_ALL = 1,
TPP_ONE_TO_ONE = 2
} |
|
| squelch_base_ff_impl (const char *name, int ramp, bool gate) |
|
| ~squelch_base_ff_impl () |
|
int | ramp () const |
|
void | set_ramp (int ramp) |
|
bool | gate () const |
|
void | set_gate (bool gate) |
|
bool | unmuted () const |
|
int | general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| compute output items from input items More...
|
|
gr::analog::pwr_squelch_ff_impl::pwr_squelch_ff_impl |
( |
double |
db, |
|
|
double |
alpha = 0.0001 , |
|
|
int |
ramp = 0 , |
|
|
bool |
gate = false |
|
) |
| |
gr::analog::pwr_squelch_ff_impl::~pwr_squelch_ff_impl |
( |
| ) |
|
bool gr::analog::pwr_squelch_ff_impl::gate |
( |
| ) |
const |
|
inlinevirtual |
compute output items from input items
- Parameters
-
noutput_items | number of output items to write on each output stream |
ninput_items | number of input items available on each input stream |
input_items | vector of pointers to the input items, one entry per input stream |
output_items | vector of pointers to the output items, one entry per output stream |
- Returns
- number of items actually written to each output stream, or -1 on EOF. It is OK to return a value less than noutput_items. -1 <= return value <= noutput_items
general_work must call consume or consume_each to indicate how many items were consumed on each input stream.
Reimplemented from gr_block.
References gr::analog::squelch_base_ff_impl::general_work().
virtual bool gr::analog::pwr_squelch_ff_impl::mute |
( |
| ) |
const |
|
inlineprotectedvirtual |
int gr::analog::pwr_squelch_ff_impl::ramp |
( |
| ) |
const |
|
inlinevirtual |
void gr::analog::pwr_squelch_ff_impl::set_alpha |
( |
double |
alpha | ) |
|
|
inlinevirtual |
void gr::analog::pwr_squelch_ff_impl::set_gate |
( |
bool |
gate | ) |
|
|
inlinevirtual |
void gr::analog::pwr_squelch_ff_impl::set_ramp |
( |
int |
ramp | ) |
|
|
inlinevirtual |
void gr::analog::pwr_squelch_ff_impl::set_threshold |
( |
double |
db | ) |
|
|
inlinevirtual |
std::vector<float> gr::analog::pwr_squelch_ff_impl::squelch_range |
( |
| ) |
const |
|
virtual |
double gr::analog::pwr_squelch_ff_impl::threshold |
( |
| ) |
const |
|
inlinevirtual |
bool gr::analog::pwr_squelch_ff_impl::unmuted |
( |
| ) |
const |
|
inlinevirtual |
virtual void gr::analog::pwr_squelch_ff_impl::update_state |
( |
const float & |
in | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following file: