From 877e9d4345e11be40931e0a9e7cc194e5549a7c8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 10 Jul 2019 10:50:13 -0700 Subject: rfnoc: mb_iface: Add API to query link endianness --- host/lib/include/uhdlib/rfnoc/mb_iface.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/host/lib/include/uhdlib/rfnoc/mb_iface.hpp b/host/lib/include/uhdlib/rfnoc/mb_iface.hpp index 33a0e3df0..840fcf709 100644 --- a/host/lib/include/uhdlib/rfnoc/mb_iface.hpp +++ b/host/lib/include/uhdlib/rfnoc/mb_iface.hpp @@ -7,6 +7,7 @@ #ifndef INCLUDED_LIBUHD_MB_IFACE_HPP #define INCLUDED_LIBUHD_MB_IFACE_HPP +#include #include #include #include @@ -40,6 +41,14 @@ public: */ virtual chdr_w_t get_chdr_w() = 0; + /*! Return the endianness for the link associated with \p local_device_id + * + * When \p local_device_id is set to NULL_DEVICE_ID, it will return any + * endianness associated with this device. + */ + virtual uhd::endianness_t get_endianness( + const device_id_t local_device_id = NULL_DEVICE_ID) = 0; + /*! Get the device ID assigned to the motherboard * * A freshly reset motherboard should return 0. -- cgit v1.2.3