GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
rail_ff.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,2012 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_ANALOG_RAIL_FF_H
12#define INCLUDED_ANALOG_RAIL_FF_H
13
14#include <gnuradio/analog/api.h>
15#include <gnuradio/sync_block.h>
16
17namespace gr {
18namespace analog {
19
20/*!
21 * \brief clips input values to min, max
22 * \ingroup level_controllers_blk
23 */
24class ANALOG_API rail_ff : virtual public sync_block
25{
26public:
27 // gr::analog::rail_ff::sptr
28 typedef std::shared_ptr<rail_ff> sptr;
29
30 /*!
31 * Build a rail block.
32 *
33 * \param lo the low value to clip to.
34 * \param hi the high value to clip to.
35 */
36 static sptr make(float lo, float hi);
37
38 virtual float lo() const = 0;
39 virtual float hi() const = 0;
40
41 virtual void set_lo(float lo) = 0;
42 virtual void set_hi(float hi) = 0;
43};
44
45} /* namespace analog */
46} /* namespace gr */
47
48#endif /* INCLUDED_ANALOG_RAIL_FF_H */
clips input values to min, max
Definition: rail_ff.h:25
virtual void set_hi(float hi)=0
std::shared_ptr< rail_ff > sptr
Definition: rail_ff.h:28
static sptr make(float lo, float hi)
virtual float hi() const =0
virtual float lo() const =0
virtual void set_lo(float lo)=0
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29