亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stxetx_8h-source.html

?? ATMEL的AVR單片機(jī)庫文件
?? HTML
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Procyon AVRlib: stxetx.h Source File</title><link href="dox.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>stxetx.h</h1><a href="stxetx_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*! \file stxetx.h \brief STX/ETX Packet Protocol Implementation Library. */</span>00002 <span class="comment">//*****************************************************************************</span>00003 <span class="comment">//</span>00004 <span class="comment">// File Name    : 'stxetx.h'</span>00005 <span class="comment">// Title        : STX/ETX Packet Protocol Implementation Library</span>00006 <span class="comment">// Author       : Pascal Stang - Copyright (C) 2002-2003</span>00007 <span class="comment">// Created      : 10/9/2002</span>00008 <span class="comment">// Revised      : 02/10/2003</span>00009 <span class="comment">// Version      : 0.1</span>00010 <span class="comment">// Target MCU   : any</span>00011 <span class="comment">// Editor Tabs  : 4</span>00012 <span class="comment">//</span>00013 <span class="comment">// Description  : This library provides a set of functions needed to send and</span>00014 <span class="comment">//      receive STX/ETX packets.  STX/ETX is a simple packet protocol that can</span>00015 <span class="comment">//      be wrapped around user data for one or more of the following reasons:</span>00016 <span class="comment">//</span>00017 <span class="comment">//          1. packetization is needed</span>00018 <span class="comment">//              - Using packets can be helpful if your data naturally forms </span>00019 <span class="comment">//              little "bunches" or if different types of data must be sent</span>00020 <span class="comment">//              over the same channel (a serial cable, for example).  If your</span>00021 <span class="comment">//              data forms "bunches", you can send user data inside STX/ETX</span>00022 <span class="comment">//              packets with a predetermined structure, like an array of A/D</span>00023 <span class="comment">//              conversion results.  If you need a way to tell the receiver</span>00024 <span class="comment">//              what kind of data you're sending, you can use the TYPE field</span>00025 <span class="comment">//              in the STX/ETX packet.</span>00026 <span class="comment">//          2. error checking is needed</span>00027 <span class="comment">//              - STX/ETX packets will add a checksum to your data.  This</span>00028 <span class="comment">//              allows the receiver to verify that data was received correctly</span>00029 <span class="comment">//              and is error-free.  Packets which are corrupted in transmission</span>00030 <span class="comment">//              and fail the the checksum test are automatically discarded.</span>00031 <span class="comment">//              Error checking is especially useful when the data transmission</span>00032 <span class="comment">//              channel is unreliable or noisy (examples: radio, infrared, long</span>00033 <span class="comment">//              cables, etc)</span>00034 <span class="comment">//  </span>00035 <span class="comment">//      STX/ETX packets have the following structure:</span>00036 <span class="comment">//</span>00037 <span class="comment">//      [STX][status][type][length][user data...][checksum][ETX]</span>00038 <span class="comment">//</span>00039 <span class="comment">//      All fields are 1 byte except for user data which may be 0-255 bytes.</span>00040 <span class="comment">//      Uppercase fields are constant (STX=0x02, ETX=0x03), lowercase fields</span>00041 <span class="comment">//      vary.  The length field is the number of bytes in the user data area.</span>00042 <span class="comment">//      The checksum is the 8-bit sum of all bytes between but not including</span>00043 <span class="comment">//      STX/ETX.</span>00044 <span class="comment">//</span>00045 <span class="comment">// This code is distributed under the GNU Public License</span>00046 <span class="comment">//      which can be found at http://www.gnu.org/licenses/gpl.txt</span>00047 <span class="comment">//</span>00048 <span class="comment">//*****************************************************************************</span>00049 00050 <span class="preprocessor">#ifndef STXETX_H</span>00051 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_H</span>00052 <span class="preprocessor"></span>00053 <span class="preprocessor">#include "<a class="code" href="buffer_8h.html">buffer.h</a>"</span>00054 00055 <span class="comment">// include project-dependent configuration options</span>00056 <span class="preprocessor">#include "<a class="code" href="stxetxconf_8h.html">stxetxconf.h</a>"</span>00057 00058 <span class="comment">// constants</span>00059 <span class="comment">// packet markers</span>00060 <span class="preprocessor">#define STX     0x02                // start transmission marker</span>00061 <span class="preprocessor"></span><span class="preprocessor">#define ETX     0x03                // end transmission marker</span>00062 <span class="preprocessor"></span><span class="comment">// packet length parameters</span>00063 <span class="preprocessor">#define STXETX_HEADERLENGTH     4   // number of bytes required for packet header</span>00064 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_TRAILERLENGTH    2   // number of bytes required for packet trailer</span>00065 <span class="preprocessor"></span><span class="comment">// packet field offsets</span>00066 <span class="preprocessor">#define STXETX_STATUSOFFSET     1   // number of bytes from STX to STATUS</span>00067 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_TYPEOFFSET       2   // number of bytes from STX to TYPE</span>00068 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_LENGTHOFFSET     3   // number of bytes from STX to LENGTH</span>00069 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_DATAOFFSET       4   // number of bytes from STX to the data</span>00070 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_CHECKSUMOFFSET   4   // number of bytes from STX+[length] to CHECKSUM</span>00071 <span class="preprocessor"></span><span class="preprocessor">#define STXETX_NOETXSTXCHECKSUM 3   // number of bytes used by STX,ETX,CHECKSUM</span>00072 <span class="preprocessor"></span>00073 00074 <span class="comment">// function prototypes</span>00075 <span class="comment"></span>00076 <span class="comment">//! Initialize STX/ETX packet protocol library</span>00077 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="stxetx_8h.html#a10">stxetxInit</a>(<span class="keywordtype">void</span> (*dataout_func)(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> data));00078 <span class="comment"></span>00079 <span class="comment">//! Send/Create STX/ETX packet</span>00080 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="stxetx_8h.html#a11">stxetxSend</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> status, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> type, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> datalength, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* dataptr);00081 <span class="comment"></span>00082 <span class="comment">//! Process a buffer containing STX/ETX packets</span>00083 <span class="comment"></span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="stxetx_8h.html#a12">stxetxProcess</a>(cBuffer* rxBuffer);00084 <span class="comment"></span>00085 <span class="comment">//! Returns the received packet's status</span>00086 <span class="comment"></span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="stxetx_8c.html#a5">stxetxGetRxPacketStatus</a>(<span class="keywordtype">void</span>);00087 <span class="comment"></span>00088 <span class="comment">//! Returns the received packet's type</span>00089 <span class="comment"></span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="stxetx_8c.html#a6">stxetxGetRxPacketType</a>(<span class="keywordtype">void</span>);00090 <span class="comment"></span>00091 <span class="comment">//! Returns the received packet's datalength</span>00092 <span class="comment"></span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="stxetx_8c.html#a7">stxetxGetRxPacketDatalength</a>(<span class="keywordtype">void</span>);00093 <span class="comment"></span>00094 <span class="comment">//! Returns pointer to the received packet's data</span>00095 <span class="comment"></span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* <a class="code" href="stxetx_8c.html#a8">stxetxGetRxPacketData</a>(<span class="keywordtype">void</span>);00096 00097 00098 <span class="preprocessor">#endif</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Oct 15 03:50:22 2004 for Procyon AVRlib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.6 </small></address></body></html>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费视频一区| 欧美人xxxx| 久久99精品国产91久久来源| 中文字幕在线视频一区| 国产精品免费视频观看| 亚洲人成网站色在线观看| 一卡二卡三卡日韩欧美| 亚洲二区视频在线| 看国产成人h片视频| 国模一区二区三区白浆| 成人动漫av在线| 欧美三级在线播放| 久久久亚洲精华液精华液精华液| 国产欧美日韩另类一区| 亚洲婷婷在线视频| 午夜亚洲福利老司机| 国产一区二区三区在线观看免费| 99久久精品免费观看| 欧美乱熟臀69xxxxxx| 久久久噜噜噜久久人人看 | 欧美一级搡bbbb搡bbbb| 国产精品素人视频| 青青草97国产精品免费观看无弹窗版| 国产91精品一区二区麻豆亚洲| 91啪在线观看| 中文字幕第一区二区| 日本最新不卡在线| 色综合久久综合| 欧美极品另类videosde| 青娱乐精品视频在线| 欧美性视频一区二区三区| 国产亚洲欧美日韩日本| 蜜臀91精品一区二区三区 | 久久影院电视剧免费观看| 亚洲午夜在线电影| 欧洲精品一区二区| 亚洲激情av在线| av电影在线观看不卡| 国产在线一区二区| 欧美视频自拍偷拍| 亚洲免费观看高清完整版在线 | 日韩精品一区二区三区四区视频| 亚洲欧美日韩中文字幕一区二区三区 | 一区二区三区高清在线| 不卡高清视频专区| 国产精品萝li| 色欧美片视频在线观看| 国产精品久久国产精麻豆99网站| 免费在线视频一区| 日韩精品一区二区三区在线观看| 日本免费新一区视频| 欧美一级欧美三级在线观看| 美国十次了思思久久精品导航| 3751色影院一区二区三区| 午夜不卡av在线| 日韩午夜小视频| 国产一区二区女| 国产精品久久久久三级| 99国内精品久久| 天堂久久一区二区三区| 精品国产亚洲一区二区三区在线观看| 国产在线不卡一区| ...av二区三区久久精品| 欧美人牲a欧美精品| 久久99深爱久久99精品| 国产精品久久久久aaaa樱花 | 国产精品少妇自拍| 欧美日韩高清一区二区三区| 极品少妇xxxx精品少妇偷拍| 欧美高清在线精品一区| 国产精品天天摸av网| 成人午夜激情在线| 亚洲欧洲综合另类| 日韩精品影音先锋| 91网站视频在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲天天做日日做天天谢日日欢| 69精品人人人人| www.亚洲免费av| 久久精品免费看| 亚洲福利视频三区| 亚洲欧美区自拍先锋| 久久蜜臀精品av| 这里只有精品免费| 欧美在线观看视频一区二区三区| 国产在线一区观看| 日韩福利电影在线观看| 久久久久久久电影| 欧美大片在线观看一区| 欧美性猛交xxxxxxxx| 一本久道中文字幕精品亚洲嫩 | 韩国v欧美v亚洲v日本v| 一区二区三区四区av| 中文字幕一区二区三区不卡| 久久网这里都是精品| 欧美一区日韩一区| 久久久亚洲午夜电影| 色偷偷久久一区二区三区| 国产精华液一区二区三区| 强制捆绑调教一区二区| 日韩不卡在线观看日韩不卡视频| 亚洲男人都懂的| 国产精品国产三级国产| 日韩一卡二卡三卡四卡| 欧美亚洲另类激情小说| 欧美亚一区二区| 91国产视频在线观看| 91在线小视频| 91亚洲精华国产精华精华液| 成人三级在线视频| 成人网男人的天堂| 国产乱码精品一品二品| 国内精品伊人久久久久av影院| 韩国成人福利片在线播放| 亚洲欧洲中文日韩久久av乱码| 久久综合五月天婷婷伊人| 久久综合久久99| 久久久无码精品亚洲日韩按摩| 欧美大片日本大片免费观看| 日韩欧美中文字幕公布| 久久九九久久九九| 国产精品第13页| 亚洲午夜日本在线观看| 夜色激情一区二区| 韩日精品视频一区| 国产91色综合久久免费分享| aaa亚洲精品| 欧美日韩成人一区二区| 精品裸体舞一区二区三区| 国产亚洲精品7777| 亚洲精品国产第一综合99久久| 国产亚洲欧美色| 亚洲一区二区欧美日韩| 国产一区日韩二区欧美三区| 麻豆精品一区二区| av一二三不卡影片| 91精品久久久久久久久99蜜臂| 国产视频亚洲色图| 亚洲高清视频的网址| 国产黄色成人av| 日韩一区国产二区欧美三区| 国产精品高潮久久久久无| 日日夜夜免费精品视频| 成人免费视频app| 日韩欧美一卡二卡| 亚洲国产成人高清精品| 成人h动漫精品一区二| 精品久久久久一区二区国产| 26uuu久久综合| 午夜伊人狠狠久久| 9久草视频在线视频精品| 久久婷婷久久一区二区三区| 午夜一区二区三区视频| 一本到高清视频免费精品| 久久久噜噜噜久久中文字幕色伊伊| 日韩不卡一二三区| 在线精品视频免费观看| 亚洲人成精品久久久久| 成人精品在线视频观看| 精品成人一区二区| 麻豆精品视频在线观看免费| 久久精品国产秦先生| 欧美日韩日本视频| 一区二区三区欧美激情| 一本大道久久a久久精品综合| 国产精品美女一区二区在线观看| 国产精品中文字幕欧美| 久久久噜噜噜久噜久久综合| 久久精品国产亚洲高清剧情介绍| 欧美一级高清片在线观看| 视频一区视频二区中文字幕| 欧美精品自拍偷拍| 青青草原综合久久大伊人精品优势| 欧美精品一二三| 国产一区二区调教| 国产精品欧美精品| 国产成+人+日韩+欧美+亚洲| 欧美电视剧在线看免费| 国产乱码字幕精品高清av | 成人免费电影视频| 亚洲精品中文在线| 欧美亚洲一区三区| 六月婷婷色综合| 久久久久久久综合日本| 国产1区2区3区精品美女| 国产精品久久福利| 欧美一区二区三区在线观看| 丝袜亚洲另类丝袜在线| 国产亚洲美州欧州综合国| 色综合久久久久综合体| 青青草国产精品97视觉盛宴| 国产女同性恋一区二区| 欧美性猛交xxxx黑人交| 国产福利一区在线观看| 自拍偷拍亚洲激情| 日韩一二三四区| 欧洲av一区二区嗯嗯嗯啊| 国内久久精品视频| 无吗不卡中文字幕| 日韩免费性生活视频播放|