diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-23 18:17:47 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-23 18:17:47 -0700 |
commit | 1aef83037f6a9988b06a547710afbbe5ce815459 (patch) | |
tree | 7698e49c2f4d891feb49a9b937f9da9fc6f4cbc5 /host/lib/transport | |
parent | 694dc3c7bc6f07b9660aef0c5ace9f6e11f98066 (diff) | |
download | uhd-1aef83037f6a9988b06a547710afbbe5ce815459.tar.gz uhd-1aef83037f6a9988b06a547710afbbe5ce815459.tar.bz2 uhd-1aef83037f6a9988b06a547710afbbe5ce815459.zip |
Added example app to receive timed samples.
Added useful calls to simple device.
Fixed vrt frac time usage (wrong word).
Diffstat (limited to 'host/lib/transport')
-rw-r--r-- | host/lib/transport/vrt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/vrt.cpp b/host/lib/transport/vrt.cpp index a06b5bf21..cc46b2381 100644 --- a/host/lib/transport/vrt.cpp +++ b/host/lib/transport/vrt.cpp @@ -42,8 +42,8 @@ void vrt::pack( if(metadata.has_time_spec){ vrt_hdr_flags |= (0x3 << 22) | (0x1 << 20); //TSI: Other, TSF: Sample Count Timestamp header_buff[num_header_words32++] = htonl(metadata.time_spec.secs); - header_buff[num_header_words32++] = htonl(metadata.time_spec.ticks); header_buff[num_header_words32++] = 0; //unused part of fractional seconds + header_buff[num_header_words32++] = htonl(metadata.time_spec.ticks); } vrt_hdr_flags |= (metadata.start_of_burst)? (0x1 << 25) : 0; @@ -99,8 +99,8 @@ void vrt::unpack( if (vrt_hdr_word & (0x3 << 20)){ //fractional time metadata.has_time_spec = true; - metadata.time_spec.ticks = ntohl(header_buff[num_header_words32++]); num_header_words32++; //unused part of fractional seconds + metadata.time_spec.ticks = ntohl(header_buff[num_header_words32++]); } size_t num_trailer_words32 = (vrt_hdr_word & (0x1 << 26))? 1 : 0; |