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/data_format_hdlc.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> </div> 49 <div class="headertitle"> 50<div class="title">data_format_hdlc.c File Reference</div> </div> 51</div><!--header--> 52<div class="contents"> 53 54<p>The <a class="el" href="a00509.html" title="The data_format_hdlc.c file contains definitions for encoding and decoding HDLC messages to and from ...">data_format_hdlc.c</a> file contains definitions for encoding and decoding HDLC messages to and from Host. 55<a href="#details">More...</a></p> 56<div class="textblock"><code>#include "<a class="el" href="a00512_source.html">data_format_hdlc.h</a>"</code><br /> 57</div><div class="textblock"><div class="dynheader"> 58Include dependency graph for data_format_hdlc.c:</div> 59<div class="dyncontent"> 60<div class="center"><img src="a00510.png" border="0" usemap="#drivers_2host_2data__format__hdlc_8c" alt=""/></div> 61<map name="drivers_2host_2data__format__hdlc_8c" id="drivers_2host_2data__format__hdlc_8c"> 62<area shape="rect" id="node2" href="a00512.html" title="The data_format_hdlc.h file contains the Host interface definitions and configuration. " alt="" coords="19,95,151,121"/> 63</map> 64</div> 65</div> 66<p><a href="a00509_source.html">Go to the source code of this file.</a></p> 67<table class="memberdecls"> 68<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 69Functions</h2></td></tr> 70<tr class="memitem:af69cf775e44516f29d6ba5a93eacfbd8"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00509.html#af69cf775e44516f29d6ba5a93eacfbd8">HDLC_Process_Rx_Byte</a> (uint8_t c, <a class="el" href="a02927.html">host_rx_packet_t</a> *pHostRxPkt)</td></tr> 71<tr class="separator:af69cf775e44516f29d6ba5a93eacfbd8"><td class="memSeparator" colspan="2"> </td></tr> 72<tr class="memitem:a1b0cdde224e0adf381d431058d2de34a"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00509.html#a1b0cdde224e0adf381d431058d2de34a">HDLC_Process_Tx_Msg</a> (const uint8_t *pBuffer, uint8_t *pMsg, size_t <a class="el" href="a00521.html#a18e09d6eabccd6dfc2d5066542020e59">size</a>)</td></tr> 73<tr class="separator:a1b0cdde224e0adf381d431058d2de34a"><td class="memSeparator" colspan="2"> </td></tr> 74</table> 75<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 76<div class="textblock"><p>The <a class="el" href="a00509.html" title="The data_format_hdlc.c file contains definitions for encoding and decoding HDLC messages to and from ...">data_format_hdlc.c</a> file contains definitions for encoding and decoding HDLC messages to and from Host. </p> 77 78<p class="definition">Definition in file <a class="el" href="a00509_source.html">data_format_hdlc.c</a>.</p> 79</div><h2 class="groupheader">Function Documentation</h2> 80<a id="af69cf775e44516f29d6ba5a93eacfbd8"></a> 81<h2 class="memtitle"><span class="permalink"><a href="#af69cf775e44516f29d6ba5a93eacfbd8">◆ </a></span>HDLC_Process_Rx_Byte()</h2> 82 83<div class="memitem"> 84<div class="memproto"> 85 <table class="memname"> 86 <tr> 87 <td class="memname">bool HDLC_Process_Rx_Byte </td> 88 <td>(</td> 89 <td class="paramtype">uint8_t </td> 90 <td class="paramname"><em>c</em>, </td> 91 </tr> 92 <tr> 93 <td class="paramkey"></td> 94 <td></td> 95 <td class="paramtype"><a class="el" href="a02927.html">host_rx_packet_t</a> * </td> 96 <td class="paramname"><em>pHostRxPkt</em> </td> 97 </tr> 98 <tr> 99 <td></td> 100 <td>)</td> 101 <td></td><td></td> 102 </tr> 103 </table> 104</div><div class="memdoc"> 105 106<p class="definition">Definition at line <a class="el" href="a00509_source.html#l00024">24</a> of file <a class="el" href="a00509_source.html">data_format_hdlc.c</a>.</p> 107 108<p class="reference">References <a class="el" href="a00512_source.html#l00035">HOST_RX_STATE_GETTINGPACKETDATA</a>, <a class="el" href="a00512_source.html#l00033">HOST_RX_STATE_WAITFORPACKETMARKER</a>, <a class="el" href="a00101_source.html#l00052">host_rx_packet_t::mIndex</a>, <a class="el" href="a00101_source.html#l00053">host_rx_packet_t::pRxbuf</a>, and <a class="el" href="a00101_source.html#l00051">host_rx_packet_t::rxState</a>.</p> 109 110<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00207">Host_IO_Receive()</a>.</p> 111<div class="dynheader"> 112Here is the caller graph for this function:</div> 113<div class="dyncontent"> 114<div class="center"><img src="a00509_af69cf775e44516f29d6ba5a93eacfbd8_icgraph.png" border="0" usemap="#a00509_af69cf775e44516f29d6ba5a93eacfbd8_icgraph" alt=""/></div> 115<map name="a00509_af69cf775e44516f29d6ba5a93eacfbd8_icgraph" id="a00509_af69cf775e44516f29d6ba5a93eacfbd8_icgraph"> 116<area shape="rect" id="node2" href="a00101.html#a3924d21a0703878695ebdb68f720fff9" title="Host_IO_Receive" alt="" coords="221,5,343,32"/> 117</map> 118</div> 119 120</div> 121</div> 122<a id="a1b0cdde224e0adf381d431058d2de34a"></a> 123<h2 class="memtitle"><span class="permalink"><a href="#a1b0cdde224e0adf381d431058d2de34a">◆ </a></span>HDLC_Process_Tx_Msg()</h2> 124 125<div class="memitem"> 126<div class="memproto"> 127 <table class="memname"> 128 <tr> 129 <td class="memname">size_t HDLC_Process_Tx_Msg </td> 130 <td>(</td> 131 <td class="paramtype">const uint8_t * </td> 132 <td class="paramname"><em>pBuffer</em>, </td> 133 </tr> 134 <tr> 135 <td class="paramkey"></td> 136 <td></td> 137 <td class="paramtype">uint8_t * </td> 138 <td class="paramname"><em>pMsg</em>, </td> 139 </tr> 140 <tr> 141 <td class="paramkey"></td> 142 <td></td> 143 <td class="paramtype">size_t </td> 144 <td class="paramname"><em>size</em> </td> 145 </tr> 146 <tr> 147 <td></td> 148 <td>)</td> 149 <td></td><td></td> 150 </tr> 151 </table> 152</div><div class="memdoc"> 153 154<p class="definition">Definition at line <a class="el" href="a00509_source.html#l00103">103</a> of file <a class="el" href="a00509_source.html">data_format_hdlc.c</a>.</p> 155 156<p class="reference">Referenced by <a class="el" href="a00098_source.html#l00136">Host_IO_Send()</a>.</p> 157<div class="dynheader"> 158Here is the caller graph for this function:</div> 159<div class="dyncontent"> 160<div class="center"><img src="a00509_a1b0cdde224e0adf381d431058d2de34a_icgraph.png" border="0" usemap="#a00509_a1b0cdde224e0adf381d431058d2de34a_icgraph" alt=""/></div> 161<map name="a00509_a1b0cdde224e0adf381d431058d2de34a_icgraph" id="a00509_a1b0cdde224e0adf381d431058d2de34a_icgraph"> 162<area shape="rect" id="node2" href="a00101.html#a719ad6da4502e713f1573b5353af9617" title="Host_IO_Send" alt="" coords="217,5,324,32"/> 163</map> 164</div> 165 166</div> 167</div> 168</div><!-- contents --> 169 170<hr class="footer"/><address class="footer"><small> 171© Copyright 2016-2022 NXP. All Rights Reserved. SPDX-License-Identifier: BSD-3-Clause 172</small></address> 173</body> 174</html> 175