Pcomm

// Pcomm.cpp : 定义控制台应用程序的入口点。
//

include “stdafx.h”

include

include “PComm.h”

include

include

include

pragma comment(lib, “PCOMM.lib”)

int port = 1;

int _tmain(int argc, _TCHAR* argv[])
{

    int status = sio_open(port);

    if (status == SIO_OK)
    {
        sio_ioctl(port, B115200, P_NONE | BIT_8 | STOP_1);
    }
    else
    {
        return 0;
    }

return 0;

}

这里写图片描述

猜你喜欢

转载自blog.csdn.net/u010440456/article/details/82705159