connect("self", "rx_cs", "rx", "cs");
connect("self", "tx_cs", "tx", "cs");
- // FIX ME: the code should query the FPGA to retrieve the number of channels and such
+ // FIXME: the code should query the FPGA to retrieve the number of channels and such
d_ntx_chan = 2;
d_nrx_chan = 2;
-
- d_utx = NULL;
- d_urx = NULL;
-
}
usrp_usb_interface::~usrp_usb_interface()
channel,
pkts,
tx_handle));
-
- return;
}
/*!
if (verbose)
std::cout << "[USRP_USB_INTERFACE] Handling close request for USRP\n";
- delete d_utx;
- d_utx = 0;
-
- delete d_urx;
- d_urx = 0;
+ d_utx.reset();
+ d_urx.reset();
d_cs->send(s_response_usrp_close, pmt_list2(invocation_handle, PMT_T));
+ // FIXME This seems like a _very_ strange place to be calling shutdown_all.
+ // That decision should be left to high-level code, not low-level code like this.
shutdown_all(PMT_T);
}