23#ifndef INCLUDED_GR_THRESHOLD_FF_H
24#define INCLUDED_GR_THRESHOLD_FF_H
45 typedef boost::shared_ptr<threshold_ff>
sptr;
54 static sptr make(
float lo,
float hi,
float initial_state = 0);
56 virtual float lo()
const = 0;
58 virtual float hi()
const = 0;
Output a 1 or zero based on a threshold value.
Definition: threshold_ff.h:42
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
boost::shared_ptr< threshold_ff > sptr
Definition: threshold_ff.h:45
virtual void set_hi(float hi)=0
synchronous 1:1 input to output with history
Definition: sync_block.h:38
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:30
Include this header to use the message passing features.
Definition: basic_block.h:45