19 #ifndef INCLUDED_UHD_TRANSPORT_NIRIO_NIRIO_QUIRKS_H 20 #define INCLUDED_UHD_TRANSPORT_NIRIO_NIRIO_QUIRKS_H 29 #define UHD_NIRIO_RX_FIFO_XFER_CHECK_EN 0 31 namespace uhd {
namespace niusrprio {
39 for (
size_t i = 0; i <
sizeof(tx_stream_indices)/
sizeof(*tx_stream_indices); i++) {
40 _tx_stream_fifo_indices.insert(tx_stream_indices[i]);
45 if (_tx_stream_fifo_indices.find(index) != _tx_stream_fifo_indices.end()) {
46 if (_tx_stream_count == 0) {
47 UHD_LOG <<
"NI-RIO RX FIFO Transfer Check Quirk Enabled.";
54 if (_tx_stream_fifo_indices.find(index) != _tx_stream_fifo_indices.end()) {
56 if (_tx_stream_count == 0) {
57 UHD_LOG <<
"NI-RIO RX FIFO Transfer Check Quirk Disabled.";
69 return _tx_stream_count > 0;
73 std::set<uint32_t> _tx_stream_fifo_indices;
74 size_t _tx_stream_count;
UHD_INLINE void register_tx_streams(const uint32_t tx_stream_indices[])
Definition: nirio_quirks.h:38
UHD_INLINE void add_tx_fifo(uint32_t index)
Definition: nirio_quirks.h:44
Definition: nirio_quirks.h:33
UHD_INLINE void remove_tx_fifo(uint32_t index)
Definition: nirio_quirks.h:53
UHD_INLINE bool rx_fifo_xfer_check_en() const
Definition: nirio_quirks.h:66
Definition: convert.hpp:28
#define UHD_INLINE
Definition: config.hpp:69
#define UHD_LOG
Definition: log.hpp:66
nirio_quirks()
Definition: nirio_quirks.h:35