diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-24 18:55:08 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-24 18:55:08 -0700 |
commit | fadd3a44a84e061412accd35c1c97db820190df8 (patch) | |
tree | 3bae768f567858b6dc61f24cd643819c9c9c2380 /host/lib/transport | |
parent | e74356ec5956d10d399969851fefd4a1f308ad7c (diff) | |
download | uhd-fadd3a44a84e061412accd35c1c97db820190df8.tar.gz uhd-fadd3a44a84e061412accd35c1c97db820190df8.tar.bz2 uhd-fadd3a44a84e061412accd35c1c97db820190df8.zip |
uhd: created benchmark rx example app
Made mods to time spec to support math operators.
Diffstat (limited to 'host/lib/transport')
-rwxr-xr-x | host/lib/transport/gen_vrt.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/host/lib/transport/gen_vrt.py b/host/lib/transport/gen_vrt.py index 6cdd6645d..d1e553c41 100755 --- a/host/lib/transport/gen_vrt.py +++ b/host/lib/transport/gen_vrt.py @@ -169,7 +169,7 @@ void vrt::unpack_$(suffix)( switch(pred){ #for $pred in range(2**5) case $pred: - #set $set_has_time_spec = False + #set $has_time_spec = False #set $num_header_words = 1 ########## Stream ID ########## #if $pred & $sid_p @@ -184,21 +184,20 @@ void vrt::unpack_$(suffix)( #end if ########## Integer Time ########## #if $pred & $tsi_p - metadata.has_time_spec = true; - #set $set_has_time_spec = True + #set $has_time_spec = True metadata.time_spec.secs = $(XE_MACRO)(header_buff[$num_header_words]); #set $num_header_words += 1 #end if ########## Fractional Time ########## #if $pred & $tsf_p - #if not $set_has_time_spec - metadata.has_time_spec = true; - #set $set_has_time_spec = True - #end if + #set $has_time_spec = True #set $num_header_words += 1 metadata.time_spec.set_ticks($(XE_MACRO)(header_buff[$num_header_words]), tick_rate); #set $num_header_words += 1 #end if + #if $has_time_spec + metadata.has_time_spec = true; + #end if ########## Trailer ########## #if $pred & $tlr_p #set $num_trailer_words = 1; |