⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rawhdlc_h.htm

📁 HDLC的软件解码
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0055)http://www.isdn4linux.de/workshop/hisax/rawhdlc.h.shtml -->
<HTML><HEAD><TITLE>rawhdlc.h</TITLE>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type><!-- Generated by c2html-1.0, Copyright 1998 by Dave Whittington -->
<SCRIPT language=JavaScript type=text/javascript><!-- if (window.name == "bannerframe") {	top.location = "http://www.isdn4linux.de";}var js_ok = false;js_but = new Array();if ( navigator.appName.substring(0,9) == "Microsoft" &&	parseInt(navigator.appVersion) >= 4 )	js_ok = true;if ( navigator.appName.substring(0,8) == "Netscape" &&	parseInt(navigator.appVersion) >= 3 )	js_ok = true;if ( navigator.appName.substring(0,7) == "Mozilla" &&	parseInt(navigator.appVersion) >= 3 )	js_ok = true;function js_button(pic, desc) {	if (js_ok) {		this.pic = new Image();		this.pic.src = pic;		this.pic_active = new Image();		this.pic_active.src = pic.substring(0, pic.length - 4) + "-ovr.gif";		this.text = desc;	}}function js_moveover(id) {	if (js_ok) {		document[id].src = js_but[id].pic_active.src;		window.status = js_but[id].text;	}}function js_moveaway(id) {	if (js_ok) {		document[id].src = js_but[id].pic.src;		window.status = "";	}}function check_frame() { 	if (window != parent) { 		document.writeln('<BR>This Document has been put into a frame by some foreign document.<BR>'); 		document.writeln('If you do not like frames, go directly to <A HREF="http://www.isdn4linux.de" TARGET="_top">www.isdn4linux.de<\/A>, the original site.<BR>'); 	}}// --></SCRIPT>

<SCRIPT language=JavaScript type=text/javascript><!--js_but["_pics_home_gif"] = new js_button("/pics/home.gif", "Back to the ISDN4Linux Homepage");js_but["_pics_up_gif"] = new js_button("/pics/up.gif", "Go up one level");js_but["_pics_mail_gif"] = new js_button("/pics/mail.gif", "Send mail to webmaster about this page");// --></SCRIPT>

<META content="MSHTML 5.00.3813.800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<TABLE width="100%">
  <TBODY>
  <TR>
    <TD align=left width=90><A href="http://www.isdn4linux.de/" 
      onmouseout="js_moveaway('_pics_home_gif')" 
      onmouseover="js_moveover('_pics_home_gif')"><IMG alt=Home border=0 
      height=28 name=_pics_home_gif src="rawhdlc_h.files/home.gif" width=76></A> 
    </TD>
    <TD align=right width=90><A 
      href="http://www.isdn4linux.de/workshop/hisax/index.shtml" 
      onmouseout="js_moveaway('_pics_up_gif')" 
      onmouseover="js_moveover('_pics_up_gif')"><IMG alt=up border=0 height=33 
      name=_pics_up_gif src="rawhdlc_h.files/up.gif" width=43></A> 
</TD></TR></TBODY></TABLE>
<CENTER>
<H1>rawhdlc.h</H1></CENTER>
<HR>
<PRE><FONT color=#0000ff>/* rawhdlc.h.shtml,v 1.1.1.1 2002/08/19 05:50:13 fritz Exp

 * rawhdlc.h     support routines for cards that don't support HDLC
 *
 * Author     Brent Baccala &lt;baccala@FreeSoft.org&gt;
 *
 */</FONT>

<FONT color=#a521f7>#ifndef</FONT> RAWHDLC_H
<FONT color=#298c52>struct</FONT> hdlc_state {
	<FONT color=#298c52>char</FONT> insane_mode;
	u_char state;
	u_char r_one;
	u_char r_val;
	u_int o_bitcnt;
	u_int i_bitcnt;
	u_int fcs;
};


<FONT color=#298c52>int</FONT> make_raw_hdlc_data(u_char *src, u_int slen, u_char *dst, u_int dsize);
<FONT color=#298c52>void</FONT> init_hdlc_state(<FONT color=#298c52>struct</FONT> hdlc_state *stateptr, <FONT color=#298c52>int</FONT> mode);
<FONT color=#298c52>int</FONT> read_raw_hdlc_data(<FONT color=#298c52>struct</FONT> hdlc_state *saved_state,
                       u_char *src, u_int slen, u_char *dst, u_int dsize);
<FONT color=#a521f7>#define</FONT> RAWHDLC_H
<FONT color=#a521f7>#endif</FONT>



</PRE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -