diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-07-10 10:50:13 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:30 -0800 |
commit | 877e9d4345e11be40931e0a9e7cc194e5549a7c8 (patch) | |
tree | 5e93877af71e93f9cc55224b75792b9b8d6e1de1 /host/lib/include/uhdlib | |
parent | dd78c438ed31cbeac53bee1b402cb49e9948d0c2 (diff) | |
download | uhd-877e9d4345e11be40931e0a9e7cc194e5549a7c8.tar.gz uhd-877e9d4345e11be40931e0a9e7cc194e5549a7c8.tar.bz2 uhd-877e9d4345e11be40931e0a9e7cc194e5549a7c8.zip |
rfnoc: mb_iface: Add API to query link endianness
Diffstat (limited to 'host/lib/include/uhdlib')
-rw-r--r-- | host/lib/include/uhdlib/rfnoc/mb_iface.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <uhd/types/endianness.hpp> #include <uhdlib/rfnoc/chdr_ctrl_xport.hpp> #include <uhdlib/rfnoc/chdr_rx_data_xport.hpp> #include <uhdlib/rfnoc/chdr_tx_data_xport.hpp> @@ -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. |