23 #ifndef INCLUDED_GR_THRESHOLD_FF_IMPL_H
24 #define INCLUDED_GR_THRESHOLD_FF_IMPL_H
39 float initial_state=0);
42 float lo()
const {
return d_lo; }
44 float hi()
const {
return d_hi; }
49 int work(
int noutput_items,
50 gr_vector_const_void_star &input_items,
51 gr_vector_void_star &output_items);
float lo() const
Definition: threshold_ff_impl.h:42
Output a 1 or zero based on a threshold value.Test the incoming signal against a threshold. If the signal excedes the hi value, it will output a 1 until the signal falls below the lo value.
Definition: threshold_ff.h:40
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 ...
float last_state() const
Definition: threshold_ff_impl.h:46
threshold_ff_impl(float lo, float hi, float initial_state=0)
Definition: threshold_ff_impl.h:31
void set_hi(float hi)
Definition: threshold_ff_impl.h:45
void set_last_state(float last_state)
Definition: threshold_ff_impl.h:47
void set_lo(float lo)
Definition: threshold_ff_impl.h:43
float hi() const
Definition: threshold_ff_impl.h:44