Newer
Older
UbixOS / doc / html / tcpip_8c.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS V2: C:/Dev/git/UbixOS/sys/net/api/tcpip.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS V2
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('tcpip_8c.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">tcpip.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="opt_8h_source.html">net/opt.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="tcpip__priv_8h_source.html">net/priv/tcpip_priv.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="sys_8h_source.html">net/sys.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="memp_8h_source.html">net/memp.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="mem_8h_source.html">net/mem.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="net_2init_8h_source.html">net/init.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="ip_8h_source.html">net/ip.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="pbuf_8h_source.html">net/pbuf.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="etharp_8h_source.html">net/etharp.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="f_2ethernet_8h_source.html">netif/ethernet.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tcpip.c:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c__incl.png" border="0" usemap="#C_1_2Dev_2git_2UbixOS_2sys_2net_2api_2tcpip_8c" alt=""/></div>
</div>
</div>
<p><a href="tcpip_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a509daeff3c37e5659d0decb841b4e262"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a509daeff3c37e5659d0decb841b4e262">TCPIP_MBOX_FETCH</a>(mbox,  msg)&#160;&#160;&#160;<a class="el" href="sys_8h.html#a5bae9efa9c945dc810665dc4a7e60117">sys_mbox_fetch</a>(mbox, msg)</td></tr>
<tr class="separator:a509daeff3c37e5659d0decb841b4e262"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2485bb329e586fe0b440cff72bf364e4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a2485bb329e586fe0b440cff72bf364e4">TCPIP_MSG_VAR_ALLOC</a>(<a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#a8ff9b936b16d91844c0e32424e97f493">API_VAR_ALLOC</a>(struct <a class="el" href="structtcpip__msg.html">tcpip_msg</a>, MEMP_TCPIP_MSG_API, <a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>, <a class="el" href="group__infrastructure__errors.html#ggae2e66c7d13afc90ffecd6151680fbadcaaaeafdbf3aecc46864daa3cd829c7e05">ERR_MEM</a>)</td></tr>
<tr class="separator:a2485bb329e586fe0b440cff72bf364e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecf85047afc1ea35a976f7e279fb0f7b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#aecf85047afc1ea35a976f7e279fb0f7b">TCPIP_MSG_VAR_DECLARE</a>(<a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#ab5d4a4fa91c4c144bedabf593a68b4dd">API_VAR_DECLARE</a>(struct <a class="el" href="structtcpip__msg.html">tcpip_msg</a>, <a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr>
<tr class="separator:aecf85047afc1ea35a976f7e279fb0f7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf5d75be78b6af27ca5ed13da28681d4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#acf5d75be78b6af27ca5ed13da28681d4">TCPIP_MSG_VAR_FREE</a>(<a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#a30caebb5334f52d49ac938a507094094">API_VAR_FREE</a>(MEMP_TCPIP_MSG_API, <a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr>
<tr class="separator:acf5d75be78b6af27ca5ed13da28681d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad42dbf6b1a12f07523637e44cf85756d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#ad42dbf6b1a12f07523637e44cf85756d">TCPIP_MSG_VAR_REF</a>(<a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#a3518256af0d1a422755a899b13c2b563">API_VAR_REF</a>(<a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr>
<tr class="separator:ad42dbf6b1a12f07523637e44cf85756d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a55b4de3765c6a37b3f2b26a11603771c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a55b4de3765c6a37b3f2b26a11603771c">mem_free_callback</a> (void *m)</td></tr>
<tr class="separator:a55b4de3765c6a37b3f2b26a11603771c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cdcb6b784fe0e8736a5b31a5cfbed6c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a5cdcb6b784fe0e8736a5b31a5cfbed6c">pbuf_free_callback</a> (struct <a class="el" href="structpbuf.html">pbuf</a> *p)</td></tr>
<tr class="separator:a5cdcb6b784fe0e8736a5b31a5cfbed6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d42b0c46607f91aedcc7745ed466b08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a3d42b0c46607f91aedcc7745ed466b08">tcpip_api_call</a> (<a class="el" href="tcpip__priv_8h.html#aa7ecde8c8d8012fe5c498f7ee58f9458">tcpip_api_call_fn</a> fn, struct <a class="el" href="structtcpip__api__call__data.html">tcpip_api_call_data</a> *call)</td></tr>
<tr class="separator:a3d42b0c46607f91aedcc7745ed466b08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1d3ef23817d7703fa75ed67bd45ea1d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#ab1d3ef23817d7703fa75ed67bd45ea1d">tcpip_callback_with_block</a> (<a class="el" href="tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> function, void *ctx, <a class="el" href="group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a> block)</td></tr>
<tr class="separator:ab1d3ef23817d7703fa75ed67bd45ea1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5b7a59f4c3f5f721ab9ee81f231c9fd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#ac5b7a59f4c3f5f721ab9ee81f231c9fd">tcpip_callbackmsg_delete</a> (struct tcpip_callback_msg *msg)</td></tr>
<tr class="separator:ac5b7a59f4c3f5f721ab9ee81f231c9fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee14fa2587a9ba9d23e4c7e16c4526ac"><td class="memItemLeft" align="right" valign="top">struct tcpip_callback_msg *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#aee14fa2587a9ba9d23e4c7e16c4526ac">tcpip_callbackmsg_new</a> (<a class="el" href="tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> function, void *ctx)</td></tr>
<tr class="separator:aee14fa2587a9ba9d23e4c7e16c4526ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f3a88b8df6ba3b9ed1c00e0a305e3db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a1f3a88b8df6ba3b9ed1c00e0a305e3db">tcpip_init</a> (<a class="el" href="tcpip_8h.html#a5fe07216c441e27c3028bcac60fa0992">tcpip_init_done_fn</a> initfunc, void *arg)</td></tr>
<tr class="separator:a1f3a88b8df6ba3b9ed1c00e0a305e3db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93043b3c66dbe4a15a60299c6199d102"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a93043b3c66dbe4a15a60299c6199d102">tcpip_inpkt</a> (struct <a class="el" href="structpbuf.html">pbuf</a> *p, struct <a class="el" href="structnetif.html">netif</a> *inp, <a class="el" href="netif_8h.html#ab2302b1b64ac7b95f24c6bab754a575e">netif_input_fn</a> input_fn)</td></tr>
<tr class="separator:a93043b3c66dbe4a15a60299c6199d102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae510f195171bed8499ae94e264a92717"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#ae510f195171bed8499ae94e264a92717">tcpip_input</a> (struct <a class="el" href="structpbuf.html">pbuf</a> *p, struct <a class="el" href="structnetif.html">netif</a> *inp)</td></tr>
<tr class="separator:ae510f195171bed8499ae94e264a92717"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12bdf37eddcd72c4178e3ea7d370395d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#a12bdf37eddcd72c4178e3ea7d370395d">tcpip_send_msg_wait_sem</a> (<a class="el" href="tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a> fn, void *apimsg, <a class="el" href="sem_8h.html#a900e36da93bb688c29fc8148f2f44e04">sys_sem_t</a> *sem)</td></tr>
<tr class="separator:a12bdf37eddcd72c4178e3ea7d370395d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfc81ad493f68714a22b3b8ea7d04378"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tcpip_8c.html#acfc81ad493f68714a22b3b8ea7d04378">tcpip_trycallback</a> (struct tcpip_callback_msg *msg)</td></tr>
<tr class="separator:acfc81ad493f68714a22b3b8ea7d04378"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a509daeff3c37e5659d0decb841b4e262"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a509daeff3c37e5659d0decb841b4e262">&#9670;&nbsp;</a></span>TCPIP_MBOX_FETCH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TCPIP_MBOX_FETCH</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">mbox, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">msg&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="sys_8h.html#a5bae9efa9c945dc810665dc4a7e60117">sys_mbox_fetch</a>(mbox, msg)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00067">67</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

</div>
</div>
<a id="a2485bb329e586fe0b440cff72bf364e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2485bb329e586fe0b440cff72bf364e4">&#9670;&nbsp;</a></span>TCPIP_MSG_VAR_ALLOC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TCPIP_MSG_VAR_ALLOC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#a8ff9b936b16d91844c0e32424e97f493">API_VAR_ALLOC</a>(struct <a class="el" href="structtcpip__msg.html">tcpip_msg</a>, MEMP_TCPIP_MSG_API, <a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>, <a class="el" href="group__infrastructure__errors.html#ggae2e66c7d13afc90ffecd6151680fbadcaaaeafdbf3aecc46864daa3cd829c7e05">ERR_MEM</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00049">49</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

</div>
</div>
<a id="aecf85047afc1ea35a976f7e279fb0f7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecf85047afc1ea35a976f7e279fb0f7b">&#9670;&nbsp;</a></span>TCPIP_MSG_VAR_DECLARE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TCPIP_MSG_VAR_DECLARE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#ab5d4a4fa91c4c144bedabf593a68b4dd">API_VAR_DECLARE</a>(struct <a class="el" href="structtcpip__msg.html">tcpip_msg</a>, <a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00048">48</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

</div>
</div>
<a id="acf5d75be78b6af27ca5ed13da28681d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf5d75be78b6af27ca5ed13da28681d4">&#9670;&nbsp;</a></span>TCPIP_MSG_VAR_FREE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TCPIP_MSG_VAR_FREE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#a30caebb5334f52d49ac938a507094094">API_VAR_FREE</a>(MEMP_TCPIP_MSG_API, <a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00050">50</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

</div>
</div>
<a id="ad42dbf6b1a12f07523637e44cf85756d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad42dbf6b1a12f07523637e44cf85756d">&#9670;&nbsp;</a></span>TCPIP_MSG_VAR_REF</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TCPIP_MSG_VAR_REF</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="tcpip__priv_8h.html#a3518256af0d1a422755a899b13c2b563">API_VAR_REF</a>(<a class="el" href="pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00047">47</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a55b4de3765c6a37b3f2b26a11603771c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55b4de3765c6a37b3f2b26a11603771c">&#9670;&nbsp;</a></span>mem_free_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> mem_free_callback </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A simple wrapper function that allows you to free heap memory from interrupt context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>the heap memory to free </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ERR_OK if callback could be enqueued, an err_t if not </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00491">491</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="mem_8c_source.html#l00419">mem_free()</a>, and <a class="el" href="tcpip_8c_source.html#l00229">tcpip_callback_with_block()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_a55b4de3765c6a37b3f2b26a11603771c_cgraph.png" border="0" usemap="#tcpip_8c_a55b4de3765c6a37b3f2b26a11603771c_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a5cdcb6b784fe0e8736a5b31a5cfbed6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cdcb6b784fe0e8736a5b31a5cfbed6c">&#9670;&nbsp;</a></span>pbuf_free_callback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> pbuf_free_callback </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structpbuf.html">pbuf</a> *&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>A simple wrapper function that allows you to free a pbuf from interrupt context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>The pbuf (chain) to be dereferenced. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ERR_OK if callback could be enqueued, an err_t if not </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00480">480</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="tcpip_8c_source.html#l00229">tcpip_callback_with_block()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_a5cdcb6b784fe0e8736a5b31a5cfbed6c_cgraph.png" border="0" usemap="#tcpip_8c_a5cdcb6b784fe0e8736a5b31a5cfbed6c_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a3d42b0c46607f91aedcc7745ed466b08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d42b0c46607f91aedcc7745ed466b08">&#9670;&nbsp;</a></span>tcpip_api_call()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_api_call </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tcpip__priv_8h.html#aa7ecde8c8d8012fe5c498f7ee58f9458">tcpip_api_call_fn</a>&#160;</td>
          <td class="paramname"><em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structtcpip__api__call__data.html">tcpip_api_call_data</a> *&#160;</td>
          <td class="paramname"><em>call</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Synchronously calls function in TCPIP thread and waits for its completion. It is recommended to use LWIP_TCPIP_CORE_LOCKING (preferred) or LWIP_NETCONN_SEM_PER_THREAD. If not, a semaphore is created and destroyed on every call which is usually an expensive/slow operation. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fn</td><td>Function to call </td></tr>
    <tr><td class="paramname">call</td><td>Call parameters </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Return value from tcpip_api_call_fn </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00356">356</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="err_8h_source.html#l00063">ERR_OK</a>, <a class="el" href="tcpip_8h_source.html#l00060">LOCK_TCPIP_CORE</a>, <a class="el" href="debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="tcpip__priv_8h_source.html#l00102">tcpip_api_call_data::sem</a>, <a class="el" href="sys_8h_source.html#l00271">sys_mbox_valid_val</a>, <a class="el" href="sys__arch_8c_source.html#l00052">sys_sem_new()</a>, <a class="el" href="tcpip_8c_source.html#l00048">TCPIP_MSG_VAR_DECLARE</a>, and <a class="el" href="tcpip_8h_source.html#l00061">UNLOCK_TCPIP_CORE</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_a3d42b0c46607f91aedcc7745ed466b08_cgraph.png" border="0" usemap="#tcpip_8c_a3d42b0c46607f91aedcc7745ed466b08_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="ab1d3ef23817d7703fa75ed67bd45ea1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1d3ef23817d7703fa75ed67bd45ea1d">&#9670;&nbsp;</a></span>tcpip_callback_with_block()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_callback_with_block </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a>&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ctx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__compiler__abstraction.html#ga4caecabca98b43919dd11be1c0d4cd8e">u8_t</a>&#160;</td>
          <td class="paramname"><em>block</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Call a specific function in the thread context of tcpip_thread for easy access synchronization. A function called in that way may access lwIP core code without fearing concurrent access.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">function</td><td>the function to call </td></tr>
    <tr><td class="paramname">ctx</td><td>parameter passed to f </td></tr>
    <tr><td class="paramname">block</td><td>1 to block until the request is posted, 0 to non-blocking mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ERR_OK if the function was called, another err_t if not </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00229">229</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, and <a class="el" href="sys_8h_source.html#l00271">sys_mbox_valid_val</a>.</p>

<p class="reference">Referenced by <a class="el" href="tcpip_8c_source.html#l00491">mem_free_callback()</a>, and <a class="el" href="tcpip_8c_source.html#l00480">pbuf_free_callback()</a>.</p>

</div>
</div>
<a id="ac5b7a59f4c3f5f721ab9ee81f231c9fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5b7a59f4c3f5f721ab9ee81f231c9fd">&#9670;&nbsp;</a></span>tcpip_callbackmsg_delete()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tcpip_callbackmsg_delete </td>
          <td>(</td>
          <td class="paramtype">struct tcpip_callback_msg *&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Free a callback message allocated by <a class="el" href="tcpip_8c.html#aee14fa2587a9ba9d23e4c7e16c4526ac">tcpip_callbackmsg_new()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>the message to free </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00421">421</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="memp_8c_source.html#l00469">memp_free()</a>, and <a class="el" href="tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_ac5b7a59f4c3f5f721ab9ee81f231c9fd_cgraph.png" border="0" usemap="#tcpip_8c_ac5b7a59f4c3f5f721ab9ee81f231c9fd_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="aee14fa2587a9ba9d23e4c7e16c4526ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee14fa2587a9ba9d23e4c7e16c4526ac">&#9670;&nbsp;</a></span>tcpip_callbackmsg_new()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct tcpip_callback_msg* tcpip_callbackmsg_new </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a>&#160;</td>
          <td class="paramname"><em>function</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ctx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Allocate a structure for a static callback message and initialize it. This is intended to be used to send "static" messages from interrupt context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">function</td><td>the function to call </td></tr>
    <tr><td class="paramname">ctx</td><td>parameter passed to function </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a struct pointer to pass to <a class="el" href="tcpip_8c.html#acfc81ad493f68714a22b3b8ea7d04378">tcpip_trycallback()</a>. </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00405">405</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="tcpip__priv_8h_source.html#l00142">tcpip_msg::ctx</a>, <a class="el" href="memp_8c_source.html#l00385">memp_malloc()</a>, <a class="el" href="tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="fat__string_8h_source.html#l00017">NULL</a>, and <a class="el" href="tcpip__priv_8h_source.html#l00120">TCPIP_MSG_CALLBACK_STATIC</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_aee14fa2587a9ba9d23e4c7e16c4526ac_cgraph.png" border="0" usemap="#tcpip_8c_aee14fa2587a9ba9d23e4c7e16c4526ac_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a1f3a88b8df6ba3b9ed1c00e0a305e3db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f3a88b8df6ba3b9ed1c00e0a305e3db">&#9670;&nbsp;</a></span>tcpip_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tcpip_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tcpip_8h.html#a5fe07216c441e27c3028bcac60fa0992">tcpip_init_done_fn</a>&#160;</td>
          <td class="paramname"><em>initfunc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize this module:</p><ul>
<li>initialize all sub modules</li>
<li>start the tcpip_thread</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">initfunc</td><td>a function to call when tcpip_thread is running and finished initializing </td></tr>
    <tr><td class="paramname">arg</td><td>argument to pass to initfunc </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00446">446</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="core_2init_8c_source.html#l00333">lwip_init()</a>.</p>

<p class="reference">Referenced by <a class="el" href="net_2init_8c_source.html#l00052">net_init()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_a1f3a88b8df6ba3b9ed1c00e0a305e3db_cgraph.png" border="0" usemap="#tcpip_8c_a1f3a88b8df6ba3b9ed1c00e0a305e3db_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a93043b3c66dbe4a15a60299c6199d102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93043b3c66dbe4a15a60299c6199d102">&#9670;&nbsp;</a></span>tcpip_inpkt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_inpkt </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structpbuf.html">pbuf</a> *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structnetif.html">netif</a> *&#160;</td>
          <td class="paramname"><em>inp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="netif_8h.html#ab2302b1b64ac7b95f24c6bab754a575e">netif_input_fn</a>&#160;</td>
          <td class="paramname"><em>input_fn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Pass a received packet to tcpip_thread for input processing</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the received packet </td></tr>
    <tr><td class="paramname">inp</td><td>the network interface on which the packet was received </td></tr>
    <tr><td class="paramname">input_fn</td><td>input function to call </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00161">161</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="structtcpip__msg.html#a7d9bc654de358efed5d9737a77bd7c71">tcpip_msg::inp</a>, <a class="el" href="tcpip__priv_8h_source.html#l00138">tcpip_msg::input_fn</a>, <a class="el" href="tcpip_8h_source.html#l00060">LOCK_TCPIP_CORE</a>, <a class="el" href="debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="debug_8h_source.html#l00164">LWIP_DEBUGF</a>, <a class="el" href="tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="tcpip__priv_8h_source.html#l00136">tcpip_msg::p</a>, <a class="el" href="sys_8h_source.html#l00271">sys_mbox_valid_val</a>, <a class="el" href="lwipopts_8h_source.html#l00482">TCPIP_DEBUG</a>, and <a class="el" href="tcpip_8h_source.html#l00061">UNLOCK_TCPIP_CORE</a>.</p>

<p class="reference">Referenced by <a class="el" href="tcpip_8c_source.html#l00204">tcpip_input()</a>.</p>

</div>
</div>
<a id="ae510f195171bed8499ae94e264a92717"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae510f195171bed8499ae94e264a92717">&#9670;&nbsp;</a></span>tcpip_input()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_input </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structpbuf.html">pbuf</a> *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structnetif.html">netif</a> *&#160;</td>
          <td class="paramname"><em>inp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Pass a received packet to tcpip_thread for input processing with ethernet_input or ip_input. Don't call directly, pass to <a class="el" href="group__netif.html#ga66970b5877dd6b0cae906bfa78d0cb4c">netif_add()</a> and call netif-&gt;input().</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>the received packet, p-&gt;payload pointing to the Ethernet header or to an IP header (if inp doesn't have NETIF_FLAG_ETHARP or NETIF_FLAG_ETHERNET flags) </td></tr>
    <tr><td class="paramname">inp</td><td>the network interface on which the packet was received </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00204">204</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="structtcpip__msg.html#a7d9bc654de358efed5d9737a77bd7c71">tcpip_msg::inp</a>, <a class="el" href="netif_8h_source.html#l00099">NETIF_FLAG_ETHARP</a>, <a class="el" href="netif_8h_source.html#l00103">NETIF_FLAG_ETHERNET</a>, <a class="el" href="tcpip__priv_8h_source.html#l00136">tcpip_msg::p</a>, and <a class="el" href="tcpip_8c_source.html#l00161">tcpip_inpkt()</a>.</p>

<p class="reference">Referenced by <a class="el" href="net_2init_8c_source.html#l00052">net_init()</a>, and <a class="el" href="netif_8c_source.html#l00163">netif_init()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_ae510f195171bed8499ae94e264a92717_cgraph.png" border="0" usemap="#tcpip_8c_ae510f195171bed8499ae94e264a92717_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a12bdf37eddcd72c4178e3ea7d370395d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12bdf37eddcd72c4178e3ea7d370395d">&#9670;&nbsp;</a></span>tcpip_send_msg_wait_sem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_send_msg_wait_sem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tcpip_8h.html#a35203296bb838f3b493839ffc6e7285d">tcpip_callback_fn</a>&#160;</td>
          <td class="paramname"><em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>apimsg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="sem_8h.html#a900e36da93bb688c29fc8148f2f44e04">sys_sem_t</a> *&#160;</td>
          <td class="paramname"><em>sem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sends a message to TCPIP thread to call a function. Caller thread blocks on on a provided semaphore, which ist NOT automatically signalled by TCPIP thread, this has to be done by the user. It is recommended to use LWIP_TCPIP_CORE_LOCKING since this is the way with least runtime overhead.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fn</td><td>function to be called from TCPIP thread </td></tr>
    <tr><td class="paramname">apimsg</td><td>argument to API function </td></tr>
    <tr><td class="paramname">sem</td><td>semaphore to wait on </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ERR_OK if the function was called, another err_t if not </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00322">322</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="err_8h_source.html#l00063">ERR_OK</a>, <a class="el" href="tcpip_8h_source.html#l00060">LOCK_TCPIP_CORE</a>, <a class="el" href="debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="arch_8h_source.html#l00315">LWIP_UNUSED_ARG</a>, <a class="el" href="tcpip__priv_8h_source.html#l00128">tcpip_msg::msg</a>, <a class="el" href="tcpip__priv_8h_source.html#l00133">tcpip_msg::sem</a>, <a class="el" href="sys_8h_source.html#l00271">sys_mbox_valid_val</a>, <a class="el" href="sys__arch_8c_source.html#l00132">sys_sem_valid()</a>, <a class="el" href="tcpip_8c_source.html#l00048">TCPIP_MSG_VAR_DECLARE</a>, and <a class="el" href="tcpip_8h_source.html#l00061">UNLOCK_TCPIP_CORE</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="tcpip_8c_a12bdf37eddcd72c4178e3ea7d370395d_cgraph.png" border="0" usemap="#tcpip_8c_a12bdf37eddcd72c4178e3ea7d370395d_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="acfc81ad493f68714a22b3b8ea7d04378"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfc81ad493f68714a22b3b8ea7d04378">&#9670;&nbsp;</a></span>tcpip_trycallback()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__infrastructure__errors.html#gaf02d9da80fd66b4f986d2c53d7231ddb">err_t</a> tcpip_trycallback </td>
          <td>(</td>
          <td class="paramtype">struct tcpip_callback_msg *&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Try to post a callback-message to the tcpip_thread mbox This is intended to be used to send "static" messages from interrupt context.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">msg</td><td>pointer to the message to post </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__sys__mbox.html#gacc06f47f34de04084e1d49788ce871b6">sys_mbox_trypost()</a> return code </dd></dl>

<p class="definition">Definition at line <a class="el" href="tcpip_8c_source.html#l00432">432</a> of file <a class="el" href="tcpip_8c_source.html">tcpip.c</a>.</p>

<p class="reference">References <a class="el" href="debug_8h_source.html#l00116">LWIP_ASSERT</a>, and <a class="el" href="sys_8h_source.html#l00271">sys_mbox_valid_val</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_d99d5d4662bf24521eef49da6a8cd34d.html">Dev</a></li><li class="navelem"><a class="el" href="dir_474a4b306371cf7e7f6fa12cb0b77df6.html">git</a></li><li class="navelem"><a class="el" href="dir_849109bbd106d461b128d63e5babcedf.html">UbixOS</a></li><li class="navelem"><a class="el" href="dir_6ec99f6d7d5182ba8913209ab70c9f18.html">sys</a></li><li class="navelem"><a class="el" href="dir_6ed706464e1919433e32bb89560817da.html">net</a></li><li class="navelem"><a class="el" href="dir_e16ebb3f6c4e83da2215a82440c6e7b3.html">api</a></li><li class="navelem"><a class="el" href="tcpip_8c.html">tcpip.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>