bool ok = d_u2->tx_16sc(0, // FIXME: someday, streams will have channel numbers
in, noutput_items, &metadata);
bool ok = d_u2->tx_16sc(0, // FIXME: someday, streams will have channel numbers
in, noutput_items, &metadata);
std::cerr << "usrp2_sink_16sc: tx_complex_int16 failed" << std::endl;
std::cerr << "usrp2_sink_16sc: tx_complex_int16 failed" << std::endl;
+ return -1; // say we're done
+ }
bool ok = d_u2->tx_32fc(0, // FIXME: someday, streams will have channel numbers
in, noutput_items, &metadata);
bool ok = d_u2->tx_32fc(0, // FIXME: someday, streams will have channel numbers
in, noutput_items, &metadata);
std::cerr << "usrp2_sink_32fc: tx_32fc failed" << std::endl;
std::cerr << "usrp2_sink_32fc: tx_32fc failed" << std::endl;
+ return -1; // say we're done
+ }
rx_16sc_handler::sptr handler = rx_16sc_handler::make(noutput_items, USRP2_MIN_RX_SAMPLES, out);
bool ok = d_u2->rx_samples(0, handler.get());
rx_16sc_handler::sptr handler = rx_16sc_handler::make(noutput_items, USRP2_MIN_RX_SAMPLES, out);
bool ok = d_u2->rx_samples(0, handler.get());
std::cerr << "usrp2::rx_samples() failed" << std::endl;
std::cerr << "usrp2::rx_samples() failed" << std::endl;
+ return -1; // say we're done
+ }
return handler->nsamples();
}
return handler->nsamples();
}
rx_32fc_handler::sptr handler = rx_32fc_handler::make(noutput_items, USRP2_MIN_RX_SAMPLES, out);
bool ok = d_u2->rx_samples(0, handler.get());
rx_32fc_handler::sptr handler = rx_32fc_handler::make(noutput_items, USRP2_MIN_RX_SAMPLES, out);
bool ok = d_u2->rx_samples(0, handler.get());
std::cerr << "usrp2::rx_samples() failed" << std::endl;
std::cerr << "usrp2::rx_samples() failed" << std::endl;
+ return -1; // say we're done
+ }
return handler->nsamples();
}
return handler->nsamples();
}