Hi,
Odd USRP decimation rate should be possible if no FPGA half band filter is used.
Regards,
Firas A.
Index: usrp/host/lib/legacy/usrp_standard.cc
===================================================================
--- usrp/host/lib/legacy/usrp_standard.cc (revision 8942)
+++ usrp/host/lib/legacy/usrp_standard.cc (working copy)
@@ -239,10 +239,18 @@
bool
usrp_standard_rx::set_decim_rate(unsigned int rate)
{
+ if (has_rx_halfband()){
if ((rate & 0x1) || rate < 4 || rate > 256){
fprintf (stderr, "usrp_standard_rx::set_decim_rate: rate must be EVEN and in [4, 256]\n");
return false;
}
+ }
+ else {
+ if (rate < 4 || rate > 128){
+ fprintf (stderr, "usrp_standard_rx::set_decim_rate: rate must be in [4, 128]\n");
+ return false;
+ }
+ }
d_decim_rate = rate;
set_usb_data_rate ((adc_rate () / rate * nchannels ())
_______________________________________________
Patch-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/patch-gnuradio