From 297d5855ca3ac2e3fea329bd938cf4763fac583b Mon Sep 17 00:00:00 2001 From: Samuel O'Brien Date: Tue, 23 Jun 2020 15:09:55 -0500 Subject: utils: Expose CHDR Parsing API This commit introduces a new public api in uhd::utils which allows serializing and deserializing chdr packets. As far as testing, this commit adds the chdr_parse_test test. It uses a wireshark trace located in rfnoc_packets_*.cpp as well as hand coded packets from hardcoded_packets.cpp to test the serialization and deserialization process Signed-off-by: Samuel O'Brien --- host/lib/utils/chdr/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 host/lib/utils/chdr/CMakeLists.txt (limited to 'host/lib/utils/chdr/CMakeLists.txt') diff --git a/host/lib/utils/chdr/CMakeLists.txt b/host/lib/utils/chdr/CMakeLists.txt new file mode 100644 index 000000000..04f1180d4 --- /dev/null +++ b/host/lib/utils/chdr/CMakeLists.txt @@ -0,0 +1,9 @@ +# +# Copyright 2020 Ettus Research, a National Instruments Brand +# +# SPDX-License-Identifier: GPL-3.0-or-later +# + +LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/chdr_packet.cpp +) -- cgit v1.2.3