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

📄 the serial interface.htm

📁 LINUX内核编程的一些程序例子
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0064)http://www.geocities.com/marco_corvi/games/lkpe/serial/index.htm -->
<HTML><HEAD><TITLE>The serial interface</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK 
href="The serial interface_file/style.css" rel=stylesheet>
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<H2>The serial interface</H2>
<DIV>References:<BR></DIV><BR clear=all><BR clear=all><BR clear=all>
<DIV>[Here i want to write something about the serial interface in the Linux 
kernel ...] </DIV>
<DIV>The serial structure <CODE>serial_struct</CODE> is defined in the header 
file include/linux/serial.h. Among the others it contains the following fields 
<UL>
  <LI><CODE>type</CODE>, port type 
  <LI><CODE>line</CODE>, line number 
  <LI><CODE>port</CODE>, port number 
  <LI><CODE>irq</CODE>, irq number 
  <LI><CODE>flags</CODE> 
  <LI><CODE>xmit_fifo_size</CODE>, size of the transmit FIFO buffer 
  <LI><CODE>baud_base</CODE> 
  <LI><CODE>close_delay</CODE> 
  <LI><CODE>closing_wait</CODE> 
  <LI><CODE>custom_divisor</CODE> 
  <LI><CODE>hub6</CODE> 
  <LI><CODE>io_type</CODE> </LI></UL></DIV>
<DIV>The <CODE>serial_icounter_struct</CODE> contains the interrupt counters 
(this structure is replicated by the <CODE>async_icount</CODE>, in which all the 
fields are __u32), 
<UL>
  <LI><CODE>cts</CODE> 
  <LI><CODE>dsr</CODE> 
  <LI><CODE>rng</CODE> 
  <LI><CODE>dcd</CODE> 
  <LI><CODE>rx</CODE> 
  <LI><CODE>tx</CODE> 
  <LI><CODE>frame</CODE> 
  <LI><CODE>overrun</CODE> 
  <LI><CODE>parity</CODE> 
  <LI><CODE>brk</CODE> 
  <LI><CODE>buf_overrun</CODE> </LI></UL></DIV><BR clear=all><FONT size=-1>Marco 
Corvi - 2003</FONT> 
<!-- text below generated by server. PLEASE REMOVE --></OBJECT></LAYER>
<DIV></DIV></SPAN></STYLE></NOSCRIPT></TABLE></SCRIPT></APPLET>
<SCRIPT 
language=JavaScript>var PUpage="76001084"; var PUprop="geocities"; </SCRIPT>

<SCRIPT language=JavaScript src="The serial interface_file/pu5geo.js"></SCRIPT>

<SCRIPT language=JavaScript 
src="The serial interface_file/ygIELib9.js"></SCRIPT>

<SCRIPT language=JavaScript>var yviContents='http://us.toto.geo.yahoo.com/toto?s=76001084&l=NE&b=1&t=1057747139';yviR='us';yfiEA(0);</SCRIPT>

<SCRIPT language=JavaScript src="The serial interface_file/mc.js"></SCRIPT>

<SCRIPT language=JavaScript src="The serial interface_file/geov2.js"></SCRIPT>

<SCRIPT language=javascript>geovisit();</SCRIPT>
<NOSCRIPT><IMG height=1 alt=setstats src="The serial interface_file/visit.gif" 
width=1 border=0></NOSCRIPT> <IMG height=1 alt=1 
src="The serial interface_file/serv.gif" width=1> <!-- w33.geo.scd.yahoo.com compressed/chunked Wed Jul  9 03:38:59 PDT 2003 --></BODY></HTML>

⌨️ 快捷键说明

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