Add USRP2 clock source parameter to GRC blocks.
authorEric Schneider <eric@schneider-group.com>
Tue, 23 Feb 2010 16:20:45 +0000 (09:20 -0700)
committerEric Schneider <eric@schneider-group.com>
Thu, 27 May 2010 18:45:11 +0000 (12:45 -0600)
grc/blocks/usrp2_sink_xxxx.xml
grc/blocks/usrp2_source_xxxx.xml

index 14586cc365109c6f1910d47ab370d3c5255d7587..f9fb25361feac11dd11ee4e49214ea5d5fd2ee0d 100644 (file)
@@ -21,7 +21,8 @@ self.$(id).set_interp($interpolation)
 self.$(id).set_lo_offset($lo_offset)
 #end if
 self.$(id).set_center_freq($frequency)
-self.$(id).set_gain($gain)</make>
+self.$(id).set_gain($gain)
+self.$(id).config_mimo($usrp2_clock_src)</make>
        <callback>set_interp($interpolation)</callback>
        <callback>#if $lo_offset() != float('inf')
 self.$(id).set_lo_offset($lo_offset)
@@ -84,6 +85,24 @@ self.$(id).set_center_freq($frequency)</callback>
                <value>0</value>
                <type>real</type>
        </param>
+       <param>
+               <name>Clock Source</name>
+               <key>usrp2_clock_src</key>
+               <value>usrp2.MC_WE_DONT_LOCK</value>
+               <type>enum</type>
+               <option>
+                       <name>Internal</name>
+                       <key>usrp2.MC_WE_DONT_LOCK</key>
+               </option>
+               <option>
+                       <name>External SMA</name>
+                       <key>usrp2.MC_WE_LOCK_TO_SMA</key>
+               </option>
+               <option>
+                       <name>External MIMO</name>
+                       <key>usrp2.MC_WE_LOCK_TO_MIMO</key>
+               </option>
+       </param>
        <sink>
                <name>in</name>
                <type>$type</type>
index 0f297dfd1286fbf0aea4fad8a8f69125b0d4302a..584199798f1b18325f0a31236747fc82f9bb91f5 100644 (file)
@@ -21,7 +21,8 @@ self.$(id).set_decim($decimation)
 self.$(id).set_lo_offset($lo_offset)
 #end if
 self.$(id).set_center_freq($frequency)
-self.$(id).set_gain($gain)</make>
+self.$(id).set_gain($gain)
+self.$(id).config_mimo($usrp2_clock_src)</make>
        <callback>set_decim($decimation)</callback>
        <callback>#if $lo_offset() != float('inf')
 self.$(id).set_lo_offset($lo_offset)
@@ -84,6 +85,24 @@ self.$(id).set_center_freq($frequency)</callback>
                <value>0</value>
                <type>real</type>
        </param>
+       <param>
+               <name>Clock Source</name>
+               <key>usrp2_clock_src</key>
+               <value>usrp2.MC_WE_DONT_LOCK</value>
+               <type>enum</type>
+               <option>
+                       <name>Internal</name>
+                       <key>usrp2.MC_WE_DONT_LOCK</key>
+               </option>
+               <option>
+                       <name>External SMA</name>
+                       <key>usrp2.MC_WE_LOCK_TO_SMA</key>
+               </option>
+               <option>
+                       <name>External MIMO</name>
+                       <key>usrp2.MC_WE_LOCK_TO_MIMO</key>
+               </option>
+       </param>
        <source>
                <name>out</name>
                <type>$type</type>