文件名称:串口通讯JustinIO
介绍说明--下载内容均来自于网络,请自行研究使用
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
-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? ?
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
-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? ?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 75448185串口通讯justinio.rar 列表 串口通讯JustinIO.html