47 uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS);
48 stream_cmd.stream_now =
true;
49 m_usrp->issue_stream_cmd(stream_cmd);
70 uhd::tx_metadata_t tx_metadata;
71 tx_metadata.start_of_burst =
true;
72 tx_metadata.end_of_burst =
true;
73 tx_metadata.has_time_spec =
false;
74 m_tx_streamer->send(&samples[0], samples.size(), tx_metadata);
95 for(
int x = 0; x < samples.size(); x++)
99 uhd::tx_metadata_t tx_metadata;
100 tx_metadata.start_of_burst =
true;
101 tx_metadata.end_of_burst =
true;
102 tx_metadata.has_time_spec =
false;
103 m_tx_streamer->send(&samples[0], samples.size(), tx_metadata);
106 bool got_ack =
false;
107 bool got_underflow =
false;
108 uhd::async_metadata_t async_metadata;
109 while(!got_ack && !got_underflow &&
m_device->recv_async_msg(async_metadata, 1))
111 got_ack = (async_metadata.event_code == uhd::async_metadata_t::EVENT_CODE_BURST_ACK);
112 got_underflow = (got_ack && async_metadata.event_code == uhd::async_metadata_t::EVENT_CODE_UNDERFLOW);
128 uhd::rx_metadata_t rx_meta;