diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-17 18:47:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-17 18:47:33 -0700 |
commit | 101afd526de722b6d30381340a7ca8148aa9a6d7 (patch) | |
tree | 25c0dfeafe7bcbe5341cde715e164530a732e01e /host/lib/types.cpp | |
parent | d9cc352ed14dbab04523f53e21f855b05c30eb3f (diff) | |
download | uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.tar.gz uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.tar.bz2 uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.zip |
Created inline send vrt packer function that also handles fragmentation.
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r-- | host/lib/types.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp index 33eb550a1..87a2ad4ab 100644 --- a/host/lib/types.cpp +++ b/host/lib/types.cpp @@ -220,6 +220,10 @@ std::string mac_addr_t::to_string(void) const{ /*********************************************************************** * otw type **********************************************************************/ +size_t otw_type_t::get_sample_size(void) const{ + return (this->width * 2) / 8; +} + otw_type_t::otw_type_t(void){ width = 0; shift = 0; |