22 #ifndef INCLUDED_HIQSDRTRX_SOURCE_IMPL_H 23 #define INCLUDED_HIQSDRTRX_SOURCE_IMPL_H 29 typedef std::complex<double>
dcplx;
40 #define DPD_SYNC_SEARCH_CORR 1 41 #define DPD_SYNC_SEARCH_FINE 2 44 #define DPD_READY_OFF 5 46 #define TEST_SIG_NONE 0 47 #define TEST_SIG_TONE 1 48 #define TEST_SIG_2TONE 2 49 #define TEST_SIG_FM_NOICE 3 64 unsigned char *d_temp_buff;
67 gr_complex outBuf[8192];
71 unsigned char ctlBuf[22];
72 unsigned char firBuf[80];
83 void closeSocket(
int socket);
84 int openSocket (
const char *host,
unsigned short port);
90 void calcDPD(std::vector<dcplx> rxData, std::vector<dcplx> txData);
91 std::vector<dcplx> rxData;
92 std::vector<dcplx> txData;
93 std::vector<dcplx> rxDelay;
94 std::vector<dcplx> fracDelay(std::vector<dcplx> &in,
int fDelay);
96 int rxDel,rxDel1,rxDel2;
102 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);
108 gr_vector_const_void_star &input_items,
109 gr_vector_void_star &output_items
124 void setFilter(std::vector<gr_complex> coef,
int dest=0);
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
<+description of block+>
Definition: source.h:51
void setClockCorr(int diff)
void setFilter(std::vector< gr_complex > coef, int dest=0)
int payload_size()
Definition: source_impl.h:112
std::complex< double > dcplx
Definition: source_impl.h:29
void setSampleRate(int rate)
#define NLUT
Definition: source_impl.h:27
Definition: source_impl.h:55
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)