GNU Radio's CYBERRADIO Package
ndr651_sink.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2017 <+YOU OR YOUR COMPANY+>.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 
22 #ifndef INCLUDED_CYBERRADIO_NDR651_SINK_H
23 #define INCLUDED_CYBERRADIO_NDR651_SINK_H
24 
25 #include <CyberRadio/api.h>
26 #include <gnuradio/sync_block.h>
27 
28 namespace gr
29 {
30  namespace CyberRadio
31  {
32 
33  /*!
34  * \brief <+description of block+>
35  * \ingroup CyberRadio
36  *
37  */
38  class CYBERRADIO_API ndr651_sink : virtual public gr::sync_block
39  {
40  public:
41  typedef boost::shared_ptr<ndr651_sink> sptr;
42 
43  /*!
44  * \brief Return a shared_ptr to a new instance of CyberRadio::ndr651_sink.
45  *
46  * To avoid accidental use of raw pointers, CyberRadio::ndr651_sink's
47  * constructor is in a private implementation
48  * class. CyberRadio::ndr651_sink::make is the public interface for
49  * creating new instances.
50  */
51  static sptr make(std::string hostname, unsigned int vlen, bool debug);
52 
53  virtual bool setDUCParameters(unsigned int ducChannel, unsigned int ducRateIndex, unsigned int txChannel) = 0;
54  virtual bool setEthernetInterface(unsigned int tenGbeIndex, const std::string &txInterfaceName, unsigned short port) = 0;
55  virtual bool setDUCRateIndex(unsigned int ducRateIndex) = 0;
56  virtual bool setDUCFreq(double ducFreq) = 0;
57  virtual bool setDUCAtten(double ducAtten) = 0;
58  virtual bool setTxFreq(double txFreq) = 0;
59  virtual bool setTxAtten(double txAttenuation) = 0;
60  virtual bool setTxInversion(bool txInversion) = 0;
61  virtual bool pauseDUC(bool paused = true) = 0;
62 
63  bool start() = 0;
64  bool stop() = 0;
65  };
66 
67  } // namespace CyberRadio
68 
69 } // namespace gr
70 
71 #endif /* INCLUDED_CYBERRADIO_NDR651_SINK_H */
72 
#define CYBERRADIO_API
Definition: api.h:30
Provides GNU Radio blocks.
Definition: NDR651_duc_sink_mk2.h:21
boost::shared_ptr< ndr651_sink > sptr
Definition: ndr651_sink.h:41
<+description of block+>
Definition: ndr651_sink.h:38