summaryrefslogtreecommitdiffstats
path: root/host/test
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-03 01:19:00 -0800
committerJosh Blum <josh@joshknows.com>2010-03-03 01:19:00 -0800
commitbb8417526c14bd49192c159cbdc52f5ea0063784 (patch)
tree6f8d8e0fe7cc8bb1698d4f37ba53e8f464f55b7f /host/test
parent8e8221dc380fb275a17dcd0abbfaea108f44505f (diff)
downloaduhd-bb8417526c14bd49192c159cbdc52f5ea0063784.tar.gz
uhd-bb8417526c14bd49192c159cbdc52f5ea0063784.tar.bz2
uhd-bb8417526c14bd49192c159cbdc52f5ea0063784.zip
Making use of vrt lib in the usrp2 io_impl.
Added a packet size param to the vrt pack and unpack.
Diffstat (limited to 'host/test')
-rw-r--r--host/test/vrt_test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/test/vrt_test.cpp b/host/test/vrt_test.cpp
index 9b2d43430..a4fad78fc 100644
--- a/host/test/vrt_test.cpp
+++ b/host/test/vrt_test.cpp
@@ -27,6 +27,7 @@ static void pack_and_unpack(
){
uint32_t header_buff[vrt::max_header_words32];
size_t num_header_words32;
+ size_t num_packet_words32;
//pack metadata into a vrt header
vrt::pack(
@@ -34,6 +35,7 @@ static void pack_and_unpack(
header_buff, //output
num_header_words32, //output
num_payload_words32, //input
+ num_packet_words32, //output
packet_count //input
);
@@ -48,6 +50,7 @@ static void pack_and_unpack(
header_buff, //input
num_header_words32_out, //output
num_payload_words32_out, //output
+ num_packet_words32, //input
packet_count_out //output
);