串口通信

使用win32 api编写串口程序的主要步骤

1.打开串口

{

  hCom = CreateFile();

  SetupComm();

  DCB dcb;

  SetCommState();

}

2.读取数据

ReadFile();

3.写入数据

WriteFile();

原文地址:https://www.cnblogs.com/jck34/p/2730571.html