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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? manual.html

?? 這個是從國外弄到的一個紅外協議棧
?? HTML
字號:
<HTML>  <HEAD>    <TITLE>Pico-IrDA Manual</TITLE>  </HEAD>  <BODY>    <H1>Pico-IrDA Manual</H1>    <DL>      <DT>        <H3>Overview</H3>      <DD>	 Pico-IrDA is a minimalistic IrDA stack for microcontrollers.<BR>	 It supports IrOBEX in primary and secondary IrDA mode and	 IrCOMM in secondary mode only.<BR>	 Pico-IrDA works with a fixed baudrate of 9600 bps and is restricted	 to two communication peers.      <DT>        <H3>Library Initialization</H3>      <DD>        An application needs to reset the physical layer and	initialize an <B>IrLAP_Context</B>, which holds state information	about the session.	<HR>	<CODE>	  IrLAP_Context ctx;<BR>	  <BR>	  irphy_reset();<BR>	  irlap_init_context(&amp;ctx);<BR>	</CODE>	<HR>      <DT>        <H3>Physical Interface</H3>      <DD>        The library uses four functions defined in &quot;<B>irphy.h</B>&quot; to interface	with the physical IrDA transceiver.<BR>	<UL>	  <LI>	    <B>void&nbsp;irphy_reset(void);</B><BR>	    Initializes the physical interface and sets the baudrate to 9600 bps.	  <LI>	    <B>void&nbsp;irphy_send(uint8_t&nbsp;v);</B><BR>	    Sends a byte of data &quot;<B>v</B>&quot; via IrDA.	  <LI>	    <B>uint8_t&nbsp;irphy_wait(int16_t&nbsp;timeout);</B><BR>	    Returns a non-zero value if incoming data is available within a given &quot;<B>timeout</B>&quot;.<BR>	    If the &quot;<B>timeout</B>&quot; given in milliseconds expires before a byte of data is available,	    this function shall return zero.<BR>	    If the &quot;<B>timeout</B>&quot; is negative, this function should wait for incoming data indefinitely.	  <LI>	    <B>uint8_t&nbsp;irphy_receive(void);</B><BR>	    Receives an incoming byte of data and returns it.	</UL>      <DT>        <H3>IrOBEX Interface</H3>      <DD>        The simplest form of using the library is to send and/or receive data via IrOBEX.<BR>	Sending data is done by selecting the IrDA primary mode,	receiving data puts the device into IrDA secondary mode.<BR>	<UL>	  <LI>	    <B>uint8_t&nbsp;irobex_send(<BR>	       &nbsp;&nbsp;IrLAP_Context&nbsp;*context_p,<BR>	       &nbsp;&nbsp;IrLAP_Device_Addr&nbsp;addr_p,<BR>	       &nbsp;&nbsp;int16_t&nbsp;(*get_name_cb)(char&nbsp;*name,&nbsp;uint16_t&nbsp;size,&nbsp;void&nbsp;*user_data),<BR>	       &nbsp;&nbsp;int16_t&nbsp;(*get_data_cb)(uint8_t&nbsp;*data,&nbsp;uint16_t&nbsp;size,&nbsp;void&nbsp;*user_data),<BR>	       &nbsp;&nbsp;void&nbsp;*user_data);</B><BR>	    <UL>	      <LI>	        <B>context_p</B><BR>	        A previously initialized <B>IrLAP_Context</B>.	      <LI>	        <B>addr_p</B><BR>	        The device address of the intended peer or &quot;<B>0</B>&quot;		if no specific peer is known and discovery should be performed.	      <LI>	        <B>get_name_cb</B><BR>		A callback function that is used to retrieve the name of the message to be sent.<BR>		&quot;<B>name</B>&quot; points to a destination buffer to store the name, which holds		a maximum number of &quot;<B>size</B>&quot; bytes.<BR>		The number of bytes actually written to &quot;<B>name</B>&quot; should become the return value		of the callback.<BR>		If an error occurred, the callback can return a negative value and the transmission		is cancelled.<BR>		&quot;<B>user_data</B>&quot; contains the same value as the one passed to the		&quot;<B>irobex_send</B>&quot; function.<BR>		If &quot;<B>get_name_cb</B>&quot; is &quot;<B>0</B>&quot;, no name will be included in the		message.	      <LI>	        <B>get_data_cb</B><BR>		A callback function that is used to retrieve a data chunk for the message to be sent.<BR>		&quot;<B>data</B>&quot; points to a destination buffer to store the data, which holds		a maximum number of &quot;<B>size</B>&quot; bytes.<BR>		The number of bytes actually written to &quot;<B>data</B>&quot; should become the return value		of the callback.<BR>		If an error occurred, the callback can return a negative value and the transmission		is cancelled.<BR>		&quot;<B>user_data</B>&quot; contains the same value as the one passed to the		&quot;<B>irobex_send</B>&quot; function.<BR>		If &quot;<B>get_data_cb</B>&quot; is &quot;<B>0</B>&quot;, no data will be included in the		message.	      <LI>	        <B>user_data</B><BR>		An application defined pointer that is passed to the callback functions.	    </UL>	    If the transmission was successful, &quot;<B>irobex_send</B>&quot; returns a non-zero value.	    A return value of &quot;<B>0</B>&quot; indicates failure.	  <LI>	    <B>uint8_t&nbsp;irobex_receive(<BR>	       &nbsp;&nbsp;IrLAP_Context&nbsp;*context_p,<BR>	       &nbsp;&nbsp;uint8_t&nbsp;(*put_name_cb)(char&nbsp;*name,&nbsp;void&nbsp;*user_data),<BR>	       &nbsp;&nbsp;uint8_t&nbsp;(*put_data_cb)(uint8_t&nbsp;*data,&nbsp;uint16_t&nbsp;size,&nbsp;void&nbsp;*user_data),<BR>	       &nbsp;&nbsp;void&nbsp;*user_data);</B><BR>	    <UL>	      <LI>	        <B>context_p</B><BR>	        A previously initialized <B>IrLAP_Context</B>.	      <LI>	        <B>put_name_cb</B><BR>	        A callback function that is used to handle the name of a received message.<BR>		The name of the message is stored at &quot;<B>name</B>&quot; and is terminated with		a &quot;<B>0</B>&quot; character.<BR>		&quot;<B>user_data</B>&quot; contains the same value as the one passed to the		&quot;<B>irobex_receive</B>&quot; function.<BR>		If &quot;<B>put_name_cb</B>&quot; is &quot;<B>0</B>&quot;, the name part of a received		message remains unhandled.	      <LI>	        <B>put_data_cb</B><BR>	        A callback function that is used to handle a data chunk of a received message.<BR>		The data chunk is stored at &quot;<B>data</B>&quot; and contains &quot;<B>size</B>&quot; bytes.<BR>		&quot;<B>user_data</B>&quot; contains the same value as the one passed to the		&quot;<B>irobex_receive</B>&quot; function.<BR>		If &quot;<B>put_data_cb</B>&quot; is &quot;<B>0</B>&quot;, the data part of a received		message remains unhandled.	      <LI>	        <B>user_data</B><BR>		An application defined pointer that is passed to the callback functions.	    </UL>	    If the message was received successfully, &quot;<B>irobex_receive</B>&quot; returns a non-zero value.	    A return value of &quot;<B>0</B>&quot; indicates failure.	</UL>      <DT>        <H3>IrCOMM Interface</H3>      <DD>        The IrCOMM protocol is only supported in IrDA secondary mode.	<UL>	  <LI>	    <B>void&nbsp;ircomm2_serve(<BR>	       &nbsp;&nbsp;IrLAP_Context&nbsp;*context_p,<BR>	       &nbsp;&nbsp;int16_t&nbsp;(*put_data_cb)(<BR>	       &nbsp;&nbsp;&nbsp;&nbsp;uint8_t&nbsp;*data,&nbsp;uint16_t&nbsp;size,<BR>	       &nbsp;&nbsp;&nbsp;&nbsp;uint8_t&nbsp;*resp_buf,&nbsp;uint16_t&nbsp;resp_buf_size,<BR>	       &nbsp;&nbsp;&nbsp;&nbsp;uint8_t&nbsp;*terminate_p,<BR>	       &nbsp;&nbsp;&nbsp;&nbsp;void *user_data),<BR>	       &nbsp;&nbsp;void *user_data);</B><BR>	    <UL>	      <LI>	        <B>context_p</B><BR>	        A previously initialized <B>IrLAP_Context</B>.	      <LI>	        <B>put_data_cb</B><BR>	        A callback function that is used to handle an incoming data chunk.<BR>		The data chunk is stored at &quot;<B>data</B>&quot; and contains &quot;<B>size</B>&quot; bytes.<BR>		Up to &quot;<B>resp_buf_size</B>&quot; bytes can be stored into &quot;<B>resp_buf</B>&quot;		which is the data chunk that is sent back to the communication peer.<BR>		The number of bytes actually written to &quot;<B>resp_buf</B>&quot; should become the return value		of the callback.<BR>		If an error occurred, the callback can return a negative value and the transmission		is cancelled.<BR>		If a non-zero value is written to the byte pointed to by &quot;<B>terminate_p</B>&quot;		the transmission will be terminated after the response buffer is sent.	      <LI>	        <B>user_data</B><BR>		An application defined pointer that is passed to the callback function.	    </UL>        </UL>      <DT>        <H3>Selecting Protocol</H3>      <DD>        In IrDA secondary mode, it is possible to distinguish between incoming	IrOBEX and IrCOMM messages using the &quot;<B>irttp2_accept</B>&quot; function.<BR>	You need to announce the availability of the <B>IrIAS&nbsp;LsapSel</B> values	that relate to the corresponding protocols and set the proper <B>IrLMP</B> hints.<BR>	Example:	<HR>	<CODE>	  IrLAP_Context ctx;<BR>	  IrIAS_Node *ias_nodes[3];<BR>	  int16_t dlsap_sel;<BR>	  <BR>	  irphy_reset();<BR>	  irlap_init_context(&amp;ctx);<BR>	  <BR>	  /* ias_nodes contains all the IrIAS LsapSel values we support */<BR>	  ias_nodes[0]=&amp;irobex_ias_node;<BR>	  ias_nodes[1]=&amp;ircomm_ias_node;<BR>	  ias_nodes[2]=0;<BR>	  <BR>	  for(;;) {<BR>	  &nbsp;&nbsp;irphy_wait(-1);<BR>	  &nbsp;&nbsp;if((dlsap_sel=irttp2_accept(&amp;ctx, IRLMP_HINT1_OBEX | IRLMP_HINT1_COMM, ias_nodes))<0)<BR>	  &nbsp;&nbsp;&nbsp;&nbsp;continue;<BR>	  &nbsp;&nbsp;switch(dlsap_sel) {<BR>	  &nbsp;&nbsp;case IRCOMM_LSAP_SEL_VAL:<BR>	  &nbsp;&nbsp;&nbsp;&nbsp;handle_ircomm();<BR>	  &nbsp;&nbsp;&nbsp;&nbsp;break;<BR>	  &nbsp;&nbsp;case IROBEX_LSAP_SEL_VAL:<BR>	  &nbsp;&nbsp;&nbsp;&nbsp;handle_irobex();<BR>	  &nbsp;&nbsp;&nbsp;&nbsp;break;<BR>	  &nbsp;&nbsp;}<BR>	  }<BR>	</CODE>	<HR>      <DT>        <H3>Copyright Notice</H3>      <DD>        Copyright &copy; 2002-2003 Gerd Rausch, <A HREF="http://blaulogic.com">BlauLogic</A><BR>	All rights reserved.	<P>	Redistribution and use in source and binary forms, with or without	modification, are permitted provided that the following conditions are	met:	<OL>	  <LI>	    Redistributions of source code must retain the above copyright	    notice, this list of conditions and the following disclaimer.	  <LI>	    Redistributions in binary form must reproduce the above	    copyright notice, this list of conditions and the following	    disclaimer in the documentation and/or other materials provided	    with the distribution.	  <LI>	    Except as contained in this notice, neither the name of BlauLogic	    nor the name(s) of the author(s) may be used to endorse or promote	    products derived from this software without specific prior written	    permission.	</OL>	<P>	THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF	MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.	IN NO EVENT SHALL THE AUTHOR(S) OR BLAULOGIC BE LIABLE FOR ANY CLAIM,	DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR	OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR	THE USE OR OTHER DEALINGS IN THE SOFTWARE.    </DL>  </BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区在线电影| 亚洲色图在线看| 日韩一级免费一区| 欧美蜜桃一区二区三区| 在线电影欧美成精品| 欧美影视一区二区三区| 欧美日韩成人在线一区| 欧美一区二区免费视频| 欧美一级二级三级乱码| 日韩一级大片在线| 欧美不卡123| 久久综合久久综合久久综合| 日韩欧美在线网站| 久久精品人人爽人人爽| 国产网红主播福利一区二区| 国产精品久久久久久久久免费桃花 | 国产精品福利一区| 亚洲女同女同女同女同女同69| 1000部国产精品成人观看| 亚洲欧美日韩国产手机在线| 亚洲国产精品视频| 另类专区欧美蜜桃臀第一页| 国模套图日韩精品一区二区 | 亚洲精品久久7777| 亚洲动漫第一页| 九九国产精品视频| 97成人超碰视| 91精品国产品国语在线不卡| 久久久久国产免费免费 | 天堂一区二区在线| 国内精品免费**视频| 成人h精品动漫一区二区三区| 91福利在线播放| 精品国精品国产尤物美女| 亚洲欧美在线另类| 国内成+人亚洲+欧美+综合在线 | 国产suv一区二区三区88区| 91国产丝袜在线播放| 精品久久久久香蕉网| 亚洲欧美另类久久久精品| 麻豆精品一区二区综合av| 色婷婷久久99综合精品jk白丝| 欧美一区二区三级| 一区二区三区色| 国产成人精品亚洲777人妖 | 不卡一区在线观看| 亚洲永久免费视频| 美女一区二区视频| 91麻豆精品一区二区三区| 欧美一区二区人人喊爽| 亚洲综合一区在线| 成人高清视频免费观看| 精品日韩一区二区三区免费视频| 亚洲一区二区三区在线看| 成人18视频日本| 精品国产1区2区3区| 日韩精品电影在线| 欧美日韩亚洲综合一区| 亚洲免费观看在线视频| 成人免费av在线| 国产视频亚洲色图| 国产一区二区三区视频在线播放| 欧美美女一区二区在线观看| 亚洲一区二区av在线| 欧美做爰猛烈大尺度电影无法无天| 亚洲国产精品传媒在线观看| 国产一区二区三区精品欧美日韩一区二区三区 | 中文字幕高清一区| 国产一区二区三区最好精华液| 制服.丝袜.亚洲.中文.综合| 亚洲一区二区综合| 欧美在线观看禁18| 香蕉久久一区二区不卡无毒影院| 欧美制服丝袜第一页| 一区二区理论电影在线观看| 欧美优质美女网站| 亚洲国产一二三| 欧美男女性生活在线直播观看| 午夜婷婷国产麻豆精品| 在线电影一区二区三区| 蜜桃视频在线观看一区| 欧美一区二区网站| 国产美女主播视频一区| 中文字幕高清一区| 91福利资源站| 奇米一区二区三区| 国产视频一区在线播放| 99麻豆久久久国产精品免费| 亚洲精品中文字幕在线观看| 欧美日韩亚州综合| 久久电影网电视剧免费观看| 日本一区二区电影| 欧美日韩小视频| 国产一区二区三区最好精华液| 中文字幕精品一区二区精品绿巨人| 99国产欧美另类久久久精品 | 狠狠久久亚洲欧美| 日本一区二区综合亚洲| 在线观看免费视频综合| 免费看欧美女人艹b| 国产精品美女www爽爽爽| 欧美在线啊v一区| 国产一区二区三区综合| 亚洲综合激情小说| 久久综合国产精品| 欧美做爰猛烈大尺度电影无法无天| 美腿丝袜亚洲色图| 亚洲天堂免费看| 精品国产一区二区三区忘忧草 | 在线一区二区三区四区| 蜜臀av一区二区在线观看| 国产日本欧美一区二区| 在线播放一区二区三区| 成人性色生活片| 天堂一区二区在线免费观看| 国产精品久久免费看| 欧美一区午夜视频在线观看| 不卡欧美aaaaa| 激情综合一区二区三区| 一级做a爱片久久| 久久精品视频免费| 日韩一卡二卡三卡国产欧美| 91丨porny丨在线| 国产精品一级在线| 免费看精品久久片| 香蕉成人啪国产精品视频综合网 | 2017欧美狠狠色| 欧美丰满嫩嫩电影| caoporn国产一区二区| 国内精品国产成人国产三级粉色| 亚洲综合色视频| 亚洲天堂福利av| 国产欧美va欧美不卡在线| 欧美va亚洲va| 日韩欧美亚洲另类制服综合在线| 日本精品裸体写真集在线观看| 国产盗摄女厕一区二区三区| 毛片一区二区三区| 日韩主播视频在线| 婷婷成人激情在线网| 亚洲综合一区二区| 亚洲一区日韩精品中文字幕| 亚洲免费观看高清完整版在线观看 | 国产成人精品aa毛片| 精品系列免费在线观看| 久久成人免费网站| 另类小说欧美激情| 韩国午夜理伦三级不卡影院| 久久精品国产秦先生| 麻豆精品视频在线观看视频| 秋霞影院一区二区| 久久69国产一区二区蜜臀| 久久国产综合精品| 国产精品一区二区在线播放| 国产成人免费视频网站高清观看视频| 激情五月婷婷综合网| 国产精品系列在线播放| 丰满放荡岳乱妇91ww| 99re在线视频这里只有精品| 成a人片亚洲日本久久| 91美女在线视频| 欧美视频完全免费看| 337p亚洲精品色噜噜| 亚洲精品在线免费观看视频| 精品福利av导航| 国产精品久久毛片| 亚洲国产综合人成综合网站| 美女视频黄频大全不卡视频在线播放| 秋霞电影网一区二区| 国产精品一区二区久久不卡 | 欧美成人vps| 国产亚洲婷婷免费| 《视频一区视频二区| 亚洲一区二区综合| 九九**精品视频免费播放| 成人av动漫网站| 欧美日韩一二三| 久久久久久久久久美女| 成人免费小视频| 日韩av一区二| 成人高清伦理免费影院在线观看| 色哟哟一区二区| 欧美成人video| 一区二区三区丝袜| 国产精品影视天天线| 欧美综合天天夜夜久久| 久久精品视频在线看| 有坂深雪av一区二区精品| 久久99久久精品| 欧美在线观看视频一区二区| 国产日韩精品视频一区| 亚洲成av人片在线观看无码| 国产精品456露脸| 91精品午夜视频| 国产精品久久久久一区二区三区 | 亚洲一区二区欧美激情| 国产主播一区二区三区| 欧美日韩免费在线视频| 国产精品大尺度| 国产精品亚洲一区二区三区在线 |