Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > def0228095a1541e2d3632b6b6da7c38 > files > 3565

gnuradio-doc-3.3.0-8mdv2010.1.i586.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.3.0 C++ API: control.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<h1>control.h</h1><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,2010 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;<a class="code" href="thread_8h.html">gruel/thread.h</a>&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__sync__and__start__rx__streaming__cmd.html">00050</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html">op_sync_and_start_rx_streaming_cmd</a>
<a name="l00051"></a>00051   {
<a name="l00052"></a><a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#a7271f082de231c5e63e849637647e49d">00052</a>     u2_eth_packet_t         <a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#a7271f082de231c5e63e849637647e49d">h</a>;
<a name="l00053"></a><a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#a6d02398d1aa78aa434ad91b745d10725">00053</a>     op_generic_t            <a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#a6d02398d1aa78aa434ad91b745d10725">sync_op</a>;
<a name="l00054"></a><a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#a15d137765d7c88071d5ee55d1796ca2e">00054</a>     op_start_rx_streaming_t <a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#a15d137765d7c88071d5ee55d1796ca2e">rx_op</a>;
<a name="l00055"></a><a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#adad7a763bf803cea8334cf8264f12820">00055</a>     op_generic_t            <a class="code" href="structusrp2_1_1op__sync__and__start__rx__streaming__cmd.html#adad7a763bf803cea8334cf8264f12820">eop</a>;
<a name="l00056"></a>00056   };
<a name="l00057"></a>00057 
<a name="l00058"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html">00058</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html">op_stop_rx_cmd</a> {
<a name="l00059"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#a49a245326152ad3383e3656af466c89d">00059</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#a49a245326152ad3383e3656af466c89d">h</a>;
<a name="l00060"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ac80dba19ffa40931445df2e83fe80f71">00060</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ac80dba19ffa40931445df2e83fe80f71">op</a>;
<a name="l00061"></a><a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ae0cbe0d5012ac32afb0615b8f692db74">00061</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__stop__rx__cmd.html#ae0cbe0d5012ac32afb0615b8f692db74">eop</a>;
<a name="l00062"></a>00062   };
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html">00064</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="l00065"></a>00065   {
<a name="l00066"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#ad42499d39782d08a215ab6777114a1cd">00066</a>     u2_eth_packet_t   <a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#ad42499d39782d08a215ab6777114a1cd">h</a>;
<a name="l00067"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a0721e339eb08f849032e9cf1a6f912ae">00067</a>     op_config_tx_v2_t <a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a0721e339eb08f849032e9cf1a6f912ae">op</a>;
<a name="l00068"></a><a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a28d73d0f7d1bbfb073a5f1437ef42dec">00068</a>     op_generic_t      <a class="code" href="structusrp2_1_1op__config__tx__v2__cmd.html#a28d73d0f7d1bbfb073a5f1437ef42dec">eop</a>;
<a name="l00069"></a>00069   };
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html">00071</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html">op_config_mimo_cmd</a>
<a name="l00072"></a>00072   {
<a name="l00073"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a21bfc9e56e7339292dade2a81070b580">00073</a>     u2_eth_packet_t   <a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a21bfc9e56e7339292dade2a81070b580">h</a>;
<a name="l00074"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a0c9b305864846cac3966b8ef10ed198d">00074</a>     op_config_mimo_t  <a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#a0c9b305864846cac3966b8ef10ed198d">op</a>;
<a name="l00075"></a><a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#ad56ffe3cf8f22bbd1fe6a16caae4c7e2">00075</a>     op_generic_t      <a class="code" href="structusrp2_1_1op__config__mimo__cmd.html#ad56ffe3cf8f22bbd1fe6a16caae4c7e2">eop</a>;
<a name="l00076"></a>00076   };
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html">00078</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="l00079"></a>00079   {
<a name="l00080"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#af7fdcd5063b651a72fabfa32c16f3ded">00080</a>     u2_eth_packet_t    <a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#af7fdcd5063b651a72fabfa32c16f3ded">h</a>;
<a name="l00081"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#a7428a0fb170a760937a98be88118dd49">00081</a>     op_burn_mac_addr_t <a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#a7428a0fb170a760937a98be88118dd49">op</a>;
<a name="l00082"></a><a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#ab7026beaee8694c7091757310c73bb00">00082</a>     op_generic_t       <a class="code" href="structusrp2_1_1op__burn__mac__addr__cmd.html#ab7026beaee8694c7091757310c73bb00">eop</a>;
<a name="l00083"></a>00083   };
<a name="l00084"></a>00084 
<a name="l00085"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html">00085</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html">op_dboard_info_cmd</a> {
<a name="l00086"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#aedc081dcb4c87ec5794dc9c481e5b67f">00086</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#aedc081dcb4c87ec5794dc9c481e5b67f">h</a>;
<a name="l00087"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ac911ba76f4dd81a604b2a11749a9d755">00087</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ac911ba76f4dd81a604b2a11749a9d755">op</a>;
<a name="l00088"></a><a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ae1ff6dce93f7f7ef815aad9559ca74e3">00088</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__dboard__info__cmd.html#ae1ff6dce93f7f7ef815aad9559ca74e3">eop</a>;
<a name="l00089"></a>00089   };
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html">00091</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__peek__cmd.html">op_peek_cmd</a> {
<a name="l00092"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html#ab146462f6c1c0a5d532a8b3b4ceca812">00092</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__peek__cmd.html#ab146462f6c1c0a5d532a8b3b4ceca812">h</a>;
<a name="l00093"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html#ae2d3ff8f91772999132a19c19e731a49">00093</a>     op_peek_t       <a class="code" href="structusrp2_1_1op__peek__cmd.html#ae2d3ff8f91772999132a19c19e731a49">op</a>;
<a name="l00094"></a><a class="code" href="structusrp2_1_1op__peek__cmd.html#aec6a7e599e0fb305b0772580a6a0911e">00094</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__peek__cmd.html#aec6a7e599e0fb305b0772580a6a0911e">eop</a>;
<a name="l00095"></a>00095   };
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="structusrp2_1_1op__poke__cmd.html">00097</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__poke__cmd.html">op_poke_cmd</a> {
<a name="l00098"></a><a class="code" href="structusrp2_1_1op__poke__cmd.html#a5c363cfd7ed992a584ea4b0ecf5ea9b9">00098</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__poke__cmd.html#a5c363cfd7ed992a584ea4b0ecf5ea9b9">h</a>;
<a name="l00099"></a><a class="code" href="structusrp2_1_1op__poke__cmd.html#ab5b6afcc1ac640d81629bd672e8de302">00099</a>     op_poke_t       <a class="code" href="structusrp2_1_1op__poke__cmd.html#ab5b6afcc1ac640d81629bd672e8de302">op</a>;
<a name="l00100"></a>00100     <span class="comment">// words to write go here</span>
<a name="l00101"></a>00101     <span class="comment">// eop must be dynamically written here</span>
<a name="l00102"></a>00102   };
<a name="l00103"></a>00103 
<a name="l00104"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html">00104</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__freq__cmd.html">op_freq_cmd</a> {
<a name="l00105"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html#a7bea5ecacf1aa1405c695cefeeca117a">00105</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__freq__cmd.html#a7bea5ecacf1aa1405c695cefeeca117a">h</a>;
<a name="l00106"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html#a651d40691f48e3103efd4278d81ea119">00106</a>     op_freq_t       <a class="code" href="structusrp2_1_1op__freq__cmd.html#a651d40691f48e3103efd4278d81ea119">op</a>;
<a name="l00107"></a><a class="code" href="structusrp2_1_1op__freq__cmd.html#a0de6d0b626bac8ada37247cd640eb24e">00107</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__freq__cmd.html#a0de6d0b626bac8ada37247cd640eb24e">eop</a>;
<a name="l00108"></a>00108   };
<a name="l00109"></a>00109 
<a name="l00110"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html">00110</a>   <span class="keyword">struct </span><a class="code" href="structusrp2_1_1op__gpio__cmd.html">op_gpio_cmd</a> {
<a name="l00111"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html#a19d866285c5841ede83564eb92dac4dc">00111</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__gpio__cmd.html#a19d866285c5841ede83564eb92dac4dc">h</a>;
<a name="l00112"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html#ab8e0ebe60ab7310945b84ceb48ea7352">00112</a>     op_gpio_t       <a class="code" href="structusrp2_1_1op__gpio__cmd.html#ab8e0ebe60ab7310945b84ceb48ea7352">op</a>;
<a name="l00113"></a><a class="code" href="structusrp2_1_1op__gpio__cmd.html#a540b62c736719a6bdf64a9bb0d9e8c86">00113</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__gpio__cmd.html#a540b62c736719a6bdf64a9bb0d9e8c86">eop</a>;
<a name="l00114"></a>00114   };
<a name="l00115"></a>00115 
<a name="l00116"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html">00116</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="l00117"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#a8968383f8e79c4b9245625dd4ac30376">00117</a>     u2_eth_packet_t <a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#a8968383f8e79c4b9245625dd4ac30376">h</a>;
<a name="l00118"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#ad333db46a07b9da93785960d3ebd294b">00118</a>     op_gpio_set_sels_t <a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#ad333db46a07b9da93785960d3ebd294b">op</a>;
<a name="l00119"></a><a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#aa243ba0305d9f4b78582afb3f2323339">00119</a>     op_generic_t    <a class="code" href="structusrp2_1_1op__gpio__set__sels__cmd.html#aa243ba0305d9f4b78582afb3f2323339">eop</a>;
<a name="l00120"></a>00120   };
<a name="l00121"></a>00121 <span class="comment"></span>
<a name="l00122"></a>00122 <span class="comment">  /*!</span>
<a name="l00123"></a>00123 <span class="comment">   * Control mechanism to allow API calls to block waiting for reply packets</span>
<a name="l00124"></a>00124 <span class="comment">   */</span>
<a name="l00125"></a><a class="code" href="classusrp2_1_1pending__reply.html">00125</a>   <span class="keyword">class </span><a class="code" href="classusrp2_1_1pending__reply.html">pending_reply</a>
<a name="l00126"></a>00126   {
<a name="l00127"></a>00127   <span class="keyword">private</span>:
<a name="l00128"></a>00128     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    d_rid;
<a name="l00129"></a>00129     <span class="keywordtype">void</span>           *d_buffer;
<a name="l00130"></a>00130     <span class="keywordtype">size_t</span>          d_len;
<a name="l00131"></a>00131 
<a name="l00132"></a>00132     <span class="comment">// d_mutex is used with d_cond and also protects d_complete</span>
<a name="l00133"></a>00133     gruel::mutex      d_mutex;
<a name="l00134"></a>00134     gruel::condition_variable d_cond;
<a name="l00135"></a>00135     <span class="keywordtype">bool</span>            d_complete;
<a name="l00136"></a>00136 
<a name="l00137"></a>00137   <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00138"></a>00138 <span class="comment">    /*!</span>
<a name="l00139"></a>00139 <span class="comment">     * Construct a pending reply from the reply ID, response packet</span>
<a name="l00140"></a>00140 <span class="comment">     * buffer, and buffer length.</span>
<a name="l00141"></a>00141 <span class="comment">     */</span>
<a name="l00142"></a>00142     <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="l00143"></a>00143 <span class="comment"></span>
<a name="l00144"></a>00144 <span class="comment">    /*!</span>
<a name="l00145"></a>00145 <span class="comment">     * Destructor. Signals creating thread.</span>
<a name="l00146"></a>00146 <span class="comment">     */</span>
<a name="l00147"></a>00147     <a class="code" href="classusrp2_1_1pending__reply.html#abdb19d21bab42e409d8e96f76088d477">~pending_reply</a>();
<a name="l00148"></a>00148 <span class="comment"></span>
<a name="l00149"></a>00149 <span class="comment">    /*!</span>
<a name="l00150"></a>00150 <span class="comment">     * Block, waiting for reply packet.</span>
<a name="l00151"></a>00151 <span class="comment">     * Returns: 1 = ok, reply packet in buffer</span>
<a name="l00152"></a>00152 <span class="comment">     *          0 = timeout</span>
<a name="l00153"></a>00153 <span class="comment">     */</span>
<a name="l00154"></a>00154     <span class="keywordtype">int</span> <a class="code" href="classusrp2_1_1pending__reply.html#ad5d9ca0004d4d0fbf75b3fc61980b265">wait_for_completion</a>(<span class="keywordtype">double</span> secs);
<a name="l00155"></a>00155 <span class="comment"></span>
<a name="l00156"></a>00156 <span class="comment">    /*!</span>
<a name="l00157"></a>00157 <span class="comment">     * Allows creating thread to resume after copying reply into buffer</span>
<a name="l00158"></a>00158 <span class="comment">     */</span>
<a name="l00159"></a>00159     <span class="keywordtype">void</span> <a class="code" href="classusrp2_1_1pending__reply.html#aa2383a736cc4e3f1d015895a92cc4728">notify_completion</a>();
<a name="l00160"></a>00160 <span class="comment"></span>
<a name="l00161"></a>00161 <span class="comment">    /*!</span>
<a name="l00162"></a>00162 <span class="comment">     * Retrieve pending reply ID</span>
<a name="l00163"></a>00163 <span class="comment">     */</span>
<a name="l00164"></a><a class="code" href="classusrp2_1_1pending__reply.html#a8e2d214a13ec207cb47cfecb0ceff1b4">00164</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="l00165"></a>00165 <span class="comment"></span>
<a name="l00166"></a>00166 <span class="comment">    /*!</span>
<a name="l00167"></a>00167 <span class="comment">     * Retrieve destination buffer address</span>
<a name="l00168"></a>00168 <span class="comment">     */</span>
<a name="l00169"></a><a class="code" href="classusrp2_1_1pending__reply.html#a859e3b9e286eab8aa27c846832616149">00169</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="l00170"></a>00170 <span class="comment"></span>
<a name="l00171"></a>00171 <span class="comment">    /*!</span>
<a name="l00172"></a>00172 <span class="comment">     * Retrieve destination buffer length</span>
<a name="l00173"></a>00173 <span class="comment">     */</span>
<a name="l00174"></a><a class="code" href="classusrp2_1_1pending__reply.html#a477d193bace79353d2fe4c4afbe45d8b">00174</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="l00175"></a>00175   };
<a name="l00176"></a>00176 
<a name="l00177"></a>00177 } <span class="comment">// namespace usrp2</span>
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="preprocessor">#endif </span><span class="comment">/* INCLUDED_CONTROL_H */</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Dec 29 19:50:59 2010 for GNU Radio 3.3.0 C++ API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>