diff options
Diffstat (limited to 'host/lib/usrp/x300/x300_claim.hpp')
-rw-r--r-- | host/lib/usrp/x300/x300_claim.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_claim.hpp b/host/lib/usrp/x300/x300_claim.hpp new file mode 100644 index 000000000..bd222f55e --- /dev/null +++ b/host/lib/usrp/x300/x300_claim.hpp @@ -0,0 +1,25 @@ +// +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#ifndef INCLUDED_X300_CLAIM_HPP +#define INCLUDED_X300_CLAIM_HPP + +#include <uhd/types/wb_iface.hpp> + +namespace uhd { namespace usrp { namespace x300 { + +// device claim functions +enum claim_status_t { UNCLAIMED, CLAIMED_BY_US, CLAIMED_BY_OTHER }; + +claim_status_t claim_status(uhd::wb_iface::sptr iface); +void claimer_loop(uhd::wb_iface::sptr iface); +void claim(uhd::wb_iface::sptr iface); +bool try_to_claim(uhd::wb_iface::sptr iface, long timeout = 2000); +void release(uhd::wb_iface::sptr iface); + +}}} // namespace uhd::usrp::x300 + +#endif /* INCLUDED_X300_CLAIM_HPP */ |