摘要:
简单用法:1.定义成员: CSerialPortm_SerialPort; 2.初始化:m_SerialPort.SetBufferSize(1024,1024);m_SerialPort.SetWnd(m_hWnd);m_SerialPort.SetNotifyNum(DEF_IN_BYTE_SIZE);if (m_SerialPort.IsOpen()){m_SerialPort.Close();}m_SerialPort.Open(1,"9600,O,8,1");m_SerialPort.ClearInputBuffer();m_SerialPort.ClearOut 阅读全文