<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GNU Radio 3.2.2 C++ API: fusb_ephandle_ra_wb Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">GNU Radio 3.2.2 C++ API</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('classfusb__ephandle__ra__wb.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <h1>fusb_ephandle_ra_wb Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="fusb_ephandle_ra_wb" --><!-- doxytag: inherits="fusb_ephandle" --> <p>generic implementation of <a class="el" href="classfusb__ephandle.html" title="abstract usb end point handle">fusb_ephandle</a> using only libusb <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="fusb__ra__wb_8h_source.html">fusb_ra_wb.h</a>></code></p> <div class="dynheader"> Inheritance diagram for fusb_ephandle_ra_wb:</div> <div class="dyncontent"> <div class="center"><img src="classfusb__ephandle__ra__wb__inherit__graph.png" border="0" usemap="#fusb__ephandle__ra__wb_inherit__map" alt="Inheritance graph"/></div> <map name="fusb__ephandle__ra__wb_inherit__map" id="fusb__ephandle__ra__wb_inherit__map"> <area shape="rect" id="node2" href="classfusb__ephandle.html" title="abstract usb end point handle" alt="" coords="25,5,132,35"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classfusb__ephandle__ra__wb-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#a45fe615379716a663eb9c08f2f0430df">fusb_ephandle_ra_wb</a> (<a class="el" href="classfusb__devhandle__ra__wb.html">fusb_devhandle_ra_wb</a> *dh, int endpoint, <a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> input_p, int block_size=0, int nblocks=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#ad281abc3da0454750af573ba456c02a1">~fusb_ephandle_ra_wb</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#af2ec65d180691b02fa516e8c5e7000ef">start</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">begin streaming i/o <a href="#af2ec65d180691b02fa516e8c5e7000ef"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#af3db5ab8da0dd49e1d92d64e208ebd1a">stop</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">stop streaming i/o <a href="#af3db5ab8da0dd49e1d92d64e208ebd1a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#aae056e1b0bc907b2591b6c9876ed9cc3">write</a> (const void *buffer, int nbytes)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#a11d626f39f48c4ae3308c90d8f65f469">read</a> (void *buffer, int nbytes)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classfusb__ephandle__ra__wb.html#a63eec088aca166d257b187cbe13b5b5b">wait_for_completion</a> ()</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>generic implementation of <a class="el" href="classfusb__ephandle.html" title="abstract usb end point handle">fusb_ephandle</a> using only libusb </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a45fe615379716a663eb9c08f2f0430df"></a><!-- doxytag: member="fusb_ephandle_ra_wb::fusb_ephandle_ra_wb" ref="a45fe615379716a663eb9c08f2f0430df" args="(fusb_devhandle_ra_wb *dh, int endpoint, bool input_p, int block_size=0, int nblocks=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">fusb_ephandle_ra_wb::fusb_ephandle_ra_wb </td> <td>(</td> <td class="paramtype"><a class="el" href="classfusb__devhandle__ra__wb.html">fusb_devhandle_ra_wb</a> * </td> <td class="paramname"><em>dh</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>endpoint</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> </td> <td class="paramname"><em>input_p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>block_size</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>nblocks</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ad281abc3da0454750af573ba456c02a1"></a><!-- doxytag: member="fusb_ephandle_ra_wb::~fusb_ephandle_ra_wb" ref="ad281abc3da0454750af573ba456c02a1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual fusb_ephandle_ra_wb::~fusb_ephandle_ra_wb </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a11d626f39f48c4ae3308c90d8f65f469"></a><!-- doxytag: member="fusb_ephandle_ra_wb::read" ref="a11d626f39f48c4ae3308c90d8f65f469" args="(void *buffer, int nbytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int fusb_ephandle_ra_wb::read </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"><em>buffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>nbytes</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>number of bytes read or -1 if error. number of bytes read will be <= nbytes. Will block if no input available. </dd></dl> <p>Implements <a class="el" href="classfusb__ephandle.html#a835533e974fb159174c44f2ec0d5668d">fusb_ephandle</a>.</p> </div> </div> <a class="anchor" id="af2ec65d180691b02fa516e8c5e7000ef"></a><!-- doxytag: member="fusb_ephandle_ra_wb::start" ref="af2ec65d180691b02fa516e8c5e7000ef" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> fusb_ephandle_ra_wb::start </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>begin streaming i/o </p> <p>Implements <a class="el" href="classfusb__ephandle.html#aac0498804e009ab78c47f2265f34a054">fusb_ephandle</a>.</p> </div> </div> <a class="anchor" id="af3db5ab8da0dd49e1d92d64e208ebd1a"></a><!-- doxytag: member="fusb_ephandle_ra_wb::stop" ref="af3db5ab8da0dd49e1d92d64e208ebd1a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="gc__types_8h.html#a0f2b5d454b7e4dda3861032cfce91085">bool</a> fusb_ephandle_ra_wb::stop </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>stop streaming i/o </p> <p>Implements <a class="el" href="classfusb__ephandle.html#a3cfe2cbb78870a6ce0ec8f696ebe45ab">fusb_ephandle</a>.</p> </div> </div> <a class="anchor" id="a63eec088aca166d257b187cbe13b5b5b"></a><!-- doxytag: member="fusb_ephandle_ra_wb::wait_for_completion" ref="a63eec088aca166d257b187cbe13b5b5b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void fusb_ephandle_ra_wb::wait_for_completion </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classfusb__ephandle.html#a1e1a2c7173a14aea99686fad7c0e061c">fusb_ephandle</a>.</p> </div> </div> <a class="anchor" id="aae056e1b0bc907b2591b6c9876ed9cc3"></a><!-- doxytag: member="fusb_ephandle_ra_wb::write" ref="aae056e1b0bc907b2591b6c9876ed9cc3" args="(const void *buffer, int nbytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int fusb_ephandle_ra_wb::write </td> <td>(</td> <td class="paramtype">const void * </td> <td class="paramname"><em>buffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>nbytes</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd><code>nbytes</code> if write was successfully enqueued, else -1. Will block if no free buffers available. </dd></dl> <p>Implements <a class="el" href="classfusb__ephandle.html#ab2a965c0f5fea6632bc08ea59c8c8fe1">fusb_ephandle</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="fusb__ra__wb_8h_source.html">fusb_ra_wb.h</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="classfusb__ephandle__ra__wb.html">fusb_ephandle_ra_wb</a> </li> <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li> </ul> </div> </body> </html>