21 #ifndef INCLUDED_HIQSDR_SOURCE_IMPL_H 22 #define INCLUDED_HIQSDR_SOURCE_IMPL_H 28 typedef std::complex<double>
dcplx;
39 #define DPD_SYNC_SEARCH_CORR 1 40 #define DPD_SYNC_SEARCH_FINE 2 43 #define DPD_READY_OFF 5 45 #define TEST_SIG_NONE 0 46 #define TEST_SIG_TONE 1 47 #define TEST_SIG_2TONE 2 48 #define TEST_SIG_FM_NOICE 3 62 unsigned char *d_temp_buff;
65 gr_complex outBuf[8192];
69 unsigned char ctlBuf[22];
70 unsigned char firBuf[80];
81 void closeSocket(
int socket);
82 int openSocket (
const char *host,
unsigned short port);
88 void calcDPD(std::vector<dcplx> rxData, std::vector<dcplx> txData);
89 std::vector<dcplx> rxData;
90 std::vector<dcplx> txData;
91 std::vector<dcplx> rxDelay;
92 std::vector<dcplx> fracDelay(std::vector<dcplx> &in,
int fDelay);
94 int rxDel,rxDel1,rxDel2;
99 source_impl(
size_t itemsize,
const char *host,
unsigned short port,
unsigned short c_port,
unsigned short rx_fir_port,
100 unsigned short tx_fir_port,
int payload_size,
bool eof,
bool wait,
int rxfreq,
int txfreq,
int rate,
bool ant,
101 int presel,
int att,
int txLevel,
bool ptt,
int txRate,
int clockCorr,
102 std::vector<gr_complex> rxFirTaps, std::vector<gr_complex> txFirTaps,
bool dpd);
106 int work(
int noutput_items,
107 gr_vector_const_void_star &input_items,
108 gr_vector_void_star &output_items);
123 void setFilter(std::vector<gr_complex> coef,
int dest=0);
void setFilter(std::vector< gr_complex > coef, int dest=0)
Definition: source_impl.h:54
int payload_size()
Definition: source_impl.h:111
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void setClockCorr(int diff)
void setSampleRate(int rate)
std::complex< double > dcplx
Definition: source_impl.h:28
<+description of block+>
Definition: source.h:51
#define NLUT
Definition: source_impl.h:26
source_impl(size_t itemsize, const char *host, unsigned short port, unsigned short c_port, unsigned short rx_fir_port, unsigned short tx_fir_port, int payload_size, bool eof, bool wait, int rxfreq, int txfreq, int rate, bool ant, int presel, int att, int txLevel, bool ptt, int txRate, int clockCorr, std::vector< gr_complex > rxFirTaps, std::vector< gr_complex > txFirTaps, bool dpd)