Introduction - If you have any usage issues, please Google them yourself
using System using System.Runtime.InteropServices
Namespace JustinIO {? Class CommPort {
? ? Public string PortNum? ? Public int BaudRate? ? Public byte
ByteSize? ? Public byte Parity // 0-4=no, odd, even, mark, space? ?
Public byte StopBits // 0,,1,2 = 1, 1.5, 2? ? Public int ReadTimeout?
? ? ? //comm port win32 file handle? ? Private int hComm =-1? ? ? ?
Public bool Opened = false? ? ? ? //win32 api constants? ? ? Private
const uint GENERIC_READ = 0x80000000? ? ? Private const uint
GENERIC_WRITE = 0x40000000? ? ? Private const int OPEN_EXISTING = 3? ?
? ? ? Private const int INVALID_HANDLE_VALUE =-1? ?
Packet : 75448185串口通讯justinio.rar filelist
串口通讯JustinIO.html