commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7693 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r7693 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Thu, 14 Feb 2008 16:18:05 -0700 (MST)

Author: gnychis
Date: 2008-02-14 16:18:04 -0700 (Thu, 14 Feb 2008)
New Revision: 7693

Modified:
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_usb_interface.cc
Log:
tune two RX boards and set a proper mux (i think) for two channels


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_usb_interface.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_usb_interface.cc
      2008-02-14 22:33:26 UTC (rev 7692)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_usb_interface.cc
      2008-02-14 23:18:04 UTC (rev 7693)
@@ -342,13 +342,23 @@
     return;
   }
 
-  if(!d_urx->set_rx_freq (0, -d_rf_freq)) {
+  if(!d_urx->set_rx_freq (0, -d_rf_freq) || d_urx->set_rx_freq(1, -d_rf_freq)) 
{
     if (verbose)
       std::cout << "[usrp_server] Failed to set center frequency on RX\n";
     reply_data = pmt_list2(invocation_handle, PMT_F);
     d_cs->send(s_response_usrp_open, reply_data);
     return;
   }
+  
+  // Two channels ... this really needs to end up being set correctly by
+  // querying for what dboards are connected
+  if(!d_urx->set_mux(0x32103210)) {
+    if (verbose)
+      std::cout << "[USRP_USB_INTERFACE] Failed to set RX mux\n";
+    reply_data = pmt_list2(invocation_handle, PMT_F);
+    d_cs->send(s_response_usrp_open, reply_data);
+    return;
+  }
 
   if (verbose)
     std::cout << "[USRP_USB_INTERFACE] Setup RX channel\n";





reply via email to

[Prev in Thread] Current Thread [Next in Thread]