串行设备驱动.ppt

  1. 1、本文档共35页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
串行设备驱动 博创科技 嵌入互动 主要内容 1、Windows CE.net串行设备简介 2、串口设备驱动 3、串行设备API简介 4、串口设备操作 5、红外设备简介 1、Windows CE.net串行设备简介 Windows CE.net串行设备 Windows CE.net的串行设备应用十分广泛 GPRS通信 智能数据终端 GPS定位系统 红外通讯设备 使用通用码流进行数据传输,与标准串口完全兼容 支持3线/9线串口方式 串口模型基本延续了桌面系统的风格和基本的API,但未封装成类 串口的7层结构 Netarm2410-S串行设备情况 UART0(3线) 标准格式化信息输出串口;基本通讯串口 UART1(3线) 基本通讯串口(未使用) UART2(3线) 红外通讯串口;基本通讯串口 2、串口设备驱动 串口设备驱动 是一种流驱动 BSP中提供的串口驱动模型较为复杂,在结构上也分层为MDD和PDD层 3、串行设备API简介 串口的API CreateFileOpens a serial port. GetCommStateFills in a device-control block — DCB structure — with the current control settings for a specified communication device. SetCommStateConfigures a communication device according to the specifications in a DCB structure. The function reinitializes all hardware and control settings, but does not empty I/O queues. GetCommTimeoutsRetrieves the time-out parameters for all read/write operations on a specified communication device. SetCommTimeoutsSets the time-out parameters for all read/write operations on a specified communication device. WriteFileWrites data to a serial port, which transfers data to the device at the other end of a serial connection. ReadFileReads data from a serial port, which receives data from a device at the other end of a serial connection. 串口的API SetCommMaskSpecifies a set of events to monitor for a communication device. GetCommMaskRetrieves the value of the event mask for a specified communication device. WaitCommEventWaits for an event to occur for a specified communication device. The set of events monitored by WaitCommEvent is contained in the event mask associated with the device handle. EscapeCommFunctionDirects a specified communication device to perform an extended function. Often used to set a serial port to IR mode. ClearCommBreakRestores character transmission for a specified communication device and places the transmission line in a non-break state. ClearCommErrorRetrieves communication error data and reports the current status of a specified communication device. 4、串口设备操

文档评论(0)

shaoye348 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档