1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<head> 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5<meta http-equiv="X-UA-Compatible" content="IE=9"/> 6<meta name="generator" content="Doxygen 1.8.13"/> 7<meta name="viewport" content="width=device-width, initial-scale=1"/> 8<title>ISSDK: drivers/host/host_interface_service.c File Reference</title> 9<link href="tabs.css" rel="stylesheet" type="text/css"/> 10<script type="text/javascript" src="jquery.js"></script> 11<script type="text/javascript" src="dynsections.js"></script> 12<link href="issdk_stylesheet.css" rel="stylesheet" type="text/css" /> 13</head> 14<body> 15<div id="top"><!-- do not remove this div, it is closed by doxygen! --> 16<div id="titlearea"> 17<table cellspacing="0" cellpadding="0"> 18 <tbody> 19 <tr style="height: 56px;"> 20 <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td> 21 <td id="projectalign" style="padding-left: 0.5em;"> 22 <div id="projectname">ISSDK 23  <span id="projectnumber">1.8</span> 24 </div> 25 <div id="projectbrief">IoT Sensing Software Development Kit</div> 26 </td> 27 </tr> 28 </tbody> 29</table> 30</div> 31<!-- end header part --> 32<!-- Generated by Doxygen 1.8.13 --> 33<script type="text/javascript" src="menudata.js"></script> 34<script type="text/javascript" src="menu.js"></script> 35<script type="text/javascript"> 36$(function() { 37 initMenu('',false,false,'search.php','Search'); 38}); 39</script> 40<div id="main-nav"></div> 41<div id="nav-path" class="navpath"> 42 <ul> 43<li class="navelem"><a class="el" href="dir_14bc92f4b96c8519b376567118ac28b3.html">drivers</a></li><li class="navelem"><a class="el" href="dir_32464e4af507982e116bd625f186503f.html">host</a></li> </ul> 44</div> 45</div><!-- top --> 46<div class="header"> 47 <div class="summary"> 48<a href="#func-members">Functions</a> | 49<a href="#var-members">Variables</a> </div> 50 <div class="headertitle"> 51<div class="title">host_interface_service.c File Reference</div> </div> 52</div><!--header--> 53<div class="contents"> 54 55<p>The dhost_interface_servicec file implements host interface functions. 56<a href="#details">More...</a></p> 57<div class="textblock"><code>#include <stddef.h></code><br /> 58<code>#include <stdint.h></code><br /> 59<code>#include <string.h></code><br /> 60<code>#include <stdbool.h></code><br /> 61<code>#include "<a class="el" href="a00527_source.html">host_interface_service.h</a>"</code><br /> 62</div><div class="textblock"><div class="dynheader"> 63Include dependency graph for host_interface_service.c:</div> 64<div class="dyncontent"> 65<div class="center"><img src="a00525.png" border="0" usemap="#drivers_2host_2host__interface__service_8c" alt=""/></div> 66<map name="drivers_2host_2host__interface__service_8c" id="drivers_2host_2host__interface__service_8c"> 67<area shape="rect" id="node6" href="a00527.html" title="The host_interface_service.h file describes the structures and definitions for the host..." alt="" coords="115,95,276,121"/> 68</map> 69</div> 70</div> 71<p><a href="a00524_source.html">Go to the source code of this file.</a></p> 72<table class="memberdecls"> 73<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 74Functions</h2></td></tr> 75<tr class="memitem:aaa19dab07f472f4f64938a4902ef6eed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00524.html#aaa19dab07f472f4f64938a4902ef6eed">HOST_Initialize</a> (<a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> *pHandle, <a class="el" href="a00506.html#ac2f0e85d53496802058859ee0df43064">comm_type_t</a> type, void *pCommInstance, <a class="el" href="a00506.html#af25308bb61f1815e22013b1b963033f9">comm_instance_type_t</a> inType, <a class="el" href="a00527.html#a449a8227b87a5aac3a3d3de53464f50b">Host_Event_t</a> event, void *pInData)</td></tr> 76<tr class="memdesc:aaa19dab07f472f4f64938a4902ef6eed"><td class="mdescLeft"> </td><td class="mdescRight">The function to Initialize the Host. <a href="#aaa19dab07f472f4f64938a4902ef6eed">More...</a><br /></td></tr> 77<tr class="separator:aaa19dab07f472f4f64938a4902ef6eed"><td class="memSeparator" colspan="2"> </td></tr> 78<tr class="memitem:ae3e5d4f17870b1311c165af014a3e09f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00524.html#ae3e5d4f17870b1311c165af014a3e09f">HOST_Configure</a> (<a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> *pHandle, void *pConfigData)</td></tr> 79<tr class="memdesc:ae3e5d4f17870b1311c165af014a3e09f"><td class="mdescLeft"> </td><td class="mdescRight">The function to Configure the Host. <a href="#ae3e5d4f17870b1311c165af014a3e09f">More...</a><br /></td></tr> 80<tr class="separator:ae3e5d4f17870b1311c165af014a3e09f"><td class="memSeparator" colspan="2"> </td></tr> 81<tr class="memitem:ad708231312ecd814cb70c710fcdea37d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00524.html#ad708231312ecd814cb70c710fcdea37d">HOST_Send</a> (<a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> *pHandle, uint8_t *pData, uint32_t <a class="el" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>)</td></tr> 82<tr class="memdesc:ad708231312ecd814cb70c710fcdea37d"><td class="mdescLeft"> </td><td class="mdescRight">The function to Send the data to the host. <a href="#ad708231312ecd814cb70c710fcdea37d">More...</a><br /></td></tr> 83<tr class="separator:ad708231312ecd814cb70c710fcdea37d"><td class="memSeparator" colspan="2"> </td></tr> 84<tr class="memitem:aeb19f7f23fe9119b1a678cf7434a91dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00524.html#aeb19f7f23fe9119b1a678cf7434a91dc">HOST_Receive</a> (<a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> *pHandle, uint8_t *pData, uint32_t *pRecvSize, uint32_t <a class="el" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>, <a class="el" href="a00527.html#a333dc65f37b943eb8c12d887dc3debab">BlockRead_t</a> process)</td></tr> 85<tr class="memdesc:aeb19f7f23fe9119b1a678cf7434a91dc"><td class="mdescLeft"> </td><td class="mdescRight">The function to receive data from the host. <a href="#aeb19f7f23fe9119b1a678cf7434a91dc">More...</a><br /></td></tr> 86<tr class="separator:aeb19f7f23fe9119b1a678cf7434a91dc"><td class="memSeparator" colspan="2"> </td></tr> 87</table><table class="memberdecls"> 88<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> 89Variables</h2></td></tr> 90<tr class="memitem:ac81590625f10a1cfab541af41170eb3d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00506.html#a76b4055e42a8c47c9d26d52dcf64aaee">comm_interface_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00524.html#ac81590625f10a1cfab541af41170eb3d">commUART</a></td></tr> 91<tr class="separator:ac81590625f10a1cfab541af41170eb3d"><td class="memSeparator" colspan="2"> </td></tr> 92</table> 93<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 94<div class="textblock"><p>The dhost_interface_servicec file implements host interface functions. </p> 95 96<p class="definition">Definition in file <a class="el" href="a00524_source.html">host_interface_service.c</a>.</p> 97</div><h2 class="groupheader">Function Documentation</h2> 98<a id="ae3e5d4f17870b1311c165af014a3e09f"></a> 99<h2 class="memtitle"><span class="permalink"><a href="#ae3e5d4f17870b1311c165af014a3e09f">◆ </a></span>HOST_Configure()</h2> 100 101<div class="memitem"> 102<div class="memproto"> 103 <table class="memname"> 104 <tr> 105 <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> HOST_Configure </td> 106 <td>(</td> 107 <td class="paramtype"><a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> * </td> 108 <td class="paramname"><em>pHandle</em>, </td> 109 </tr> 110 <tr> 111 <td class="paramkey"></td> 112 <td></td> 113 <td class="paramtype">void * </td> 114 <td class="paramname"><em>pConfigData</em> </td> 115 </tr> 116 <tr> 117 <td></td> 118 <td>)</td> 119 <td></td><td></td> 120 </tr> 121 </table> 122</div><div class="memdoc"> 123 124<p>The function to Configure the Host. </p> 125<p>TBD</p> 126<dl class="params"><dt>Parameters</dt><dd> 127 <table class="params"> 128 <tr><td class="paramdir">[in]</td><td class="paramname">pHandle</td><td>- pointer to the interface handle </td></tr> 129 <tr><td class="paramdir">[in]</td><td class="paramname">pConfigData</td><td>- Host configuration information </td></tr> 130 </table> 131 </dd> 132</dl> 133<dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00527.html#ae3e5d4f17870b1311c165af014a3e09f" title="The function to Configure the Host. ">HOST_Configure()</a> returns the status .</dd></dl> 134<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl> 135<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl> 136 137<p class="definition">Definition at line <a class="el" href="a00524_source.html#l00049">49</a> of file <a class="el" href="a00524_source.html">host_interface_service.c</a>.</p> 138 139<p class="reference">References <a class="el" href="a00527_source.html#l00036">_host_interface_handle_::commHandle</a>, <a class="el" href="a00506_source.html#l00082">_comm_interface_::Configure</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00527_source.html#l00033">_host_interface_handle_::pCommInterface</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p> 140 141<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>.</p> 142<div class="dynheader"> 143Here is the call graph for this function:</div> 144<div class="dyncontent"> 145<div class="center"><img src="a00524_ae3e5d4f17870b1311c165af014a3e09f_cgraph.png" border="0" usemap="#a00524_ae3e5d4f17870b1311c165af014a3e09f_cgraph" alt=""/></div> 146<map name="a00524_ae3e5d4f17870b1311c165af014a3e09f_cgraph" id="a00524_ae3e5d4f17870b1311c165af014a3e09f_cgraph"> 147<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="172,5,233,32"/> 148</map> 149</div> 150<div class="dynheader"> 151Here is the caller graph for this function:</div> 152<div class="dyncontent"> 153<div class="center"><img src="a00524_ae3e5d4f17870b1311c165af014a3e09f_icgraph.png" border="0" usemap="#a00524_ae3e5d4f17870b1311c165af014a3e09f_icgraph" alt=""/></div> 154<map name="a00524_ae3e5d4f17870b1311c165af014a3e09f_icgraph" id="a00524_ae3e5d4f17870b1311c165af014a3e09f_icgraph"> 155<area shape="rect" id="node2" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="172,5,293,32"/> 156</map> 157</div> 158 159</div> 160</div> 161<a id="aaa19dab07f472f4f64938a4902ef6eed"></a> 162<h2 class="memtitle"><span class="permalink"><a href="#aaa19dab07f472f4f64938a4902ef6eed">◆ </a></span>HOST_Initialize()</h2> 163 164<div class="memitem"> 165<div class="memproto"> 166 <table class="memname"> 167 <tr> 168 <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> HOST_Initialize </td> 169 <td>(</td> 170 <td class="paramtype"><a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> * </td> 171 <td class="paramname"><em>pHandle</em>, </td> 172 </tr> 173 <tr> 174 <td class="paramkey"></td> 175 <td></td> 176 <td class="paramtype"><a class="el" href="a00506.html#ac2f0e85d53496802058859ee0df43064">comm_type_t</a> </td> 177 <td class="paramname"><em>type</em>, </td> 178 </tr> 179 <tr> 180 <td class="paramkey"></td> 181 <td></td> 182 <td class="paramtype">void * </td> 183 <td class="paramname"><em>pCommInstance</em>, </td> 184 </tr> 185 <tr> 186 <td class="paramkey"></td> 187 <td></td> 188 <td class="paramtype"><a class="el" href="a00506.html#af25308bb61f1815e22013b1b963033f9">comm_instance_type_t</a> </td> 189 <td class="paramname"><em>inType</em>, </td> 190 </tr> 191 <tr> 192 <td class="paramkey"></td> 193 <td></td> 194 <td class="paramtype"><a class="el" href="a00527.html#a449a8227b87a5aac3a3d3de53464f50b">Host_Event_t</a> </td> 195 <td class="paramname"><em>event</em>, </td> 196 </tr> 197 <tr> 198 <td class="paramkey"></td> 199 <td></td> 200 <td class="paramtype">void * </td> 201 <td class="paramname"><em>pInData</em> </td> 202 </tr> 203 <tr> 204 <td></td> 205 <td>)</td> 206 <td></td><td></td> 207 </tr> 208 </table> 209</div><div class="memdoc"> 210 211<p>The function to Initialize the Host. </p> 212<p>It initialize the host for the specified communucation channel and data format service.</p> 213<dl class="params"><dt>Parameters</dt><dd> 214 <table class="params"> 215 <tr><td class="paramdir">[in]</td><td class="paramname">pHandle</td><td>- pointer to the interface handle </td></tr> 216 <tr><td class="paramdir">[in]</td><td class="paramname">type-</td><td>host communication type </td></tr> 217 <tr><td class="paramdir">[in]</td><td class="paramname">pCommInstance</td><td>- pointer to a communication object. </td></tr> 218 <tr><td class="paramdir">[in]</td><td class="paramname">inType</td><td>- instanceType. </td></tr> 219 <tr><td class="paramdir">[in]</td><td class="paramname">event</td><td>- event handler callback </td></tr> 220 <tr><td class="paramdir">[in]</td><td class="paramname">pInData</td><td>- input data to underlying layers </td></tr> 221 </table> 222 </dd> 223</dl> 224<dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00527.html#aaa19dab07f472f4f64938a4902ef6eed" title="The function to Initialize the Host. ">HOST_Initialize()</a> returns the status .</dd></dl> 225<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl> 226<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl> 227 228<p class="definition">Definition at line <a class="el" href="a00524_source.html#l00026">26</a> of file <a class="el" href="a00524_source.html">host_interface_service.c</a>.</p> 229 230<p class="reference">References <a class="el" href="a00506_source.html#l00046">COMM_UART</a>, <a class="el" href="a00527_source.html#l00036">_host_interface_handle_::commHandle</a>, <a class="el" href="a00503_source.html#l00066">commUART</a>, <a class="el" href="a00527_source.html#l00037">_host_interface_handle_::event</a>, <a class="el" href="a00506_source.html#l00081">_comm_interface_::Init</a>, <a class="el" href="a00527_source.html#l00038">_host_interface_handle_::instanceType</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00527_source.html#l00033">_host_interface_handle_::pCommInterface</a>, <a class="el" href="a00527_source.html#l00034">_host_interface_handle_::pInData</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p> 231 232<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00100">Host_IO_Init()</a>.</p> 233<div class="dynheader"> 234Here is the call graph for this function:</div> 235<div class="dyncontent"> 236<div class="center"><img src="a00524_aaa19dab07f472f4f64938a4902ef6eed_cgraph.png" border="0" usemap="#a00524_aaa19dab07f472f4f64938a4902ef6eed_cgraph" alt=""/></div> 237<map name="a00524_aaa19dab07f472f4f64938a4902ef6eed_cgraph" id="a00524_aaa19dab07f472f4f64938a4902ef6eed_cgraph"> 238<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="164,5,225,32"/> 239</map> 240</div> 241<div class="dynheader"> 242Here is the caller graph for this function:</div> 243<div class="dyncontent"> 244<div class="center"><img src="a00524_aaa19dab07f472f4f64938a4902ef6eed_icgraph.png" border="0" usemap="#a00524_aaa19dab07f472f4f64938a4902ef6eed_icgraph" alt=""/></div> 245<map name="a00524_aaa19dab07f472f4f64938a4902ef6eed_icgraph" id="a00524_aaa19dab07f472f4f64938a4902ef6eed_icgraph"> 246<area shape="rect" id="node2" href="a00101.html#ab4b858422bbaae71aff2ab540ae0e2b1" title="Host_IO_Init" alt="" coords="164,5,257,32"/> 247</map> 248</div> 249 250</div> 251</div> 252<a id="aeb19f7f23fe9119b1a678cf7434a91dc"></a> 253<h2 class="memtitle"><span class="permalink"><a href="#aeb19f7f23fe9119b1a678cf7434a91dc">◆ </a></span>HOST_Receive()</h2> 254 255<div class="memitem"> 256<div class="memproto"> 257 <table class="memname"> 258 <tr> 259 <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> HOST_Receive </td> 260 <td>(</td> 261 <td class="paramtype"><a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> * </td> 262 <td class="paramname"><em>pHandle</em>, </td> 263 </tr> 264 <tr> 265 <td class="paramkey"></td> 266 <td></td> 267 <td class="paramtype">uint8_t * </td> 268 <td class="paramname"><em>pData</em>, </td> 269 </tr> 270 <tr> 271 <td class="paramkey"></td> 272 <td></td> 273 <td class="paramtype">uint32_t * </td> 274 <td class="paramname"><em>pRecvSize</em>, </td> 275 </tr> 276 <tr> 277 <td class="paramkey"></td> 278 <td></td> 279 <td class="paramtype">uint32_t </td> 280 <td class="paramname"><em>size</em>, </td> 281 </tr> 282 <tr> 283 <td class="paramkey"></td> 284 <td></td> 285 <td class="paramtype"><a class="el" href="a00527.html#a333dc65f37b943eb8c12d887dc3debab">BlockRead_t</a> </td> 286 <td class="paramname"><em>process</em> </td> 287 </tr> 288 <tr> 289 <td></td> 290 <td>)</td> 291 <td></td><td></td> 292 </tr> 293 </table> 294</div><div class="memdoc"> 295 296<p>The function to receive data from the host. </p> 297<p>BlockRead callback function will be called only if Host is initialized with Blocking Call communication instance, refer comm_instance_type_t inType <a class="el" href="a00527.html#aaa19dab07f472f4f64938a4902ef6eed" title="The function to Initialize the Host. ">HOST_Initialize()</a> function. If the host is initialized with blocking communication instance, This call will be blocked until BlockRead_t process returns provided BlockRead_t process is not NULL else it will be blocked until specified number of requested bytes are received. User can implement own logic to separate packet start and end de-limiter in BlockRead_t process to determine a stream or use provided Block Read function in the each Data Format. If the host is intialized with NonBlocking Communication instance. This call will be immediately returns and Users Needs to Syschronous data based on Host event HOST_INTERFACE_EVENT_RECEIVE_COMPLETE. </p><dl class="params"><dt>Parameters</dt><dd> 298 <table class="params"> 299 <tr><td class="paramdir">[in]</td><td class="paramname">pHandle</td><td>- pointer to the interface handle. </td></tr> 300 <tr><td class="paramdir">[out]</td><td class="paramname">pData</td><td>- pointer to data to be received. </td></tr> 301 <tr><td class="paramdir">[out]</td><td class="paramname">pRecvSize</td><td>- number of byte received. This field is for the future use. </td></tr> 302 <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>- Nnumber of byte intend to receive, if user know. This argument has no impact if "BlockRead_t 303process" is not NULL and communication instance is Blocking </td></tr> 304 <tr><td class="paramdir">[in]</td><td class="paramname">process</td><td>- process function for the block data read. NOTE: This parameter is not valid, if communication Read function is Nonblocking. The logic in the callback can start and end packet data detection to get the unknown receive length stream data from the host.</td></tr> 305 </table> 306 </dd> 307</dl> 308<dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00527.html#aeb19f7f23fe9119b1a678cf7434a91dc" title="The function to receive data from the host. ">HOST_Receive()</a> returns the status .</dd></dl> 309<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl> 310<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl> 311 312<p class="definition">Definition at line <a class="el" href="a00524_source.html#l00067">67</a> of file <a class="el" href="a00524_source.html">host_interface_service.c</a>.</p> 313 314<p class="reference">References <a class="el" href="a00506_source.html#l00057">COMM_BLOCKING</a>, <a class="el" href="a00527_source.html#l00036">_host_interface_handle_::commHandle</a>, <a class="el" href="a00527_source.html#l00020">HOST_INTERFACE_OK</a>, <a class="el" href="a00527_source.html#l00038">_host_interface_handle_::instanceType</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00527_source.html#l00033">_host_interface_handle_::pCommInterface</a>, <a class="el" href="a00506_source.html#l00084">_comm_interface_::Receive</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p> 315 316<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00100">Host_IO_Init()</a>, and <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>.</p> 317<div class="dynheader"> 318Here is the call graph for this function:</div> 319<div class="dyncontent"> 320<div class="center"><img src="a00524_aeb19f7f23fe9119b1a678cf7434a91dc_cgraph.png" border="0" usemap="#a00524_aeb19f7f23fe9119b1a678cf7434a91dc_cgraph" alt=""/></div> 321<map name="a00524_aeb19f7f23fe9119b1a678cf7434a91dc_cgraph" id="a00524_aeb19f7f23fe9119b1a678cf7434a91dc_cgraph"> 322<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="163,5,224,32"/> 323</map> 324</div> 325<div class="dynheader"> 326Here is the caller graph for this function:</div> 327<div class="dyncontent"> 328<div class="center"><img src="a00524_aeb19f7f23fe9119b1a678cf7434a91dc_icgraph.png" border="0" usemap="#a00524_aeb19f7f23fe9119b1a678cf7434a91dc_icgraph" alt=""/></div> 329<map name="a00524_aeb19f7f23fe9119b1a678cf7434a91dc_icgraph" id="a00524_aeb19f7f23fe9119b1a678cf7434a91dc_icgraph"> 330<area shape="rect" id="node2" href="a00101.html#ab4b858422bbaae71aff2ab540ae0e2b1" title="Host_IO_Init" alt="" coords="177,5,270,32"/> 331<area shape="rect" id="node3" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="163,56,284,83"/> 332</map> 333</div> 334 335</div> 336</div> 337<a id="ad708231312ecd814cb70c710fcdea37d"></a> 338<h2 class="memtitle"><span class="permalink"><a href="#ad708231312ecd814cb70c710fcdea37d">◆ </a></span>HOST_Send()</h2> 339 340<div class="memitem"> 341<div class="memproto"> 342 <table class="memname"> 343 <tr> 344 <td class="memname"><a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t</a> HOST_Send </td> 345 <td>(</td> 346 <td class="paramtype"><a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> * </td> 347 <td class="paramname"><em>pHandle</em>, </td> 348 </tr> 349 <tr> 350 <td class="paramkey"></td> 351 <td></td> 352 <td class="paramtype">uint8_t * </td> 353 <td class="paramname"><em>pData</em>, </td> 354 </tr> 355 <tr> 356 <td class="paramkey"></td> 357 <td></td> 358 <td class="paramtype">uint32_t </td> 359 <td class="paramname"><em>size</em> </td> 360 </tr> 361 <tr> 362 <td></td> 363 <td>)</td> 364 <td></td><td></td> 365 </tr> 366 </table> 367</div><div class="memdoc"> 368 369<p>The function to Send the data to the host. </p> 370<p>TBD</p> 371<dl class="params"><dt>Parameters</dt><dd> 372 <table class="params"> 373 <tr><td class="paramdir">[in]</td><td class="paramname">pHandle</td><td>- pointer to the interface handle </td></tr> 374 <tr><td class="paramdir">[in]</td><td class="paramname">pData</td><td>- pointer to a data to send </td></tr> 375 <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>- number of byte to send </td></tr> 376 </table> 377 </dd> 378</dl> 379<dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00527.html#ad708231312ecd814cb70c710fcdea37d" title="The function to Send the data to the host. ">HOST_Send()</a> returns the status .</dd></dl> 380<dl class="section user"><dt>Constraints:</dt><dd>None</dd></dl> 381<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl> 382 383<p class="definition">Definition at line <a class="el" href="a00524_source.html#l00058">58</a> of file <a class="el" href="a00524_source.html">host_interface_service.c</a>.</p> 384 385<p class="reference">References <a class="el" href="a00527_source.html#l00036">_host_interface_handle_::commHandle</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00527_source.html#l00033">_host_interface_handle_::pCommInterface</a>, <a class="el" href="a00506_source.html#l00083">_comm_interface_::Send</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p> 386 387<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00136">Host_IO_Send()</a>.</p> 388<div class="dynheader"> 389Here is the call graph for this function:</div> 390<div class="dyncontent"> 391<div class="center"><img src="a00524_ad708231312ecd814cb70c710fcdea37d_cgraph.png" border="0" usemap="#a00524_ad708231312ecd814cb70c710fcdea37d_cgraph" alt=""/></div> 392<map name="a00524_ad708231312ecd814cb70c710fcdea37d_cgraph" id="a00524_ad708231312ecd814cb70c710fcdea37d_cgraph"> 393<area shape="rect" id="node2" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="148,5,209,32"/> 394</map> 395</div> 396<div class="dynheader"> 397Here is the caller graph for this function:</div> 398<div class="dyncontent"> 399<div class="center"><img src="a00524_ad708231312ecd814cb70c710fcdea37d_icgraph.png" border="0" usemap="#a00524_ad708231312ecd814cb70c710fcdea37d_icgraph" alt=""/></div> 400<map name="a00524_ad708231312ecd814cb70c710fcdea37d_icgraph" id="a00524_ad708231312ecd814cb70c710fcdea37d_icgraph"> 401<area shape="rect" id="node2" href="a00101.html#a719ad6da4502e713f1573b5353af9617" title="Host_IO_Send" alt="" coords="148,5,255,32"/> 402</map> 403</div> 404 405</div> 406</div> 407<h2 class="groupheader">Variable Documentation</h2> 408<a id="ac81590625f10a1cfab541af41170eb3d"></a> 409<h2 class="memtitle"><span class="permalink"><a href="#ac81590625f10a1cfab541af41170eb3d">◆ </a></span>commUART</h2> 410 411<div class="memitem"> 412<div class="memproto"> 413 <table class="memname"> 414 <tr> 415 <td class="memname"><a class="el" href="a00506.html#a76b4055e42a8c47c9d26d52dcf64aaee">comm_interface_t</a> commUART</td> 416 </tr> 417 </table> 418</div><div class="memdoc"> 419 420<p class="definition">Definition at line <a class="el" href="a00503_source.html#l00066">66</a> of file <a class="el" href="a00503_source.html">comm_if_uart.c</a>.</p> 421 422<p class="reference">Referenced by <a class="el" href="a00524_source.html#l00026">HOST_Initialize()</a>.</p> 423 424</div> 425</div> 426</div><!-- contents --> 427 428<hr class="footer"/><address class="footer"><small> 429© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 430</small></address> 431</body> 432</html> 433