aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/rfnoc
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2019-05-31 17:33:54 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:23 -0800
commit0200aedf4497d5bc4ddf9f3a071ed5395e605f2d (patch)
tree1deac796bc71e72febe39e3c89037cab068ec1ea /host/lib/include/uhdlib/rfnoc
parent6730a0b72b3a6a5b1b94a5d09bfb395d837672da (diff)
downloaduhd-0200aedf4497d5bc4ddf9f3a071ed5395e605f2d.tar.gz
uhd-0200aedf4497d5bc4ddf9f3a071ed5395e605f2d.tar.bz2
uhd-0200aedf4497d5bc4ddf9f3a071ed5395e605f2d.zip
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
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc')
-rw-r--r--host/lib/include/uhdlib/rfnoc/chdr_packet.hpp6
1 files changed, 6 insertions, 0 deletions
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
{