- 7
- 0
- 约9.53千字
- 约 12页
- 2019-07-12 发布于浙江
- 举报
自己动手编写串口动态库
手把手教你编写串口调试助手,单片机串口程序
一、串口库源码: 自行在vc6中建立动态库工程
#include stdafx.h
#include stdio.h
#include stdlib.h
#include windows.h
#include conio.h
#includeresource.h
/*导出函数*/
//函数参数:串口名:com1 波特率:9600 用于显示接收数据的文本框的句柄
extern C _declspec(dllexport) void Entry(char *comname, int BaudRate, HWND rhbox);
extern C _declspec(dllexport) bool openport(char *portname);
extern C _declspec(dllexport) bool setupdcb(int rate_arg);
extern C _declspec(dllexport) void SetTimeOut(int a, int b, int c, int d, int e);
//发送字符或16进制数
extern C _declspec(dllexport) void SendChar(unsigned char ch);
//显示方式:1:hex 0:ch
您可能关注的文档
最近下载
- 血液透析患者护理.ppt VIP
- 男性乳腺发育症.pptx VIP
- (2026年)病例讨论神经内科PPT课件.pptx
- 2026年入党转正申请书范文3000字.docx VIP
- 高教社旅游大数据理论、技术与应用教学课件1.pptx VIP
- 男性乳腺发育症.pptx VIP
- 中国药典2005版二部附录.doc
- 教学配套课件:旅游大数据的分析与应用.ppt
- 2025年绿化工职业技能理论知识考试题库(含答案+解析).docx VIP
- TPOWER 全钒液流储能电池 储能系统 TPOWER 601(250kWh) TPOWER 601(500kWh) TPOWER 601(750kWh) TPOWER 601(1000kWh) 说明书用户手册.pdf
原创力文档

文档评论(0)