diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-03 11:28:32 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-03 11:28:32 -0800 |
commit | ccd2665a29af046b0b8a11c48ffbfe2ed36ce8d9 (patch) | |
tree | 0ebf3fda5a9f7f973872bd99bb62386d18c93941 /host/lib/metadata.cpp | |
parent | e531f936e6ffa645a944b360a51f82004c6cdfcb (diff) | |
download | uhd-ccd2665a29af046b0b8a11c48ffbfe2ed36ce8d9.tar.gz uhd-ccd2665a29af046b0b8a11c48ffbfe2ed36ce8d9.tar.bz2 uhd-ccd2665a29af046b0b8a11c48ffbfe2ed36ce8d9.zip |
Split metadata into rx and tx specific metadata.
The rx metadata has fragment flags and the tx metatdata has burst flags.
Made the io impl for usrp2 rx routine fill in the rx metatdata fragment flag.
Added device documentation for send and recv in regards to fragmentation.
Diffstat (limited to 'host/lib/metadata.cpp')
-rw-r--r-- | host/lib/metadata.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/host/lib/metadata.cpp b/host/lib/metadata.cpp new file mode 100644 index 000000000..40fdb7c73 --- /dev/null +++ b/host/lib/metadata.cpp @@ -0,0 +1,37 @@ +// +// Copyright 2010 Ettus Research LLC +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// + +#include <uhd/metadata.hpp> + +using namespace uhd; + +rx_metadata_t::rx_metadata_t(void){ + stream_id = 0; + has_stream_id = false; + time_spec = time_spec_t(); + has_time_spec = false; + is_fragment = false; +} + +tx_metadata_t::tx_metadata_t(void){ + stream_id = 0; + has_stream_id = false; + time_spec = time_spec_t(); + has_time_spec = false; + start_of_burst = false; + end_of_burst = false; +} |