diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-09 00:54:35 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-09 00:54:35 +0000 |
commit | 8985d5c400a5f64dd95c0f0dcf9f793b32bd2d9c (patch) | |
tree | c038d960822b5ca153f4bbf6a4bad075467a2a1f /host/lib/transport/gen_vrt.py | |
parent | cd84a19214ea03a3615b5ac7997f33fcfc9870ae (diff) | |
parent | 8c7b73ee536357d2f7efc4558b531575fa28ca31 (diff) | |
download | uhd-8985d5c400a5f64dd95c0f0dcf9f793b32bd2d9c.tar.gz uhd-8985d5c400a5f64dd95c0f0dcf9f793b32bd2d9c.tar.bz2 uhd-8985d5c400a5f64dd95c0f0dcf9f793b32bd2d9c.zip |
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/lib/transport/gen_vrt.py')
-rwxr-xr-x | host/lib/transport/gen_vrt.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/host/lib/transport/gen_vrt.py b/host/lib/transport/gen_vrt.py index 3279ae225..6cdd6645d 100755 --- a/host/lib/transport/gen_vrt.py +++ b/host/lib/transport/gen_vrt.py @@ -45,8 +45,6 @@ TMPL_TEXT = """ \#define LE_MACRO(x) (x) \#endif -#set $XE_MACRO = "BE_MACRO" - using namespace uhd; using namespace uhd::transport; @@ -131,10 +129,11 @@ void vrt::pack_$(suffix)( if (metadata.end_of_burst) vrt_hdr_flags |= $hex(0x1 << 24); //fill in complete header word - header_buff[0] = $(XE_MACRO)(vrt_hdr_flags | - ((packet_count & 0xf) << 16) | - (num_packet_words32 & 0xffff) - ); + header_buff[0] = $(XE_MACRO)(boost::uint32_t(0 + | vrt_hdr_flags + | ((packet_count & 0xf) << 16) + | (num_packet_words32 & 0xffff) + )); } void vrt::unpack_$(suffix)( |