📄 windowsce_net 420串口驱动分析(3)--jesse.htm
字号:
lang=EN-US>PDD</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实现</SPAN><SPAN
lang=EN-US>)</SPAN> </P></TD></TR>
<TR style="HEIGHT: 9.75pt; mso-yfti-irow: 6">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 9.75pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_SET_RTS</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 9.75pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">将</SPAN><SPAN
lang=EN-US>RTS</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">引线拉高。</SPAN><SPAN
lang=EN-US>(</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">直接调用</SPAN><SPAN
lang=EN-US>PDD</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实现</SPAN><SPAN
lang=EN-US>)</SPAN> </P></TD></TR>
<TR style="HEIGHT: 6pt; mso-yfti-irow: 7">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 6pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_CLR_RTS</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 6pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">将</SPAN><SPAN
lang=EN-US>RTS</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">引线拉低。</SPAN><SPAN
lang=EN-US>(</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">直接调用</SPAN><SPAN
lang=EN-US>PDD</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实现</SPAN><SPAN
lang=EN-US>)</SPAN> </P></TD></TR>
<TR style="HEIGHT: 9.75pt; mso-yfti-irow: 8">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 9.75pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_SET_XOFF</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 9.75pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">软件流模式下中止数据发送</SPAN><SPAN
lang=EN-US>(Xflow</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制</SPAN><SPAN
lang=EN-US>)</SPAN> </P></TD></TR>
<TR style="HEIGHT: 3.5pt; mso-yfti-irow: 9">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_SET_XON</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">软件流模式下启动数据发送</SPAN><SPAN
lang=EN-US>(XFlow</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">控制</SPAN><SPAN
lang=EN-US>)</SPAN> </P></TD></TR>
<TR style="HEIGHT: 11.25pt; mso-yfti-irow: 10">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 11.25pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_GET_WAIT_MASK</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 11.25pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">获取当前的事件对象</SPAN>
</P></TD></TR>
<TR style="HEIGHT: 3.5pt; mso-yfti-irow: 11">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_SET_WAIT_MASK</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">设置事件对象,这个过程相对比较麻烦,要将当前获得的事件对象</SPAN><SPAN
lang=EN-US>mask</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">设置到所有的</SPAN><SPAN
lang=EN-US>Open</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">实例中,这和前面的</SPAN>
<SPAN lang=EN-US>EvaluateEventFlag</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">过程相似。</SPAN>
</P></TD></TR>
<TR style="HEIGHT: 3.5pt; mso-yfti-irow: 12">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
lang=EN-US>IOCTL_SERIAL_WAIT_ON_MASK</SPAN> </P></TD>
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; WIDTH: 247.6pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-left-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=330>
<P class=MsoNormal
style="MARGIN: 0cm 22.2pt 0pt 0cm; mso-element: frame; mso-element-wrap: around; mso-element-anchor-horizontal: margin; mso-element-top: -2.05pt; mso-height-rule: exactly; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等待与提供的事件相同的事件发生,实现实体是</SPAN>
<SPAN lang=EN-US>WaitCommEvent</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">后面再讨论。</SPAN>
</P></TD></TR>
<TR style="HEIGHT: 3.5pt; mso-yfti-irow: 13">
<TD
style="BORDER-RIGHT: white 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: white 1pt solid; WIDTH: 195.4pt; COLOR: #ffffff; PADDING-TOP: 0cm; BORDER-BOTTOM: white 1pt solid; HEIGHT: 3.5pt; mso-border-alt: solid white .5pt; mso-border-top-alt: solid white .5pt"
vAlign=top width=261>
<P class=MsoNormal
style="MARGIN: 0cm 4.6pt 0pt 0cm; mso-element
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -