summaryrefslogtreecommitdiff
path: root/gr-digital/include/gnuradio/digital/binary_slicer_fb.h
blob: 0e56e1ffb406ae031edcd6b6f1de44e1a23e77c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* -*- c++ -*- */
/*
 * Copyright 2006,2011,2012 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

#ifndef INCLUDED_DIGITAL_BINARY_SLICER_FB_H
#define INCLUDED_DIGITAL_BINARY_SLICER_FB_H

#include <gnuradio/digital/api.h>
#include <gnuradio/sync_block.h>

namespace gr {
namespace digital {

/*!
 * \brief Slice float binary symbol producing 1 bit output
 * \ingroup symbol_coding_blk
 *
 * \details
 * \li input[0][n] < 0 --> 0
 * \li input[0][n] >= 0 --> 1
 */
class DIGITAL_API binary_slicer_fb : virtual public sync_block
{
public:
    // gr::digital::binary_slicer_fb::sptr
    typedef boost::shared_ptr<binary_slicer_fb> sptr;

    /*!
     * \brief Make binary symbol slicer block.
     */
    static sptr make();
};

} /* namespace digital */
} /* namespace gr */

#endif /* INCLUDED_DIGITAL_BINARY_SLICER_FB_H */