diff options
author | jcorgan | 2008-09-23 02:17:38 +0000 |
---|---|---|
committer | jcorgan | 2008-09-23 02:17:38 +0000 |
commit | 7bd129934e980a8e9391f327e89ba56dd3ae95f4 (patch) | |
tree | e26969f8d2842bca7f67df7f5ab875bfef206855 /gr-usrp2/src/usrp2_sink_16sc.h | |
parent | 20f913ec2e71888a451250ba841c980638221c65 (diff) | |
download | gnuradio-7bd129934e980a8e9391f327e89ba56dd3ae95f4.tar.gz gnuradio-7bd129934e980a8e9391f327e89ba56dd3ae95f4.tar.bz2 gnuradio-7bd129934e980a8e9391f327e89ba56dd3ae95f4.zip |
Adds usrp2.sink_32fc, usrp2.sink_16sc, refactoring, cleanup
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9641 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-usrp2/src/usrp2_sink_16sc.h')
-rw-r--r-- | gr-usrp2/src/usrp2_sink_16sc.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/gr-usrp2/src/usrp2_sink_16sc.h b/gr-usrp2/src/usrp2_sink_16sc.h new file mode 100644 index 000000000..489d15295 --- /dev/null +++ b/gr-usrp2/src/usrp2_sink_16sc.h @@ -0,0 +1,56 @@ +/* -*- c++ -*- */ +/* + * Copyright 2008 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_USRP2_SINK_16SC_H +#define INCLUDED_USRP2_SINK_16SC_H + +#include <usrp2_sink_base.h> + +class usrp2_sink_16sc; +typedef boost::shared_ptr<usrp2_sink_16sc> usrp2_sink_16sc_sptr; + +usrp2_sink_16sc_sptr +usrp2_make_sink_16sc(const std::string &ifc="eth0", + const std::string &mac="") + throw (std::runtime_error); + +class usrp2_sink_16sc : public usrp2_sink_base +{ +private: + friend usrp2_sink_16sc_sptr + usrp2_make_sink_16sc(const std::string &ifc, + const std::string &mac) + throw (std::runtime_error); + +protected: + usrp2_sink_16sc(const std::string &ifc, const std::string &mac) + throw (std::runtime_error); + +public: + ~usrp2_sink_16sc(); + + int work(int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items); +}; + +#endif /* INCLUDED_USRP2_SINK_16SC_H */ |