22 #ifndef INCLUDED_HIQSDR_SOURCE_H 23 #define INCLUDED_HIQSDR_SOURCE_H 26 #include <gnuradio/sync_block.h> 28 #define RX_CLOCK 122880000LL 37 #define HIQ_PREAMP 0x10 54 typedef boost::shared_ptr<source>
sptr;
64 static sptr make(
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=1472,
bool eof=
true,
bool wait=
true,
int rxfreq=7000000,
int txfreq=7000000,
int rate=48000,
bool ant=0,
int presel=0,
int att=0,
int txLevel=255,
bool ptt=0,
int txRate=48000,
int clockCorr=0,std::vector<gr_complex> rxFirTaps=std::vector<gr_complex>() , std::vector<gr_complex> txFirTaps=std::vector<gr_complex>(),
bool dpd=0);
65 virtual int payload_size()=0;
66 virtual int get_port()=0;
67 virtual void setRXFreq(
int f)=0;
68 virtual void setTXFreq(
int f)=0;
69 virtual void setSampleRate(
int rate)=0;
70 virtual void setAnt(
bool)=0;
71 virtual void setPresel(
int)=0;
72 virtual void setAttenuator(
int)=0;
73 virtual void setTXLevel(
int l)=0;
74 virtual void setPtt(
bool on)=0;
75 virtual void setTXRate(
int)=0;
76 virtual void setCWMode(
bool)=0;
77 virtual void setFilter(std::vector<gr_complex> coef,
int dest=0)=0;
78 virtual void setClockCorr(
int diff)=0;
79 virtual void setDPD(
bool)=0;
boost::shared_ptr< source > sptr
Definition: source.h:54
<+description of block+>
Definition: source.h:51
#define HIQSDR_API
Definition: api.h:30