diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-09 19:01:28 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-09 19:01:28 -0800 |
commit | fb7e8a09a58f4c08f70ba0e088710a0e011ea01d (patch) | |
tree | 6a08b4b8751ba09263de160de89099573b97f69c /host/examples/tx_waveforms.cpp | |
parent | 55884d630ca675c9f006eb0705bc8670119c4737 (diff) | |
download | uhd-fb7e8a09a58f4c08f70ba0e088710a0e011ea01d.tar.gz uhd-fb7e8a09a58f4c08f70ba0e088710a0e011ea01d.tar.bz2 uhd-fb7e8a09a58f4c08f70ba0e088710a0e011ea01d.zip |
uhd: replaced std::vector<type> for buffer arguments in send/recv
Created new type ref_vector for representing a vector of pointers.
Can be created from std::vector or a pointer.
Removes the convenience constrcutors for send/recv, its not needed.
Removes malloc/free overhead when using send/recv with pointer.
Diffstat (limited to 'host/examples/tx_waveforms.cpp')
-rw-r--r-- | host/examples/tx_waveforms.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp index dd18d3174..05d49a8b3 100644 --- a/host/examples/tx_waveforms.cpp +++ b/host/examples/tx_waveforms.cpp @@ -171,7 +171,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //send a mini EOB packet md.start_of_burst = false; md.end_of_burst = true; - usrp->get_device()->send(NULL, 0, md, + usrp->get_device()->send("", 0, md, uhd::io_type_t::COMPLEX_FLOAT32, uhd::device::SEND_MODE_FULL_BUFF ); |