aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_driver/ad9361_device.h
diff options
context:
space:
mode:
authorSugandha Gupta <sugandha.gupta@ettus.com>2018-06-05 13:48:07 -0700
committerMartin Braun <martin.braun@ettus.com>2018-06-15 16:37:03 -0500
commit67b5827faecd3dc3d9977dff7366b8ea2ab4c87a (patch)
tree8d4d6b3645cd4b1aa72e26b4be4b5e81d5c45bfa /host/lib/usrp/common/ad9361_driver/ad9361_device.h
parentf9101d7cc7552755d597982eeccecabe88b8a022 (diff)
downloaduhd-67b5827faecd3dc3d9977dff7366b8ea2ab4c87a.tar.gz
uhd-67b5827faecd3dc3d9977dff7366b8ea2ab4c87a.tar.bz2
uhd-67b5827faecd3dc3d9977dff7366b8ea2ab4c87a.zip
ad9361: Add API to set 1R1T/2R2T timing modes
LVDS interface can support both timing modes 1R1T/2R2T The API sets the required bit in catalina registers.
Diffstat (limited to 'host/lib/usrp/common/ad9361_driver/ad9361_device.h')
-rw-r--r--host/lib/usrp/common/ad9361_driver/ad9361_device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.h b/host/lib/usrp/common/ad9361_driver/ad9361_device.h
index 3f32ba8a8..a42469035 100644
--- a/host/lib/usrp/common/ad9361_driver/ad9361_device.h
+++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.h
@@ -28,6 +28,7 @@ public:
enum direction_t { RX, TX };
enum gain_mode_t {GAIN_MODE_MANUAL, GAIN_MODE_SLOW_AGC, GAIN_MODE_FAST_AGC};
enum chain_t { CHAIN_1, CHAIN_2, CHAIN_BOTH };
+ enum timing_mode_t { TIMING_MODE_1R1T, TIMING_MODE_2R2T };
ad9361_device_t(ad9361_params::sptr client, ad9361_io::sptr io_iface) :
_client_params(client), _io_iface(io_iface),
@@ -93,6 +94,12 @@ public:
*/
void set_active_chains(bool tx1, bool tx2, bool rx1, bool rx2);
+ /* Setup Timing mode depending on active channels.
+ *
+ * LVDS interface can have two timing modes - 1R1T and 2R2T
+ */
+ void set_timing_mode(const timing_mode_t timing_mode);
+
/* Tune the RX or TX frequency.
*
* This is the publicly-accessible tune function. It makes sure the tune