diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-08-09 20:48:18 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-08-09 20:48:18 -0400 |
commit | 45502b80d28e2051f5f7780e0c386147f0976798 (patch) | |
tree | 2bd7f2b14c074dc354948f514e0e9af679bd09e2 /gr-digital/include/digital/binary_slicer_fb.h | |
parent | 38069c9ac14b44597ee053486ca00838c758a47c (diff) |
digital: converted binary_slicer_fb to new style.
Also removed bytes_to_syms. This had been deprecated for a while.
Diffstat (limited to 'gr-digital/include/digital/binary_slicer_fb.h')
-rw-r--r-- | gr-digital/include/digital/binary_slicer_fb.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gr-digital/include/digital/binary_slicer_fb.h b/gr-digital/include/digital/binary_slicer_fb.h new file mode 100644 index 0000000000..7a3a1e9a0a --- /dev/null +++ b/gr-digital/include/digital/binary_slicer_fb.h @@ -0,0 +1,55 @@ +/* -*- c++ -*- */ +/* + * Copyright 2006,2011,2012 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +#ifndef INCLUDED_DIGITAL_BINARY_SLICER_FB_H +#define INCLUDED_DIGITAL_BINARY_SLICER_FB_H + +#include <digital/api.h> +#include <gr_sync_block.h> + +namespace gr { + namespace digital { + + /*! + * \brief slice float binary symbol outputting 1 bit output + * \ingroup converter_blk + * \ingroup digital + * + * x < 0 --> 0 + * x >= 0 --> 1 + */ + class DIGITAL_API binary_slicer_fb : virtual public gr_sync_block + { + public: + // gr::digital::binary_slicer_fb::sptr + typedef boost::shared_ptr<binary_slicer_fb> sptr; + + /*! + * \brief Make binary symbol slicer block. + */ + sptr make(); + }; + + } /* namespace digital */ +} /* namespace gr */ + +#endif /* INCLUDED_DIGITAL_BINARY_SLICER_FB_H */ |