- 1、本文档共35页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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、串口设备操
您可能关注的文档
- 中国文字趣味多.ppt
- 中国文学史总绪论.ppt
- 中国文学批评史毛诗序.ppt
- 中国旅游景观赏析第八章园林旅游景观.ppt
- 中国最全的数据库介绍(行业数据、工业企业数据、工业品数据、海关数据、经普数据、区域经济数据).ppt
- 中国最美丽的古诗词.ppt
- 中国最美古诗词.ppt
- 中国民族民间音乐.ppt
- 中国法制史课件二讲.ppt
- 中国烹饪主要菜系.ppt
- 2024至2030年中国羚羊角类饮片行业深度调查与前景预测分析报告.docx
- 重庆市面向中国农业大学定向选调2024届大学毕业生2024年国家公务员考试考试大纲历年真题14笔试历.docx
- 重庆市面向西北工业大学定向选调2024届大学毕业生00笔试历年典型考题及解题思路附答案详解.docx
- 中国不动杆菌感染治疗药行业市场现状分析及竞争格局与投资发展研究报告2024-2029版.docx
- 2024至2030年全球与中国ETL软件市场现状及未来发展趋势.docx
- 初中八年级(初二)生物下册期末考试1含答案解析.docx
- 干簧式继电器项目申请报告.docx
- 2024至2030年中国左氧氟沙星片行业深度调查与前景预测分析报告.docx
- 菜籽项目申请报告.docx
- 2024至2030年中国八角钢行业深度调查与前景预测分析报告.docx
文档评论(0)