From 0200aedf4497d5bc4ddf9f3a071ed5395e605f2d Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Fri, 31 May 2019 17:33:54 -0700 Subject: rfnoc: SW support for FPGA byte swapper The management looks at the transport endianness from the packet factory to determine if the byte_swapper in the FPGA needs to be enabled --- host/lib/include/uhdlib/rfnoc/chdr_packet.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/include/uhdlib/rfnoc/chdr_packet.hpp') diff --git a/host/lib/include/uhdlib/rfnoc/chdr_packet.hpp b/host/lib/include/uhdlib/rfnoc/chdr_packet.hpp index b20e24a93..770c6cf6f 100644 --- a/host/lib/include/uhdlib/rfnoc/chdr_packet.hpp +++ b/host/lib/include/uhdlib/rfnoc/chdr_packet.hpp @@ -292,6 +292,12 @@ public: return _chdr_w; } + //! Get the link endianness + inline endianness_t get_endianness() const + { + return _endianness; + } + //! Get the protocol version for RFNoC and the CHDR format inline uint16_t get_protover() const { -- cgit v1.2.3