GNU Radio's CYBERRADIO Package
NDR651_sync_sink.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef INCLUDED_CYBERRADIO_NDR651_SYNC_SINK_H
5 #define INCLUDED_CYBERRADIO_NDR651_SYNC_SINK_H
6 
7 #include <CyberRadio/api.h>
8 //#include <gnuradio/sync_block.h>
9 #include <gnuradio/sync_decimator.h>
10 
11 namespace gr {
12  namespace CyberRadio {
13 
14  #define INPUT_ARGUMENTS_TYPE const char* radioHostname, int num_inputs, int debug, int groupIndex, int channelRate, int tenGbeIndex, \
15  double centerFreqMHz1, int txChannel1, double rf_attenuationDB1, const char* eth_index1, long upd_port1, double frequencyOffsetMHz1, double digital_attenuationDB1, float mult1, int ducChannel1, \
16  double centerFreqMHz2, int txChannel2, double rf_attenuationDB2, const char* eth_index2, long upd_port2, double frequencyOffsetMHz2, double digital_attenuationDB2, float mult2, int ducChannel2
17 
18  #define INPUT_ARGUMENTS_NO_TYPE radioHostname, num_inputs, debug, groupIndex, channelRate, tenGbeIndex, \
19  centerFreqMHz1, txChannel1, rf_attenuationDB1, eth_index1, upd_port1, frequencyOffsetMHz1, digital_attenuationDB1, mult1, ducChannel1, \
20  centerFreqMHz2, txChannel2, rf_attenuationDB2, eth_index2, upd_port2, frequencyOffsetMHz2, digital_attenuationDB2, mult2, ducChannel2
21 
22  class CYBERRADIO_API NDR651_sync_sink : virtual public sync_decimator
23  {
24  public:
25  typedef boost::shared_ptr<NDR651_sync_sink> sptr;
26  static sptr make(INPUT_ARGUMENTS_TYPE);
27  virtual void mult_callback(float mult1, float mult2) = 0;
28  virtual bool setDUCFreq_callback(double frequencyOffsetMHz1, double frequencyOffsetMHz2)= 0;
29  virtual bool setDUCAtten_callback(double digital_attenuationDB1, double digital_attenuationDB2)= 0;
30  virtual bool setTxFreq_callback(double centerFreqMHz1, double centerFreqMHz2)= 0;
31 virtual bool setTxAtten_callback(double rf_attenuationDB1, double rf_attenuationDB2)= 0;
32  virtual bool setDUCParameters(int ducChannel1, int ducChannel2, int channelRate, int txChannel1, int txChannel2)= 0;
33  virtual bool setEthernetInterface(unsigned int tenGbeIndex, const char *eth_index1, const char *eth_index2, long upd_port1, long upd_port2)= 0;
34 
35 //bool doCallBacks(INPUT_ARGUMENTS_TYPE);
36  };
37 
38  } // namespace CyberRadio
39 } // namespace gr
40 
41 #endif /* INCLUDED_CYBERRADIO_NDR651_SYNC_SINK_H */
42 
#define CYBERRADIO_API
Definition: api.h:30
Provides GNU Radio blocks.
Definition: NDR651_duc_sink_mk2.h:21
#define INPUT_ARGUMENTS_TYPE
Definition: NDR651_sync_sink.h:14
boost::shared_ptr< NDR651_sync_sink > sptr
Definition: NDR651_sync_sink.h:25
Definition: NDR651_sync_sink.h:22