11 #ifndef INCLUDED_GR_THRESHOLD_FF_H
12 #define INCLUDED_GR_THRESHOLD_FF_H
33 typedef std::shared_ptr<threshold_ff>
sptr;
42 static sptr make(
float lo,
float hi,
float initial_state = 0);
44 virtual float lo()
const = 0;
46 virtual float hi()
const = 0;
Output a 1 or zero based on a threshold value.
Definition: threshold_ff.h:30
std::shared_ptr< threshold_ff > sptr
Definition: threshold_ff.h:33
virtual void set_last_state(float last_state)=0
virtual float hi() const =0
virtual float lo() const =0
static sptr make(float lo, float hi, float initial_state=0)
virtual float last_state() const =0
virtual void set_lo(float lo)=0
virtual void set_hi(float hi)=0
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29