summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/uhd_multi_usrp_source.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/uhd_multi_usrp_source.h')
-rw-r--r--gr-uhd/lib/uhd_multi_usrp_source.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/gr-uhd/lib/uhd_multi_usrp_source.h b/gr-uhd/lib/uhd_multi_usrp_source.h
index b3cbdae1f..9cbec52aa 100644
--- a/gr-uhd/lib/uhd_multi_usrp_source.h
+++ b/gr-uhd/lib/uhd_multi_usrp_source.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2010 Free Software Foundation, Inc.
+ * Copyright 2010-2011 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -22,18 +22,19 @@
#ifndef INCLUDED_UHD_MULTI_USRP_SOURCE_H
#define INCLUDED_UHD_MULTI_USRP_SOURCE_H
+#include <gr_uhd_api.h>
#include <gr_sync_block.h>
#include <uhd/usrp/multi_usrp.hpp>
class uhd_multi_usrp_source;
-boost::shared_ptr<uhd_multi_usrp_source> uhd_make_multi_usrp_source(
- const std::string &device_addr,
- const uhd::io_type_t::tid_t &io_type,
+GR_UHD_API boost::shared_ptr<uhd_multi_usrp_source> uhd_make_multi_usrp_source(
+ const uhd::device_addr_t &device_addr,
+ const uhd::io_type_t &io_type,
size_t num_channels
);
-class uhd_multi_usrp_source : public gr_sync_block{
+class GR_UHD_API uhd_multi_usrp_source : public gr_sync_block{
public:
/*!
@@ -96,14 +97,14 @@ public:
* \param gain the gain in dB
* \param chan the channel index 0 to N-1
*/
- virtual void set_gain(float gain, size_t chan) = 0;
+ virtual void set_gain(double gain, size_t chan) = 0;
/*!
* Get the actual dboard gain setting.
* \param chan the channel index 0 to N-1
* \return the actual gain in dB
*/
- virtual float get_gain(size_t chan) = 0;
+ virtual double get_gain(size_t chan) = 0;
/*!
* Get the settable gain range.