USRP Hardware Driver and USRP Manual Version: 4.1.0.1
UHD and USRP Manual
uhd::transport::zero_copy_flow_ctrl Class Reference

#include <uhd/transport/zero_copy_flow_ctrl.hpp>

Inheritance diagram for uhd::transport::zero_copy_flow_ctrl:
uhd::transport::zero_copy_if

Public Types

typedef std::shared_ptr< zero_copy_flow_ctrlsptr
 
- Public Types inherited from uhd::transport::zero_copy_if
typedef std::shared_ptr< zero_copy_ifsptr
 

Static Public Member Functions

static sptr make (zero_copy_if::sptr transport, flow_ctrl_func send_flow_ctrl, flow_ctrl_func recv_flow_ctrl)
 

Additional Inherited Members

- Public Member Functions inherited from uhd::transport::zero_copy_if
virtual ~zero_copy_if ()
 
virtual managed_recv_buffer::sptr get_recv_buff (double timeout=0.1)=0
 
virtual size_t get_num_recv_frames (void) const =0
 
virtual size_t get_recv_frame_size (void) const =0
 
virtual managed_send_buffer::sptr get_send_buff (double timeout=0.1)=0
 
virtual size_t get_num_send_frames (void) const =0
 
virtual size_t get_send_frame_size (void) const =0
 

Detailed Description

Adds flow control to any zero_copy_if transport.

Member Typedef Documentation

◆ sptr

Member Function Documentation

◆ make()

static sptr uhd::transport::zero_copy_flow_ctrl::make ( zero_copy_if::sptr  transport,
flow_ctrl_func  send_flow_ctrl,
flow_ctrl_func  recv_flow_ctrl 
)
static

Make flow controlled transport.

Parameters
transporta shared pointer to the transport interface
send_flow_ctrloptional send flow control function called before buffer is sent
recv_flow_ctrloptional receive flow control function called after buffer released

The documentation for this class was generated from the following file: