// Need the handle to the RX port to send responses, this is passed
// by the USRP interface m-block
+ pmt_t handle = pmt_nth(1, data);
d_urx =
- boost::any_cast<usrp_standard_rx *>(pmt_any_ref(pmt_nth(1, data)));
+ boost::any_cast<usrp_standard_rx_sptr>(pmt_any_ref(handle));
if(verbose)
std::cout << "[usrp_rx] Waiting for packets..\n";
#include <mblock/mblock.h>
#include <fstream>
-
-class usrp_standard_rx;
+#include "usrp_standard.h"
extern bool usrp_rx_stop; // used to communicate a 'stop' to the RX stub
class usrp_rx : public mb_mblock
{
mb_port_sptr d_cs;
- usrp_standard_rx *d_urx;
+ usrp_standard_rx_sptr d_urx;
bool d_disk_write;
bool d_disk_write_pkt;
pmt_t invocation_handle = pmt_nth(0, data);
pmt_t channel = pmt_nth(1, data);
pmt_t v_packets = pmt_nth(2, data);
- d_utx = boost::any_cast<usrp_standard_tx *>(pmt_any_ref(pmt_nth(3, data)));
+ d_utx = boost::any_cast<usrp_standard_tx_sptr>(pmt_any_ref(pmt_nth(3, data)));
size_t n_bytes;
bool underrun; // this will need to go, as it is taken care of in the packet headers
#include <mblock/mblock.h>
#include <fstream>
-
-class usrp_standard_tx;
+#include "usrp_standard.h"
/*!
* \brief Implements the low level usb interface to the USRP
class usrp_tx : public mb_mblock
{
mb_port_sptr d_cs;
- usrp_standard_tx *d_utx;
+ usrp_standard_tx_sptr d_utx;
bool d_disk_write;
std::ofstream d_ofile;