|
|
@ -25,6 +25,7 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <uhd/utils/thread_priority.hpp>
|
|
|
|
#include <uhd/usrp/multi_usrp.hpp>
|
|
|
|
#include <uhd/usrp/multi_usrp.hpp>
|
|
|
|
#include <iostream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <complex>
|
|
|
|
#include <complex>
|
|
|
@ -160,6 +161,7 @@ float cuhd_get_rx_gain_offset(void *h) {
|
|
|
|
|
|
|
|
|
|
|
|
int cuhd_open_(char *args, void **h, bool create_thread_gain, bool tx_gain_same_rx)
|
|
|
|
int cuhd_open_(char *args, void **h, bool create_thread_gain, bool tx_gain_same_rx)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
uhd::set_thread_priority_safe();
|
|
|
|
cuhd_handler *handler = new cuhd_handler();
|
|
|
|
cuhd_handler *handler = new cuhd_handler();
|
|
|
|
std::string _args = std::string(args);
|
|
|
|
std::string _args = std::string(args);
|
|
|
|
handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, recv_frame_size=7696,num_recv_frames=64,send_frame_size=7696,num_send_frames=64");
|
|
|
|
handler->usrp = uhd::usrp::multi_usrp::make(_args + ", master_clock_rate=30720000, recv_frame_size=7696,num_recv_frames=64,send_frame_size=7696,num_send_frames=64");
|
|
|
|