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: sensors/host_io_uart.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_c77a8e2546a9c75bbba96be2ef542c8e.html">sensors</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_io_uart.c File Reference</div> </div> 52</div><!--header--> 53<div class="contents"> 54 55<p>The <a class="el" href="a00098.html" title="The host_io_uart.c file contains definitions for UART based streaming interface for sending and resei...">host_io_uart.c</a> file contains definitions for UART based streaming interface for sending and reseiving messages to and from Host using ISSDK Host Protocol. 56<a href="#details">More...</a></p> 57<div class="textblock"><code>#include <stdlib.h></code><br /> 58<code>#include "fsl_common.h"</code><br /> 59<code>#include "<a class="el" href="a00101_source.html">host_io_uart.h</a>"</code><br /> 60<code>#include "<a class="el" href="a00170_source.html">register_io_i2c.h</a>"</code><br /> 61<code>#include "<a class="el" href="a00176_source.html">register_io_spi.h</a>"</code><br /> 62<code>#include "<a class="el" href="a00512_source.html">data_format_hdlc.h</a>"</code><br /> 63<code>#include "<a class="el" href="a00518_source.html">data_format_json.h</a>"</code><br /> 64</div><div class="textblock"><div class="dynheader"> 65Include dependency graph for host_io_uart.c:</div> 66<div class="dyncontent"> 67<div class="center"><img src="a00099.png" border="0" usemap="#sensors_2host__io__uart_8c" alt=""/></div> 68<map name="sensors_2host__io__uart_8c" id="sensors_2host__io__uart_8c"> 69<area shape="rect" id="node4" href="a00101.html" title="The host_io_uart.h file contains the Host Protocol interface definitions and configuration. " alt="" coords="569,155,673,181"/> 70<area shape="rect" id="node5" href="a00170.html" title="The register_io_i2c.h file declares low-level interface functions for reading and writing sensor regi..." alt="" coords="272,80,389,107"/> 71<area shape="rect" id="node6" href="a00176.html" title="The register_io_spi.h file declares low-level interface functions for reading and writing sensor regi..." alt="" coords="413,80,531,107"/> 72<area shape="rect" id="node7" href="a00512.html" title="The data_format_hdlc.h file contains the Host interface definitions and configuration. " alt="" coords="555,80,687,107"/> 73<area shape="rect" id="node8" href="a00518.html" title="The format_json.h file describes the structures and definitions for the data-format standard JSON..." alt="" coords="711,80,843,107"/> 74</map> 75</div> 76</div> 77<p><a href="a00098_source.html">Go to the source code of this file.</a></p> 78<table class="memberdecls"> 79<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 80Functions</h2></td></tr> 81<tr class="memitem:a5f7481a79b18cfdeb27562acebca6ba0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a5f7481a79b18cfdeb27562acebca6ba0">HOST_SignalEvent_t</a> (uint32_t event)</td></tr> 82<tr class="memdesc:a5f7481a79b18cfdeb27562acebca6ba0"><td class="mdescLeft"> </td><td class="mdescRight">Defines the HOST UART signal event handler. <a href="#a5f7481a79b18cfdeb27562acebca6ba0">More...</a><br /></td></tr> 83<tr class="separator:a5f7481a79b18cfdeb27562acebca6ba0"><td class="memSeparator" colspan="2"> </td></tr> 84<tr class="memitem:a1b00cf0487d683b14751aeadbd18fa77"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a1b00cf0487d683b14751aeadbd18fa77">getSlaveIndex</a> (uint8_t slaveAddress)</td></tr> 85<tr class="separator:a1b00cf0487d683b14751aeadbd18fa77"><td class="memSeparator" colspan="2"> </td></tr> 86<tr class="memitem:a68a2c033a0f6f967149dca76897f5c8a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a68a2c033a0f6f967149dca76897f5c8a">Host_IO_Add_ISO_Header</a> (uint8_t streamID, uint8_t *pStreamingPacket, size_t sizePayload)</td></tr> 87<tr class="separator:a68a2c033a0f6f967149dca76897f5c8a"><td class="memSeparator" colspan="2"> </td></tr> 88<tr class="memitem:ab4b858422bbaae71aff2ab540ae0e2b1"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#ab4b858422bbaae71aff2ab540ae0e2b1">Host_IO_Init</a> (ARM_DRIVER_USART *pDrv, void *pBus, void *pDevInfo, void *spiSlaveParams, uint16_t slaveAddress)</td></tr> 89<tr class="separator:ab4b858422bbaae71aff2ab540ae0e2b1"><td class="memSeparator" colspan="2"> </td></tr> 90<tr class="memitem:a719ad6da4502e713f1573b5353af9617"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a719ad6da4502e713f1573b5353af9617">Host_IO_Send</a> (uint8_t *pMsg, size_t <a class="el" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>, uint8_t encoding)</td></tr> 91<tr class="separator:a719ad6da4502e713f1573b5353af9617"><td class="memSeparator" colspan="2"> </td></tr> 92<tr class="memitem:a3924d21a0703878695ebdb68f720fff9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a3924d21a0703878695ebdb68f720fff9">Host_IO_Receive</a> (<a class="el" href="a00101.html#a4b0be146f341173bd85affcec8c68f52">host_cmd_proc_fn_t</a> <a class="el" href="a00476.html#a0076d28c9a17cd6908c7b3b0f5c6006c">process_host_command</a>, uint8_t encoding)</td></tr> 93<tr class="separator:a3924d21a0703878695ebdb68f720fff9"><td class="memSeparator" colspan="2"> </td></tr> 94</table><table class="memberdecls"> 95<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> 96Variables</h2></td></tr> 97<tr class="memitem:a5d3ae17c131354598c173e13c349e81b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a5d3ae17c131354598c173e13c349e81b">gHostHandle</a> = {0}</td></tr> 98<tr class="separator:a5d3ae17c131354598c173e13c349e81b"><td class="memSeparator" colspan="2"> </td></tr> 99<tr class="memitem:a286445357d1a40bad2dd064f0f653510"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a286445357d1a40bad2dd064f0f653510">gUartRxBuff</a></td></tr> 100<tr class="separator:a286445357d1a40bad2dd064f0f653510"><td class="memSeparator" colspan="2"> </td></tr> 101<tr class="memitem:a7cfa89fd8cb56f14a3221987c7296eca"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a7cfa89fd8cb56f14a3221987c7296eca">gHostRxBuff</a> [<a class="el" href="a00101.html#adb701b5640d108f34d7395a98547b724">HOST_RX_BUF_LEN</a>]</td></tr> 102<tr class="separator:a7cfa89fd8cb56f14a3221987c7296eca"><td class="memSeparator" colspan="2"> </td></tr> 103<tr class="memitem:abed4be42ee7c54dcc1132ab8897f06a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a02927.html">host_rx_packet_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#abed4be42ee7c54dcc1132ab8897f06a6">gHostRxPkt</a> = {.pRxbuf = <a class="el" href="a00098.html#a7cfa89fd8cb56f14a3221987c7296eca">gHostRxBuff</a>}</td></tr> 104<tr class="separator:abed4be42ee7c54dcc1132ab8897f06a6"><td class="memSeparator" colspan="2"> </td></tr> 105<tr class="memitem:a8c0bca493307d9132485c8a4e71fd03e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a02923.html">host_channel_params_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a8c0bca493307d9132485c8a4e71fd03e">gHostChannelParams</a> [<a class="el" href="a00101.html#ae7d102c35c708dd10f5dbe5e01685ce4">MAX_HOST_STREAMS</a>]</td></tr> 106<tr class="separator:a8c0bca493307d9132485c8a4e71fd03e"><td class="memSeparator" colspan="2"> </td></tr> 107<tr class="memitem:aaa9965c3c746bcf8e7e9eda2117056ad"><td class="memItemLeft" align="right" valign="top">volatile bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#aaa9965c3c746bcf8e7e9eda2117056ad">bUartTxComplete</a></td></tr> 108<tr class="separator:aaa9965c3c746bcf8e7e9eda2117056ad"><td class="memSeparator" colspan="2"> </td></tr> 109<tr class="memitem:aa86e36e002f9c35901d49a9a99f47aa4"><td class="memItemLeft" align="right" valign="top">volatile bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#aa86e36e002f9c35901d49a9a99f47aa4">bUartRxPendingMsg</a></td></tr> 110<tr class="separator:aa86e36e002f9c35901d49a9a99f47aa4"><td class="memSeparator" colspan="2"> </td></tr> 111<tr class="memitem:a0a02605045d9d7117b2c54ec8db7daeb"><td class="memItemLeft" align="right" valign="top">volatile bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00098.html#a0a02605045d9d7117b2c54ec8db7daeb">bUartErrorMsg</a></td></tr> 112<tr class="separator:a0a02605045d9d7117b2c54ec8db7daeb"><td class="memSeparator" colspan="2"> </td></tr> 113</table> 114<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 115<div class="textblock"><p>The <a class="el" href="a00098.html" title="The host_io_uart.c file contains definitions for UART based streaming interface for sending and resei...">host_io_uart.c</a> file contains definitions for UART based streaming interface for sending and reseiving messages to and from Host using ISSDK Host Protocol. </p> 116 117<p class="definition">Definition in file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 118</div><h2 class="groupheader">Function Documentation</h2> 119<a id="a1b00cf0487d683b14751aeadbd18fa77"></a> 120<h2 class="memtitle"><span class="permalink"><a href="#a1b00cf0487d683b14751aeadbd18fa77">◆ </a></span>getSlaveIndex()</h2> 121 122<div class="memitem"> 123<div class="memproto"> 124 <table class="memname"> 125 <tr> 126 <td class="memname">uint8_t getSlaveIndex </td> 127 <td>(</td> 128 <td class="paramtype">uint8_t </td> 129 <td class="paramname"><em>slaveAddress</em></td><td>)</td> 130 <td></td> 131 </tr> 132 </table> 133</div><div class="memdoc"> 134 135<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00064">64</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 136 137<p class="reference">References <a class="el" href="a00101_source.html#l00030">MAX_HOST_STREAMS</a>.</p> 138 139<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>.</p> 140<div class="dynheader"> 141Here is the caller graph for this function:</div> 142<div class="dyncontent"> 143<div class="center"><img src="a00098_a1b00cf0487d683b14751aeadbd18fa77_icgraph.png" border="0" usemap="#a00098_a1b00cf0487d683b14751aeadbd18fa77_icgraph" alt=""/></div> 144<map name="a00098_a1b00cf0487d683b14751aeadbd18fa77_icgraph" id="a00098_a1b00cf0487d683b14751aeadbd18fa77_icgraph"> 145<area shape="rect" id="node2" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="156,5,277,32"/> 146</map> 147</div> 148 149</div> 150</div> 151<a id="a68a2c033a0f6f967149dca76897f5c8a"></a> 152<h2 class="memtitle"><span class="permalink"><a href="#a68a2c033a0f6f967149dca76897f5c8a">◆ </a></span>Host_IO_Add_ISO_Header()</h2> 153 154<div class="memitem"> 155<div class="memproto"> 156 <table class="memname"> 157 <tr> 158 <td class="memname">void Host_IO_Add_ISO_Header </td> 159 <td>(</td> 160 <td class="paramtype">uint8_t </td> 161 <td class="paramname"><em>streamID</em>, </td> 162 </tr> 163 <tr> 164 <td class="paramkey"></td> 165 <td></td> 166 <td class="paramtype">uint8_t * </td> 167 <td class="paramname"><em>pStreamingPacket</em>, </td> 168 </tr> 169 <tr> 170 <td class="paramkey"></td> 171 <td></td> 172 <td class="paramtype">size_t </td> 173 <td class="paramname"><em>sizePayload</em> </td> 174 </tr> 175 <tr> 176 <td></td> 177 <td>)</td> 178 <td></td><td></td> 179 </tr> 180 </table> 181</div><div class="memdoc"> 182 183<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00086">86</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 184 185<p class="reference">References <a class="el" href="a00101_source.html#l00090">HOST_ISO_LEN_LSB_OFFSET</a>, <a class="el" href="a00101_source.html#l00089">HOST_ISO_LEN_MSB_OFFSET</a>, <a class="el" href="a00101_source.html#l00091">HOST_ISO_PAYLOAD_OFFSET</a>, <a class="el" href="a00101_source.html#l00081">HOST_MSG_HDR_TAG_OFFSET</a>, and <a class="el" href="a00101_source.html#l00058">HOST_PRO_INT_ISO_TAG</a>.</p> 186 187<p class="reference">Referenced by <a class="el" href="a00401_source.html#l00227">main()</a>.</p> 188<div class="dynheader"> 189Here is the caller graph for this function:</div> 190<div class="dyncontent"> 191<div class="center"><img src="a00098_a68a2c033a0f6f967149dca76897f5c8a_icgraph.png" border="0" usemap="#a00098_a68a2c033a0f6f967149dca76897f5c8a_icgraph" alt=""/></div> 192<map name="a00098_a68a2c033a0f6f967149dca76897f5c8a_icgraph" id="a00098_a68a2c033a0f6f967149dca76897f5c8a_icgraph"> 193<area shape="rect" id="node2" href="a00401.html#a840291bc02cba5474a4cb46a9b9566fe" title="Main function. " alt="" coords="229,5,280,32"/> 194</map> 195</div> 196 197</div> 198</div> 199<a id="ab4b858422bbaae71aff2ab540ae0e2b1"></a> 200<h2 class="memtitle"><span class="permalink"><a href="#ab4b858422bbaae71aff2ab540ae0e2b1">◆ </a></span>Host_IO_Init()</h2> 201 202<div class="memitem"> 203<div class="memproto"> 204 <table class="memname"> 205 <tr> 206 <td class="memname">uint8_t Host_IO_Init </td> 207 <td>(</td> 208 <td class="paramtype">ARM_DRIVER_USART * </td> 209 <td class="paramname"><em>pDrv</em>, </td> 210 </tr> 211 <tr> 212 <td class="paramkey"></td> 213 <td></td> 214 <td class="paramtype">void * </td> 215 <td class="paramname"><em>pBus</em>, </td> 216 </tr> 217 <tr> 218 <td class="paramkey"></td> 219 <td></td> 220 <td class="paramtype">void * </td> 221 <td class="paramname"><em>pDevInfo</em>, </td> 222 </tr> 223 <tr> 224 <td class="paramkey"></td> 225 <td></td> 226 <td class="paramtype">void * </td> 227 <td class="paramname"><em>spiSlaveParams</em>, </td> 228 </tr> 229 <tr> 230 <td class="paramkey"></td> 231 <td></td> 232 <td class="paramtype">uint16_t </td> 233 <td class="paramname"><em>slaveAddress</em> </td> 234 </tr> 235 <tr> 236 <td></td> 237 <td>)</td> 238 <td></td><td></td> 239 </tr> 240 </table> 241</div><div class="memdoc"> 242 243<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00100">100</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 244 245<p class="reference">References <a class="el" href="a00098_source.html#l00041">bUartErrorMsg</a>, <a class="el" href="a00098_source.html#l00041">bUartRxPendingMsg</a>, <a class="el" href="a00098_source.html#l00041">bUartTxComplete</a>, <a class="el" href="a00506_source.html#l00058">COMM_NONBLOCKING</a>, <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="a00101_source.html#l00038">host_channel_params_t::deviceInfo</a>, <a class="el" href="a00098_source.html#l00038">gUartRxBuff</a>, <a class="el" href="a00524_source.html#l00026">HOST_Initialize()</a>, <a class="el" href="a00524_source.html#l00067">HOST_Receive()</a>, <a class="el" href="a00098_source.html#l00047">HOST_SignalEvent_t()</a>, <a class="el" href="a00101_source.html#l00030">MAX_HOST_STREAMS</a>, <a class="el" href="a00506_source.html#l00030">_comm_handle_::pComm</a>, <a class="el" href="a00101_source.html#l00039">host_channel_params_t::pCommDrv</a>, <a class="el" href="a00527_source.html#l00033">_host_interface_handle_::pCommInterface</a>, <a class="el" href="a00101_source.html#l00040">host_channel_params_t::pSPIparams</a>, and <a class="el" href="a00101_source.html#l00041">host_channel_params_t::slaveAddress</a>.</p> 246 247<p class="reference">Referenced by <a class="el" href="a00401_source.html#l00227">main()</a>.</p> 248<div class="dynheader"> 249Here is the call graph for this function:</div> 250<div class="dyncontent"> 251<div class="center"><img src="a00098_ab4b858422bbaae71aff2ab540ae0e2b1_cgraph.png" border="0" usemap="#a00098_ab4b858422bbaae71aff2ab540ae0e2b1_cgraph" alt=""/></div> 252<map name="a00098_ab4b858422bbaae71aff2ab540ae0e2b1_cgraph" id="a00098_ab4b858422bbaae71aff2ab540ae0e2b1_cgraph"> 253<area shape="rect" id="node2" href="a00524.html#aaa19dab07f472f4f64938a4902ef6eed" title="The function to Initialize the Host. " alt="" coords="163,5,273,32"/> 254<area shape="rect" id="node3" href="a00524.html#aeb19f7f23fe9119b1a678cf7434a91dc" title="The function to receive data from the host. " alt="" coords="163,56,273,83"/> 255<area shape="rect" id="node4" href="a00098.html#a5f7481a79b18cfdeb27562acebca6ba0" title="Defines the HOST UART signal event handler. " alt="" coords="147,107,289,133"/> 256</map> 257</div> 258<div class="dynheader"> 259Here is the caller graph for this function:</div> 260<div class="dyncontent"> 261<div class="center"><img src="a00098_ab4b858422bbaae71aff2ab540ae0e2b1_icgraph.png" border="0" usemap="#a00098_ab4b858422bbaae71aff2ab540ae0e2b1_icgraph" alt=""/></div> 262<map name="a00098_ab4b858422bbaae71aff2ab540ae0e2b1_icgraph" id="a00098_ab4b858422bbaae71aff2ab540ae0e2b1_icgraph"> 263<area shape="rect" id="node2" href="a00401.html#a840291bc02cba5474a4cb46a9b9566fe" title="Main function. " alt="" coords="147,5,197,32"/> 264</map> 265</div> 266 267</div> 268</div> 269<a id="a3924d21a0703878695ebdb68f720fff9"></a> 270<h2 class="memtitle"><span class="permalink"><a href="#a3924d21a0703878695ebdb68f720fff9">◆ </a></span>Host_IO_Receive()</h2> 271 272<div class="memitem"> 273<div class="memproto"> 274 <table class="memname"> 275 <tr> 276 <td class="memname">void Host_IO_Receive </td> 277 <td>(</td> 278 <td class="paramtype"><a class="el" href="a00101.html#a4b0be146f341173bd85affcec8c68f52">host_cmd_proc_fn_t</a> </td> 279 <td class="paramname"><em>process_host_command</em>, </td> 280 </tr> 281 <tr> 282 <td class="paramkey"></td> 283 <td></td> 284 <td class="paramtype">uint8_t </td> 285 <td class="paramname"><em>encoding</em> </td> 286 </tr> 287 <tr> 288 <td></td> 289 <td>)</td> 290 <td></td><td></td> 291 </tr> 292 </table> 293</div><div class="memdoc"> 294 295<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00207">207</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 296 297<p class="reference">References <a class="el" href="a00098_source.html#l00041">bUartErrorMsg</a>, <a class="el" href="a00098_source.html#l00041">bUartRxPendingMsg</a>, <a class="el" href="a00506_source.html#l00038">_comm_control_::control</a>, <a class="el" href="a00098_source.html#l00064">getSlaveIndex()</a>, <a class="el" href="a00098_source.html#l00038">gHostRxBuff</a>, <a class="el" href="a00098_source.html#l00038">gUartRxBuff</a>, <a class="el" href="a00509_source.html#l00024">HDLC_Process_Rx_Byte()</a>, <a class="el" href="a00101_source.html#l00029">HOST_CMD_RSP_LEN</a>, <a class="el" href="a00524_source.html#l00049">HOST_Configure()</a>, <a class="el" href="a00101_source.html#l00087">HOST_DEV_HDR_VER_OFFSET</a>, <a class="el" href="a00101_source.html#l00088">HOST_DEV_LEN_STR_OFFSET</a>, <a class="el" href="a00101_source.html#l00028">HOST_DEV_RSP_LEN</a>, <a class="el" href="a00101_source.html#l00074">HOST_FORMAT_HDLC</a>, <a class="el" href="a00101_source.html#l00075">HOST_FORMAT_JSON</a>, <a class="el" href="a00527_source.html#l00021">HOST_INTERFACE_VERSION</a>, <a class="el" href="a00098_source.html#l00136">Host_IO_Send()</a>, <a class="el" href="a00101_source.html#l00090">HOST_ISO_LEN_LSB_OFFSET</a>, <a class="el" href="a00101_source.html#l00089">HOST_ISO_LEN_MSB_OFFSET</a>, <a class="el" href="a00101_source.html#l00091">HOST_ISO_PAYLOAD_OFFSET</a>, <a class="el" href="a00101_source.html#l00095">HOST_MSG_CMD_LENGTH_OFFSET</a>, <a class="el" href="a00101_source.html#l00085">HOST_MSG_CMD_OPC_OFFSET</a>, <a class="el" href="a00101_source.html#l00093">HOST_MSG_CMD_REGIS_ADDR_OFFSET</a>, <a class="el" href="a00101_source.html#l00092">HOST_MSG_CMD_SLAVE_ADDR_OFFSET</a>, <a class="el" href="a00101_source.html#l00094">HOST_MSG_CMD_VALUE_OFFSET</a>, <a class="el" href="a00101_source.html#l00082">HOST_MSG_HDR_SEQ_OFFSET</a>, <a class="el" href="a00101_source.html#l00081">HOST_MSG_HDR_TAG_OFFSET</a>, <a class="el" href="a00101_source.html#l00084">HOST_MSG_LEN_LSB_OFFSET</a>, <a class="el" href="a00101_source.html#l00083">HOST_MSG_LEN_MSB_OFFSET</a>, <a class="el" href="a00101_source.html#l00066">HOST_PRO_CMD_R_REG_TAG</a>, <a class="el" href="a00101_source.html#l00065">HOST_PRO_CMD_W_REG_TAG</a>, <a class="el" href="a00101_source.html#l00070">HOST_PRO_CMD_WR_ACK_TAG</a>, <a class="el" href="a00101_source.html#l00069">HOST_PRO_CMD_WR_NAK_TAG</a>, <a class="el" href="a00101_source.html#l00057">HOST_PRO_INT_CMD_TAG</a>, <a class="el" href="a00101_source.html#l00059">HOST_PRO_INT_DEV_TAG</a>, <a class="el" href="a00101_source.html#l00058">HOST_PRO_INT_ISO_TAG</a>, <a class="el" href="a00524_source.html#l00067">HOST_Receive()</a>, <a class="el" href="a00101_source.html#l00027">HOST_RSP_HDR_LEN</a>, <a class="el" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f">int32_t()</a>, <a class="el" href="a00515_source.html#l00158">JSON_Process_Rx_Byte()</a>, <a class="el" href="a00101_source.html#l00052">host_rx_packet_t::mIndex</a>, <a class="el" href="a00401_source.html#l00144">process_host_command()</a>, <a class="el" href="a00167_source.html#l00149">Register_I2C_BlockWrite()</a>, <a class="el" href="a00167_source.html#l00310">Register_I2C_Read()</a>, <a class="el" href="a00173_source.html#l00162">Register_SPI_BlockWrite()</a>, <a class="el" href="a00173_source.html#l00313">Register_SPI_Read()</a>, and <a class="el" href="a00359_source.html#l00248">status</a>.</p> 298 299<p class="reference">Referenced by <a class="el" href="a00401_source.html#l00227">main()</a>.</p> 300<div class="dynheader"> 301Here is the call graph for this function:</div> 302<div class="dyncontent"> 303<div class="center"><img src="a00098_a3924d21a0703878695ebdb68f720fff9_cgraph.png" border="0" usemap="#a00098_a3924d21a0703878695ebdb68f720fff9_cgraph" alt=""/></div> 304<map name="a00098_a3924d21a0703878695ebdb68f720fff9_cgraph" id="a00098_a3924d21a0703878695ebdb68f720fff9_cgraph"> 305<area shape="rect" id="node2" href="a00098.html#a1b00cf0487d683b14751aeadbd18fa77" title="getSlaveIndex" alt="" coords="208,5,311,32"/> 306<area shape="rect" id="node3" href="a00509.html#af69cf775e44516f29d6ba5a93eacfbd8" title="HDLC_Process_Rx_Byte" alt="" coords="175,56,343,83"/> 307<area shape="rect" id="node4" href="a00524.html#ae3e5d4f17870b1311c165af014a3e09f" title="The function to Configure the Host. " alt="" coords="200,107,319,133"/> 308<area shape="rect" id="node5" href="a00521.html#a5d7069350a7d7e65686c77a8038f462f" title="The interface function to append the data on the formated stream. " alt="" coords="392,411,453,437"/> 309<area shape="rect" id="node6" href="a00098.html#a719ad6da4502e713f1573b5353af9617" title="Host_IO_Send" alt="" coords="206,208,313,235"/> 310<area shape="rect" id="node7" href="a00524.html#aeb19f7f23fe9119b1a678cf7434a91dc" title="The function to receive data from the host. " alt="" coords="205,259,314,285"/> 311<area shape="rect" id="node8" href="a00515.html#a82cfef5d07d5b3c2b1f8795309ab9e67" title="Function to handle incomming JSON encoded bytes form the Host over UART. " alt="" coords="175,309,343,336"/> 312<area shape="rect" id="node9" href="a00401.html#a0076d28c9a17cd6908c7b3b0f5c6006c" title="process_host_command" alt="" coords="177,360,341,387"/> 313<area shape="rect" id="node10" href="a00167.html#ac5a66aa1b8d95d267c9d68cb475c9e01" title="The interface function to write a sensor register. " alt="" coords="176,411,343,437"/> 314<area shape="rect" id="node11" href="a00167.html#ac8a60c799d9dbc84531b4680762eb8dc" title="The interface function to read a sensor register. " alt="" coords="193,461,326,488"/> 315<area shape="rect" id="node12" href="a00173.html#a0662e3575811a227d02c1cfe802744c5" title="The interface function to block write to a sensor register. " alt="" coords="175,512,344,539"/> 316<area shape="rect" id="node13" href="a00173.html#a76a3aee498397854509b81ae2da2f85e" title="The interface function to read a sensor register. " alt="" coords="192,563,327,589"/> 317</map> 318</div> 319<div class="dynheader"> 320Here is the caller graph for this function:</div> 321<div class="dyncontent"> 322<div class="center"><img src="a00098_a3924d21a0703878695ebdb68f720fff9_icgraph.png" border="0" usemap="#a00098_a3924d21a0703878695ebdb68f720fff9_icgraph" alt=""/></div> 323<map name="a00098_a3924d21a0703878695ebdb68f720fff9_icgraph" id="a00098_a3924d21a0703878695ebdb68f720fff9_icgraph"> 324<area shape="rect" id="node2" href="a00401.html#a840291bc02cba5474a4cb46a9b9566fe" title="Main function. " alt="" coords="175,5,225,32"/> 325</map> 326</div> 327 328</div> 329</div> 330<a id="a719ad6da4502e713f1573b5353af9617"></a> 331<h2 class="memtitle"><span class="permalink"><a href="#a719ad6da4502e713f1573b5353af9617">◆ </a></span>Host_IO_Send()</h2> 332 333<div class="memitem"> 334<div class="memproto"> 335 <table class="memname"> 336 <tr> 337 <td class="memname">void Host_IO_Send </td> 338 <td>(</td> 339 <td class="paramtype">uint8_t * </td> 340 <td class="paramname"><em>pMsg</em>, </td> 341 </tr> 342 <tr> 343 <td class="paramkey"></td> 344 <td></td> 345 <td class="paramtype">size_t </td> 346 <td class="paramname"><em>size</em>, </td> 347 </tr> 348 <tr> 349 <td class="paramkey"></td> 350 <td></td> 351 <td class="paramtype">uint8_t </td> 352 <td class="paramname"><em>encoding</em> </td> 353 </tr> 354 <tr> 355 <td></td> 356 <td>)</td> 357 <td></td><td></td> 358 </tr> 359 </table> 360</div><div class="memdoc"> 361 362<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00136">136</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 363 364<p class="reference">References <a class="el" href="a00098_source.html#l00041">bUartTxComplete</a>, <a class="el" href="a00509_source.html#l00103">HDLC_Process_Tx_Msg()</a>, <a class="el" href="a00101_source.html#l00074">HOST_FORMAT_HDLC</a>, <a class="el" href="a00101_source.html#l00075">HOST_FORMAT_JSON</a>, <a class="el" href="a00101_source.html#l00076">HOST_FORMAT_PLAIN</a>, <a class="el" href="a00524_source.html#l00058">HOST_Send()</a>, and <a class="el" href="a00515_source.html#l00164">JSON_Process_Tx_Msg()</a>.</p> 365 366<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>, <a class="el" href="a00401_source.html#l00227">main()</a>, and <a class="el" href="a00428_source.html#l00192">process_host_command()</a>.</p> 367<div class="dynheader"> 368Here is the call graph for this function:</div> 369<div class="dyncontent"> 370<div class="center"><img src="a00098_a719ad6da4502e713f1573b5353af9617_cgraph.png" border="0" usemap="#a00098_a719ad6da4502e713f1573b5353af9617_cgraph" alt=""/></div> 371<map name="a00098_a719ad6da4502e713f1573b5353af9617_cgraph" id="a00098_a719ad6da4502e713f1573b5353af9617_cgraph"> 372<area shape="rect" id="node2" href="a00509.html#a1b0cdde224e0adf381d431058d2de34a" title="HDLC_Process_Tx_Msg" alt="" coords="160,5,324,32"/> 373<area shape="rect" id="node3" href="a00524.html#ad708231312ecd814cb70c710fcdea37d" title="The function to Send the data to the host. " alt="" coords="195,56,289,83"/> 374<area shape="rect" id="node4" href="a00515.html#abab3c54ca70a6f8384cd4aab3e475c19" title="JSON_Process_Tx_Msg" alt="" coords="160,107,324,133"/> 375</map> 376</div> 377<div class="dynheader"> 378Here is the caller graph for this function:</div> 379<div class="dyncontent"> 380<div class="center"><img src="a00098_a719ad6da4502e713f1573b5353af9617_icgraph.png" border="0" usemap="#a00098_a719ad6da4502e713f1573b5353af9617_icgraph" alt=""/></div> 381<map name="a00098_a719ad6da4502e713f1573b5353af9617_icgraph" id="a00098_a719ad6da4502e713f1573b5353af9617_icgraph"> 382<area shape="rect" id="node2" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="181,5,303,32"/> 383<area shape="rect" id="node3" href="a00401.html#a840291bc02cba5474a4cb46a9b9566fe" title="Main function. " alt="" coords="372,31,423,57"/> 384<area shape="rect" id="node4" href="a00428.html#a0076d28c9a17cd6908c7b3b0f5c6006c" title="process_host_command" alt="" coords="160,107,324,133"/> 385</map> 386</div> 387 388</div> 389</div> 390<a id="a5f7481a79b18cfdeb27562acebca6ba0"></a> 391<h2 class="memtitle"><span class="permalink"><a href="#a5f7481a79b18cfdeb27562acebca6ba0">◆ </a></span>HOST_SignalEvent_t()</h2> 392 393<div class="memitem"> 394<div class="memproto"> 395 <table class="memname"> 396 <tr> 397 <td class="memname">void HOST_SignalEvent_t </td> 398 <td>(</td> 399 <td class="paramtype">uint32_t </td> 400 <td class="paramname"><em>event</em></td><td>)</td> 401 <td></td> 402 </tr> 403 </table> 404</div><div class="memdoc"> 405 406<p>Defines the HOST UART signal event handler. </p> 407<p>The Signal Event Handler function required by <a class="el" href="a00098.html" title="The host_io_uart.c file contains definitions for UART based streaming interface for sending and resei...">host_io_uart.c</a>. </p><dl class="params"><dt>Parameters</dt><dd> 408 <table class="params"> 409 <tr><td class="paramdir">[in]</td><td class="paramname">event</td><td>The UART event that occured. </td></tr> 410 </table> 411 </dd> 412</dl> 413<dl class="section user"><dt>Constraints:</dt><dd>None </dd></dl> 414<dl class="section user"><dt>Reentrant: Yes</dt><dd></dd></dl> 415<dl class="section return"><dt>Returns</dt><dd>void </dd></dl> 416 417<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00047">47</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 418 419<p class="reference">References <a class="el" href="a00098_source.html#l00041">bUartErrorMsg</a>, <a class="el" href="a00098_source.html#l00041">bUartRxPendingMsg</a>, and <a class="el" href="a00098_source.html#l00041">bUartTxComplete</a>.</p> 420 421<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00100">Host_IO_Init()</a>.</p> 422<div class="dynheader"> 423Here is the caller graph for this function:</div> 424<div class="dyncontent"> 425<div class="center"><img src="a00098_a5f7481a79b18cfdeb27562acebca6ba0_icgraph.png" border="0" usemap="#a00098_a5f7481a79b18cfdeb27562acebca6ba0_icgraph" alt=""/></div> 426<map name="a00098_a5f7481a79b18cfdeb27562acebca6ba0_icgraph" id="a00098_a5f7481a79b18cfdeb27562acebca6ba0_icgraph"> 427<area shape="rect" id="node2" href="a00101.html#ab4b858422bbaae71aff2ab540ae0e2b1" title="Host_IO_Init" alt="" coords="196,5,289,32"/> 428</map> 429</div> 430 431</div> 432</div> 433<h2 class="groupheader">Variable Documentation</h2> 434<a id="a0a02605045d9d7117b2c54ec8db7daeb"></a> 435<h2 class="memtitle"><span class="permalink"><a href="#a0a02605045d9d7117b2c54ec8db7daeb">◆ </a></span>bUartErrorMsg</h2> 436 437<div class="memitem"> 438<div class="memproto"> 439 <table class="memname"> 440 <tr> 441 <td class="memname">volatile bool bUartErrorMsg</td> 442 </tr> 443 </table> 444</div><div class="memdoc"> 445 446<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00041">41</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 447 448<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00100">Host_IO_Init()</a>, <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>, and <a class="el" href="a00098_source.html#l00047">HOST_SignalEvent_t()</a>.</p> 449 450</div> 451</div> 452<a id="aa86e36e002f9c35901d49a9a99f47aa4"></a> 453<h2 class="memtitle"><span class="permalink"><a href="#aa86e36e002f9c35901d49a9a99f47aa4">◆ </a></span>bUartRxPendingMsg</h2> 454 455<div class="memitem"> 456<div class="memproto"> 457 <table class="memname"> 458 <tr> 459 <td class="memname">volatile bool bUartRxPendingMsg</td> 460 </tr> 461 </table> 462</div><div class="memdoc"> 463 464<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00041">41</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 465 466<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00100">Host_IO_Init()</a>, <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>, and <a class="el" href="a00098_source.html#l00047">HOST_SignalEvent_t()</a>.</p> 467 468</div> 469</div> 470<a id="aaa9965c3c746bcf8e7e9eda2117056ad"></a> 471<h2 class="memtitle"><span class="permalink"><a href="#aaa9965c3c746bcf8e7e9eda2117056ad">◆ </a></span>bUartTxComplete</h2> 472 473<div class="memitem"> 474<div class="memproto"> 475 <table class="memname"> 476 <tr> 477 <td class="memname">volatile bool bUartTxComplete</td> 478 </tr> 479 </table> 480</div><div class="memdoc"> 481 482<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00041">41</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 483 484<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00100">Host_IO_Init()</a>, <a class="el" href="a00098_source.html#l00136">Host_IO_Send()</a>, and <a class="el" href="a00098_source.html#l00047">HOST_SignalEvent_t()</a>.</p> 485 486</div> 487</div> 488<a id="a8c0bca493307d9132485c8a4e71fd03e"></a> 489<h2 class="memtitle"><span class="permalink"><a href="#a8c0bca493307d9132485c8a4e71fd03e">◆ </a></span>gHostChannelParams</h2> 490 491<div class="memitem"> 492<div class="memproto"> 493 <table class="memname"> 494 <tr> 495 <td class="memname"><a class="el" href="a02923.html">host_channel_params_t</a> gHostChannelParams[<a class="el" href="a00101.html#ae7d102c35c708dd10f5dbe5e01685ce4">MAX_HOST_STREAMS</a>]</td> 496 </tr> 497 </table> 498</div><div class="memdoc"> 499 500<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00040">40</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 501 502</div> 503</div> 504<a id="a5d3ae17c131354598c173e13c349e81b"></a> 505<h2 class="memtitle"><span class="permalink"><a href="#a5d3ae17c131354598c173e13c349e81b">◆ </a></span>gHostHandle</h2> 506 507<div class="memitem"> 508<div class="memproto"> 509 <table class="memname"> 510 <tr> 511 <td class="memname"><a class="el" href="a00527.html#abaf1b61f9d5a80cabf1f3351bbd569e8">host_interface_handle_t</a> gHostHandle = {0}</td> 512 </tr> 513 </table> 514</div><div class="memdoc"> 515 516<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00037">37</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 517 518</div> 519</div> 520<a id="a7cfa89fd8cb56f14a3221987c7296eca"></a> 521<h2 class="memtitle"><span class="permalink"><a href="#a7cfa89fd8cb56f14a3221987c7296eca">◆ </a></span>gHostRxBuff</h2> 522 523<div class="memitem"> 524<div class="memproto"> 525 <table class="memname"> 526 <tr> 527 <td class="memname">uint8_t gHostRxBuff[<a class="el" href="a00101.html#adb701b5640d108f34d7395a98547b724">HOST_RX_BUF_LEN</a>]</td> 528 </tr> 529 </table> 530</div><div class="memdoc"> 531 532<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00038">38</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 533 534<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>.</p> 535 536</div> 537</div> 538<a id="abed4be42ee7c54dcc1132ab8897f06a6"></a> 539<h2 class="memtitle"><span class="permalink"><a href="#abed4be42ee7c54dcc1132ab8897f06a6">◆ </a></span>gHostRxPkt</h2> 540 541<div class="memitem"> 542<div class="memproto"> 543 <table class="memname"> 544 <tr> 545 <td class="memname"><a class="el" href="a02927.html">host_rx_packet_t</a> gHostRxPkt = {.pRxbuf = <a class="el" href="a00098.html#a7cfa89fd8cb56f14a3221987c7296eca">gHostRxBuff</a>}</td> 546 </tr> 547 </table> 548</div><div class="memdoc"> 549 550<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00039">39</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 551 552</div> 553</div> 554<a id="a286445357d1a40bad2dd064f0f653510"></a> 555<h2 class="memtitle"><span class="permalink"><a href="#a286445357d1a40bad2dd064f0f653510">◆ </a></span>gUartRxBuff</h2> 556 557<div class="memitem"> 558<div class="memproto"> 559 <table class="memname"> 560 <tr> 561 <td class="memname">uint8_t gUartRxBuff</td> 562 </tr> 563 </table> 564</div><div class="memdoc"> 565 566<p class="definition">Definition at line <a class="el" href="a00098_source.html#l00038">38</a> of file <a class="el" href="a00098_source.html">host_io_uart.c</a>.</p> 567 568<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> 569 570</div> 571</div> 572</div><!-- contents --> 573 574<hr class="footer"/><address class="footer"><small> 575© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 576</small></address> 577</body> 578</html> 579