aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/device/radioDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'Transceiver52M/device/radioDevice.h')
-rw-r--r--Transceiver52M/device/radioDevice.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/Transceiver52M/device/radioDevice.h b/Transceiver52M/device/radioDevice.h
index a9328ec..806ee8a 100644
--- a/Transceiver52M/device/radioDevice.h
+++ b/Transceiver52M/device/radioDevice.h
@@ -58,6 +58,13 @@ class RadioDevice {
/** Initialize the USRP */
virtual int open(const std::string &args, int ref, bool swap_channels)=0;
+ RadioDevice(size_t tx_sps, size_t rx_sps, InterfaceType type, size_t chans, double offset,
+ const std::vector<std::string>& tx_paths,
+ const std::vector<std::string>& rx_paths):
+ tx_sps(tx_sps), rx_sps(rx_sps), iface(type), chans(chans), lo_offset(offset),
+ tx_paths(tx_paths), rx_paths(rx_paths)
+ { }
+
virtual ~RadioDevice() { }
/** Start the USRP */
@@ -164,8 +171,12 @@ class RadioDevice {
virtual double numberRead()=0;
virtual double numberWritten()=0;
+ protected:
+ size_t tx_sps, rx_sps;
+ InterfaceType iface;
+ size_t chans;
+ double lo_offset;
std::vector<std::string> tx_paths, rx_paths;
- size_t tx_sps;
bool set_antennas() {
unsigned int i;