Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 6e7a2755bd78c9deedab199b86e675f3 > files > 3096

gnuradio-doc-3.2.2-9.fc14.x86_64.rpm

<!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: control.h Source File</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('control_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<h1>control.h</h1>  </div>
</div>
<div class="contents">
<a href="control_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c++ -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright 2008,2009 Free Software Foundation, Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * This program is free software: you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment"> * the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment"> * (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment"> * along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00017"></a>00017 <span class="comment"> */</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef INCLUDED_CONTROL_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDED_CONTROL_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;gnuradio/omnithread.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;usrp2_eth_packet.h&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="keyword">namespace </span>usrp2 {
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="structusrp2_1_1op__generic__cmd.html">00027</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__generic__cmd.html">op_generic_cmd</a> {
<a name="l00028"></a><a class="code" href="structusrp2_1_1op__generic__cmd.html#aa24053e543071e4e580a92ddd2126871">00028</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__generic__cmd.html#aa24053e543071e4e580a92ddd2126871">h</a>;
<a name="l00029"></a><a class="code" href="structusrp2_1_1op__generic__cmd.html#abfac331726427ad9b7ca75185b0ea78e">00029</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__generic__cmd.html#abfac331726427ad9b7ca75185b0ea78e">op</a>;
<a name="l00030"></a><a class="code" href="structusrp2_1_1op__generic__cmd.html#a059ef33f3842ed6457644080b87c9ec1">00030</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__generic__cmd.html#a059ef33f3842ed6457644080b87c9ec1">eop</a>;
<a name="l00031"></a>00031   };
<a name="l00032"></a>00032 <span class="comment"></span>
<a name="l00033"></a>00033 <span class="comment">  /*!</span>
<a name="l00034"></a>00034 <span class="comment">   * OP_CONFIG_RX_V2 command packet</span>
<a name="l00035"></a>00035 <span class="comment">   */</span>
<a name="l00036"></a><a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html">00036</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html">op_config_rx_v2_cmd</a> 
<a name="l00037"></a>00037   {
<a name="l00038"></a><a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html#aa616acdfd25a68fed8f332c44791e800">00038</a>     u2_eth_packet_t   <a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html#aa616acdfd25a68fed8f332c44791e800">h</a>;
<a name="l00039"></a><a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html#aa00c7955fa3c4d15af5a84adde94ee6a">00039</a>     op_config_rx_v2_t <a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html#aa00c7955fa3c4d15af5a84adde94ee6a">op</a>;
<a name="l00040"></a><a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html#ad5c9b967c9e4cb124ffa3bbc3ae109a7">00040</a>     op_generic_t      <a class="code" href="structusrp2_1_1op__config__rx__v2__cmd.html#ad5c9b967c9e4cb124ffa3bbc3ae109a7">eop</a>;
<a name="l00041"></a>00041   };
<a name="l00042"></a>00042 
<a name="l00043"></a><a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html">00043</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html">op_start_rx_streaming_cmd</a> 
<a name="l00044"></a>00044   {
<a name="l00045"></a><a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html#ae8981b39c71c0cd0ce8ddea670dcd7ee">00045</a>     u2_eth_packet_t         <a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html#ae8981b39c71c0cd0ce8ddea670dcd7ee">h</a>;
<a name="l00046"></a><a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html#a35500a43be2ecf98d6e7f1b442bde37f">00046</a>     op_start_rx_streaming_t <a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html#a35500a43be2ecf98d6e7f1b442bde37f">op</a>;
<a name="l00047"></a><a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html#aaef17918d3251d9204ad7ee0872b85a3">00047</a>     op_generic_t            <a class="code" href="structusrp2_1_1op__start__rx__streaming__cmd.html#aaef17918d3251d9204ad7ee0872b85a3">eop</a>;
<a name="l00048"></a>00048   };
<a name="l00049"></a>00049     
<a name="l00050"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html">00050</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html">op_stop_rx_cmd</a> {
<a name="l00051"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#a49a245326152ad3383e3656af466c89d">00051</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#a49a245326152ad3383e3656af466c89d">h</a>;
<a name="l00052"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ac80dba19ffa40931445df2e83fe80f71">00052</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ac80dba19ffa40931445df2e83fe80f71">op</a>;
<a name="l00053"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ae0cbe0d5012ac32afb0615b8f692db74">00053</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ae0cbe0d5012ac32afb0615b8f692db74">eop</a>;
<a name="l00054"></a>00054   };
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html">00056</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html">op_config_tx_v2_cmd</a> 
<a name="l00057"></a>00057   {
<a name="l00058"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#ad42499d39782d08a215ab6777114a1cd">00058</a>     u2_eth_packet_t   <a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#ad42499d39782d08a215ab6777114a1cd">h</a>;
<a name="l00059"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a0721e339eb08f849032e9cf1a6f912ae">00059</a>     op_config_tx_v2_t <a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a0721e339eb08f849032e9cf1a6f912ae">op</a>;
<a name="l00060"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a28d73d0f7d1bbfb073a5f1437ef42dec">00060</a>     op_generic_t      <a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a28d73d0f7d1bbfb073a5f1437ef42dec">eop</a>;
<a name="l00061"></a>00061   };
<a name="l00062"></a>00062 
<a name="l00063"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html">00063</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html">op_config_mimo_cmd</a>
<a name="l00064"></a>00064   {
<a name="l00065"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a21bfc9e56e7339292dade2a81070b580">00065</a>     u2_eth_packet_t   <a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a21bfc9e56e7339292dade2a81070b580">h</a>;
<a name="l00066"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a0c9b305864846cac3966b8ef10ed198d">00066</a>     op_config_mimo_t  <a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a0c9b305864846cac3966b8ef10ed198d">op</a>;
<a name="l00067"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#ad56ffe3cf8f22bbd1fe6a16caae4c7e2">00067</a>     op_generic_t      <a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#ad56ffe3cf8f22bbd1fe6a16caae4c7e2">eop</a>;
<a name="l00068"></a>00068   };
<a name="l00069"></a>00069 
<a name="l00070"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html">00070</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html">op_burn_mac_addr_cmd</a> 
<a name="l00071"></a>00071   {
<a name="l00072"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#af7fdcd5063b651a72fabfa32c16f3ded">00072</a>     u2_eth_packet_t    <a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#af7fdcd5063b651a72fabfa32c16f3ded">h</a>;
<a name="l00073"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#a7428a0fb170a760937a98be88118dd49">00073</a>     op_burn_mac_addr_t <a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#a7428a0fb170a760937a98be88118dd49">op</a>;
<a name="l00074"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#ab7026beaee8694c7091757310c73bb00">00074</a>     op_generic_t       <a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#ab7026beaee8694c7091757310c73bb00">eop</a>;
<a name="l00075"></a>00075   };
<a name="l00076"></a>00076 
<a name="l00077"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html">00077</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html">op_dboard_info_cmd</a> {
<a name="l00078"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#aedc081dcb4c87ec5794dc9c481e5b67f">00078</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#aedc081dcb4c87ec5794dc9c481e5b67f">h</a>;
<a name="l00079"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ac911ba76f4dd81a604b2a11749a9d755">00079</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ac911ba76f4dd81a604b2a11749a9d755">op</a>;
<a name="l00080"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ae1ff6dce93f7f7ef815aad9559ca74e3">00080</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ae1ff6dce93f7f7ef815aad9559ca74e3">eop</a>;
<a name="l00081"></a>00081   };
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html">00083</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__peek__cmd.html">op_peek_cmd</a> {
<a name="l00084"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html#ab146462f6c1c0a5d532a8b3b4ceca812">00084</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__peek__cmd.html#ab146462f6c1c0a5d532a8b3b4ceca812">h</a>;
<a name="l00085"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html#ae2d3ff8f91772999132a19c19e731a49">00085</a>     op_peek_t       <a class="code" href="structusrp2_1_1op__peek__cmd.html#ae2d3ff8f91772999132a19c19e731a49">op</a>;
<a name="l00086"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html#aec6a7e599e0fb305b0772580a6a0911e">00086</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__peek__cmd.html#aec6a7e599e0fb305b0772580a6a0911e">eop</a>;
<a name="l00087"></a>00087   };
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="structusrp2_1_1op__poke__cmd.html">00089</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__poke__cmd.html">op_poke_cmd</a> {
<a name="l00090"></a><a class="code" href="structusrp2_1_1op__poke__cmd.html#a5c363cfd7ed992a584ea4b0ecf5ea9b9">00090</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__poke__cmd.html#a5c363cfd7ed992a584ea4b0ecf5ea9b9">h</a>;
<a name="l00091"></a><a class="code" href="structusrp2_1_1op__poke__cmd.html#ab5b6afcc1ac640d81629bd672e8de302">00091</a>     op_poke_t       <a class="code" href="structusrp2_1_1op__poke__cmd.html#ab5b6afcc1ac640d81629bd672e8de302">op</a>;
<a name="l00092"></a>00092     <span class="comment">// words to write go here</span>
<a name="l00093"></a>00093     <span class="comment">// eop must be dynamically written here</span>
<a name="l00094"></a>00094   };
<a name="l00095"></a>00095 
<a name="l00096"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html">00096</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__freq__cmd.html">op_freq_cmd</a> {
<a name="l00097"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html#a7bea5ecacf1aa1405c695cefeeca117a">00097</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__freq__cmd.html#a7bea5ecacf1aa1405c695cefeeca117a">h</a>;
<a name="l00098"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html#a651d40691f48e3103efd4278d81ea119">00098</a>     op_freq_t       <a class="code" href="structusrp2_1_1op__freq__cmd.html#a651d40691f48e3103efd4278d81ea119">op</a>;
<a name="l00099"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html#a0de6d0b626bac8ada37247cd640eb24e">00099</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__freq__cmd.html#a0de6d0b626bac8ada37247cd640eb24e">eop</a>;
<a name="l00100"></a>00100   };
<a name="l00101"></a>00101 
<a name="l00102"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html">00102</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__gpio__cmd.html">op_gpio_cmd</a> {
<a name="l00103"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html#a19d866285c5841ede83564eb92dac4dc">00103</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__gpio__cmd.html#a19d866285c5841ede83564eb92dac4dc">h</a>;
<a name="l00104"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html#ab8e0ebe60ab7310945b84ceb48ea7352">00104</a>     op_gpio_t       <a class="code" href="structusrp2_1_1op__gpio__cmd.html#ab8e0ebe60ab7310945b84ceb48ea7352">op</a>;
<a name="l00105"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html#a540b62c736719a6bdf64a9bb0d9e8c86">00105</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__gpio__cmd.html#a540b62c736719a6bdf64a9bb0d9e8c86">eop</a>;
<a name="l00106"></a>00106   };
<a name="l00107"></a>00107 
<a name="l00108"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html">00108</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html">op_gpio_set_sels_cmd</a> {
<a name="l00109"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#a8968383f8e79c4b9245625dd4ac30376">00109</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#a8968383f8e79c4b9245625dd4ac30376">h</a>;
<a name="l00110"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#ad333db46a07b9da93785960d3ebd294b">00110</a>     op_gpio_set_sels_t <a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#ad333db46a07b9da93785960d3ebd294b">op</a>;
<a name="l00111"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#aa243ba0305d9f4b78582afb3f2323339">00111</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#aa243ba0305d9f4b78582afb3f2323339">eop</a>;
<a name="l00112"></a>00112   };
<a name="l00113"></a>00113 <span class="comment"></span>
<a name="l00114"></a>00114 <span class="comment">  /*!</span>
<a name="l00115"></a>00115 <span class="comment">   * Control mechanism to allow API calls to block waiting for reply packets</span>
<a name="l00116"></a>00116 <span class="comment">   */</span>    
<a name="l00117"></a><a class="code" href="classusrp2_1_1pending__reply.html">00117</a>   <span class="keyword">class </span><a class="code" href="classusrp2_1_1pending__reply.html">pending_reply</a>
<a name="l00118"></a>00118   {
<a name="l00119"></a>00119   <span class="keyword">private</span>:
<a name="l00120"></a>00120     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    d_rid;
<a name="l00121"></a>00121     <a class="code" href="classomni__mutex.html">omni_mutex</a>      d_mutex;
<a name="l00122"></a>00122     <a class="code" href="classomni__condition.html">omni_condition</a>  d_cond;
<a name="l00123"></a>00123     <span class="keywordtype">void</span>           *d_buffer;
<a name="l00124"></a>00124     <span class="keywordtype">size_t</span>          d_len;
<a name="l00125"></a>00125 
<a name="l00126"></a>00126   <span class="keyword">public</span>:  <span class="comment"></span>
<a name="l00127"></a>00127 <span class="comment">    /*!</span>
<a name="l00128"></a>00128 <span class="comment">     * Construct a pending reply from the reply ID, response packet</span>
<a name="l00129"></a>00129 <span class="comment">     * buffer, and buffer length.</span>
<a name="l00130"></a>00130 <span class="comment">     */</span>
<a name="l00131"></a>00131     <a class="code" href="classusrp2_1_1pending__reply.html#a8c3e31a0f94a87ef117904df195334f3">pending_reply</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1pending__reply.html#a8e2d214a13ec207cb47cfecb0ceff1b4">rid</a>, <span class="keywordtype">void</span> *<a class="code" href="classusrp2_1_1pending__reply.html#a859e3b9e286eab8aa27c846832616149">buffer</a>, <span class="keywordtype">size_t</span> <a class="code" href="classusrp2_1_1pending__reply.html#a477d193bace79353d2fe4c4afbe45d8b">len</a>);
<a name="l00132"></a>00132 <span class="comment"></span>
<a name="l00133"></a>00133 <span class="comment">    /*!</span>
<a name="l00134"></a>00134 <span class="comment">     * Destructor. Signals creating thread.</span>
<a name="l00135"></a>00135 <span class="comment">     */</span>
<a name="l00136"></a>00136     <a class="code" href="classusrp2_1_1pending__reply.html#abdb19d21bab42e409d8e96f76088d477">~pending_reply</a>();
<a name="l00137"></a>00137 <span class="comment"></span>
<a name="l00138"></a>00138 <span class="comment">    /*!</span>
<a name="l00139"></a>00139 <span class="comment">     * Block, waiting for reply packet.</span>
<a name="l00140"></a>00140 <span class="comment">     * Returns: 1 = ok, reply packet in buffer</span>
<a name="l00141"></a>00141 <span class="comment">     *          0 = timeout</span>
<a name="l00142"></a>00142 <span class="comment">     */</span>
<a name="l00143"></a>00143     <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1pending__reply.html#a414a1e44d4dd36a6c3669afcfde754f6">wait</a>(<span class="keywordtype">double</span> secs);
<a name="l00144"></a>00144 <span class="comment"></span>
<a name="l00145"></a>00145 <span class="comment">    /*!</span>
<a name="l00146"></a>00146 <span class="comment">     * Allows creating thread to resume after copying reply into buffer</span>
<a name="l00147"></a>00147 <span class="comment">     */</span>
<a name="l00148"></a>00148     <span class="keywordtype">void</span> <a class="code" href="classusrp2_1_1pending__reply.html#a7710c2bd1dbc8db9951c5d821b7f4f7b">signal</a>();
<a name="l00149"></a>00149 <span class="comment"></span>
<a name="l00150"></a>00150 <span class="comment">    /*!</span>
<a name="l00151"></a>00151 <span class="comment">     * Retrieve pending reply ID</span>
<a name="l00152"></a>00152 <span class="comment">     */</span>
<a name="l00153"></a><a class="code" href="classusrp2_1_1pending__reply.html#a8e2d214a13ec207cb47cfecb0ceff1b4">00153</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1pending__reply.html#a8e2d214a13ec207cb47cfecb0ceff1b4">rid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_rid; }
<a name="l00154"></a>00154 <span class="comment"></span>
<a name="l00155"></a>00155 <span class="comment">    /*!</span>
<a name="l00156"></a>00156 <span class="comment">     * Retrieve destination buffer address</span>
<a name="l00157"></a>00157 <span class="comment">     */</span>
<a name="l00158"></a><a class="code" href="classusrp2_1_1pending__reply.html#a859e3b9e286eab8aa27c846832616149">00158</a>     <span class="keywordtype">void</span> *<a class="code" href="classusrp2_1_1pending__reply.html#a859e3b9e286eab8aa27c846832616149">buffer</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_buffer; }
<a name="l00159"></a>00159 <span class="comment"></span>
<a name="l00160"></a>00160 <span class="comment">    /*!</span>
<a name="l00161"></a>00161 <span class="comment">     * Retrieve destination buffer length</span>
<a name="l00162"></a>00162 <span class="comment">     */</span>
<a name="l00163"></a><a class="code" href="classusrp2_1_1pending__reply.html#a477d193bace79353d2fe4c4afbe45d8b">00163</a>     <span class="keywordtype">size_t</span> <a class="code" href="classusrp2_1_1pending__reply.html#a477d193bace79353d2fe4c4afbe45d8b">len</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d_len; }
<a name="l00164"></a>00164   };
<a name="l00165"></a>00165   
<a name="l00166"></a>00166 } <span class="comment">// namespace usrp2</span>
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 <span class="preprocessor">#endif </span><span class="comment">/* INCLUDED_CONTROL_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="control_8h.html">control.h</a>      </li>
      <li class="footer">Generated on Thu Feb 17 2011 for GNU Radio 3.2.2 C++ API by&#160;
<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>