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

📄 实例——usb设备驱动设计(下)--山野村夫.htm

📁 USB驱动设计的步骤和主要程序框架
💻 HTM
📖 第 1 页 / 共 4 页
字号:
        <TR>
          <TD width="19%">&nbsp;</TD>
          <TD class=banner width="64%">
            <TABLE cellSpacing=0 cellPadding=0 width="80%" align=left 
              border=0><TBODY>
              <TR>
                <TD class=blog_name><A href="http://blog.eccn.com/"><FONT 
                  color=#ffffff size=2 
                  target="_blank">中电网博客<BR>http://blog.eccn.com</FONT></A></TD></TR>
              <TR>
                <TD class=blog_name><SPAN 
            id=blogname></SPAN></TD></TR></TBODY></TABLE></TD>
          <TD width="17%">&nbsp;</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=53 alt="" 
            src="实例——USB设备驱动设计(下)--山野村夫.files/index_05.jpg" 
        width=752></TD></TR></TBODY></TABLE>
      <TABLE class=content3 cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width="3%">&nbsp;</TD>
          <TD vAlign=top>
            <DIV id=topMenu>
            <DIV id=subject_l></DIV></DIV></TD>
          <TD width="3%">&nbsp;</TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width=509>
            <DIV id=content>
            <TABLE height=13 cellSpacing=0 cellPadding=0 width=490 align=center 
            border=0>
              <TBODY>
              <TR>
                <TD>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD>
                        <TABLE class=seyle4 cellSpacing=0 cellPadding=0 
                        width="100%" border=0>
                          <TBODY>
                          <TR>
                            <TD>&nbsp;</TD></TR>
                          <TR>
                            <TD class=content9 vAlign=center 
                              bgColor=#bbccde><STRONG>实例——USB设备驱动设计(下)</STRONG></TD></TR>
                          <TR>
                            <TD>
                              <DIV align=right><SPAN class=textbox-label>[ 
                              2007-10-9 10:56:00 | By: <SPAN 
                              class=style3>山野村夫</SPAN> 
                          ]</SPAN></DIV></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>
                          <TR>
                            <TD height=3>&nbsp;</TD></TR></TBODY></TABLE>
                        <TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 
                        cellPadding=0 width="100%" align=center border=0>
                          <TBODY>
                          <TR>
                            <TD><SPAN class=oblog_text>
                              <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B 
                              style="mso-bidi-font-weight: normal"><SPAN 
                              lang=EN-US 
                              style="FONT-SIZE: 14pt; FONT-FAMILY: Times New Roman">3</SPAN></B><B 
                              style="mso-bidi-font-weight: normal"><SPAN 
                              style="FONT-SIZE: 14pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">系统模块源代码实现</SPAN></B><B 
                              style="mso-bidi-font-weight: normal"><SPAN 
                              lang=EN-US 
                              style="FONT-SIZE: 14pt"><o:p></o:p></SPAN></B></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              lang=EN-US><o:p><SPAN 
                              style="FONT-SIZE: 12pt; FONT-FAMILY: Times New Roman">&nbsp;</SPAN></o:p></SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              style="FONT-SIZE: 12pt"><SPAN lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">1</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">.</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">Host</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">端控制程序设计</SPAN></SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              lang=EN-US><o:p><SPAN 
                              style="FONT-SIZE: 12pt; FONT-FAMILY: Times New Roman">&nbsp;</SPAN></o:p></SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              style="FONT-SIZE: 12pt"><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">新一代通用串行接口</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">USB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的优良特性提供了一个的解决方案。</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">CUSB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的封装性和继承性如图</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">7-12</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">所示。将</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">USB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">函数封装成一个</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">CUSB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">类在使用的时候提供了很大的方便,它主要包括</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">2</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个成员变量和</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">4</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个成员函数,通过继承父类得到</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">2</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个派生类,这</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">2</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个派生类公有地继承了</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">CUSB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">类,通过对</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">4</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个成员函数使用完成对</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">USB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的读写操作,类的封装性方便了程序的结构和安全性,而继承性则大大地提高软件的开发效率。同时,封装性和继承性的结合大大提高了系统的可靠性和软件的重用性。</SPAN></SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              lang=EN-US><o:p><SPAN 
                              style="FONT-SIZE: 12pt; FONT-FAMILY: Times New Roman">&nbsp;</SPAN></o:p></SPAN></P>
                              <DIV class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              style="FONT-SIZE: 12pt"><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以下为</SPAN><SPAN 
                              lang=EN-US 
                              style="FONT-FAMILY: Times New Roman">USB</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">与嵌入式主机进行数据通信的关键程序:</SPAN></SPAN></DIV>
                              <DIV class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              style="FONT-SIZE: 12pt"><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN></SPAN><BR>&nbsp;</DIV>
                              <DIV><IMG onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109954376.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109370617.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109470318.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109343041.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109947234.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109113152.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109781011.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109876647.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109565295.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"><BR><IMG 
                              onmousewheel="return bbimg(this)" 
                              style="CURSOR: pointer" 
                              onclick=javascript:window.open(this.src); 
                              src="实例——USB设备驱动设计(下)--山野村夫.files/109502728.jpg" 
                              onload="javascript:if(this.width>665){this.resized=true;this.style.width=665;}"></DIV><BR><BR>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              lang=EN-US>2</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">.</SPAN><SPAN 
                              lang=EN-US>USB Device</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">驱动程序设计</SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">目前驱动程序开发的工具主要有</SPAN><SPAN 
                              lang=EN-US>Windiver</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">、微软的</SPAN><SPAN 
                              lang=EN-US>DDK</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN 
                              lang=EN-US>Compuware</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">公司的</SPAN><SPAN 
                              lang=EN-US>DriverStudio</SPAN><SPAN 
                              style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等。</SPAN></P>
                              <P class=MsoNormal 
                              style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21.75pt"><SPAN 
                              lang=EN-US><o:p>&nbsp;</o:p></SPAN></P>

⌨️ 快捷键说明

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