USRP Hardware Driver and USRP Manual  Version: 4.2.0.1
UHD and USRP Manual
zero_copy_flow_ctrl.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2017 Ettus Research
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/config.hpp>
12 #include <functional>
13 #include <memory>
14 
15 namespace uhd { namespace transport {
16 
22 typedef std::function<bool(managed_buffer::sptr buff)> flow_ctrl_func;
23 
28 {
29 public:
30  typedef std::shared_ptr<zero_copy_flow_ctrl> sptr;
31 
40  static sptr make(zero_copy_if::sptr transport,
41  flow_ctrl_func send_flow_ctrl,
42  flow_ctrl_func recv_flow_ctrl);
43 };
44 
45 }} // namespace uhd::transport
std::shared_ptr< zero_copy_flow_ctrl > sptr
Definition: zero_copy_flow_ctrl.hpp:30
Definition: zero_copy_flow_ctrl.hpp:27
std::shared_ptr< zero_copy_if > sptr
Definition: zero_copy.hpp:149
Definition: build_info.hpp:12
#define UHD_API
Definition: config.h:87
Definition: zero_copy.hpp:146
std::function< bool(managed_buffer::sptr buff)> flow_ctrl_func
Definition: zero_copy_flow_ctrl.hpp:22