GNU Radio 3.4.2 C++ API
fusb_ephandle_ra_wb Class Reference

generic implementation of fusb_ephandle using only libusb More...

#include <fusb_ra_wb.h>

Inheritance diagram for fusb_ephandle_ra_wb:

List of all members.

Public Member Functions

 fusb_ephandle_ra_wb (fusb_devhandle_ra_wb *dh, int endpoint, bool input_p, int block_size=0, int nblocks=0)
virtual ~fusb_ephandle_ra_wb ()
virtual bool start ()
 begin streaming i/o
virtual bool stop ()
 stop streaming i/o
virtual int write (const void *buffer, int nbytes)
virtual int read (void *buffer, int nbytes)
virtual void wait_for_completion ()

Detailed Description

generic implementation of fusb_ephandle using only libusb


Constructor & Destructor Documentation

fusb_ephandle_ra_wb::fusb_ephandle_ra_wb ( fusb_devhandle_ra_wb dh,
int  endpoint,
bool  input_p,
int  block_size = 0,
int  nblocks = 0 
)
virtual fusb_ephandle_ra_wb::~fusb_ephandle_ra_wb ( ) [virtual]

Member Function Documentation

virtual int fusb_ephandle_ra_wb::read ( void *  buffer,
int  nbytes 
) [virtual]
Returns:
number of bytes read or -1 if error. number of bytes read will be <= nbytes. Will block if no input available.

Implements fusb_ephandle.

virtual bool fusb_ephandle_ra_wb::start ( ) [virtual]

begin streaming i/o

Implements fusb_ephandle.

virtual bool fusb_ephandle_ra_wb::stop ( ) [virtual]

stop streaming i/o

Implements fusb_ephandle.

virtual void fusb_ephandle_ra_wb::wait_for_completion ( ) [virtual]

Implements fusb_ephandle.

virtual int fusb_ephandle_ra_wb::write ( const void *  buffer,
int  nbytes 
) [virtual]
Returns:
nbytes if write was successfully enqueued, else -1. Will block if no free buffers available.

Implements fusb_ephandle.


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