aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-17 18:47:33 -0700
committerJosh Blum <josh@joshknows.com>2010-05-17 18:47:33 -0700
commit101afd526de722b6d30381340a7ca8148aa9a6d7 (patch)
tree25c0dfeafe7bcbe5341cde715e164530a732e01e /host/include
parentd9cc352ed14dbab04523f53e21f855b05c30eb3f (diff)
downloaduhd-101afd526de722b6d30381340a7ca8148aa9a6d7.tar.gz
uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.tar.bz2
uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.zip
Created inline send vrt packer function that also handles fragmentation.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/device.hpp11
-rw-r--r--host/include/uhd/types/otw_type.hpp6
2 files changed, 11 insertions, 6 deletions
diff --git a/host/include/uhd/device.hpp b/host/include/uhd/device.hpp
index ae75e6dc8..ecbe8c95c 100644
--- a/host/include/uhd/device.hpp
+++ b/host/include/uhd/device.hpp
@@ -80,12 +80,11 @@ public:
* Send a buffer containing IF data with its metadata.
*
* Send handles fragmentation as follows:
- * If the buffer has more samples than the maximum supported,
- * the send method will send the maximum number of samples
- * as supported by the transport and return the number sent.
- * In this case, the end of burst flag will be forced to false.
- * It is up to the caller to call send again on the un-sent
- * portions of the buffer, until the buffer is exhausted.
+ * If the buffer has more samples than the maximum per packet,
+ * the send method will fragment the samples across several packets.
+ * Send will respect the burst flags when fragmenting to ensure
+ * that start of burst can only be set on the first fragment and
+ * that end of burst can only be set on the final fragment.
*
* This is a blocking call and will not return until the number
* of samples returned have been read out of the buffer.
diff --git a/host/include/uhd/types/otw_type.hpp b/host/include/uhd/types/otw_type.hpp
index f10664584..8e3e65d78 100644
--- a/host/include/uhd/types/otw_type.hpp
+++ b/host/include/uhd/types/otw_type.hpp
@@ -55,6 +55,12 @@ namespace uhd{
BO_NOT_APPLICABLE = '|'
} byteorder;
+ /*!
+ * Get the sample size of this otw type.
+ * \return the size of a sample in bytes
+ */
+ size_t get_sample_size(void) const;
+
otw_type_t(void);
};