• 大小: 3.28M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: API  串口  源码  

资源简介

自己用了还可以,c#写的串口通讯,也可以用在u3d

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Net;
using System.Diagnostics;
using System.IO;
using System.IO.Ports;
using System.Runtime.InteropServices;

namespace CommixAPI
{
    public class CommPort
    {
        #region 自定义全局变量

        public string PortName;
        public int BaudRate = 9600;
        public byte DataBits = 8; //4-8 
        public byte Parity = 0;   //0-4=nooddevenmarkspace 
        public byte StopBits = 0;   //012 = 1 1.5 2 
        public bool Opened = false;
        private int hComm = -1;//COM口句柄

        #endregion

        #region API相关定义
        private const strin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         31  2014-10-14 08:57  CommixAPI\CommixAPI\bin\Debug\Commix.lic

     文件      53248  2014-12-12 11:41  CommixAPI\CommixAPI\bin\Debug\CommixAPI.exe

     文件      62976  2014-12-12 11:41  CommixAPI\CommixAPI\bin\Debug\CommixAPI.pdb

     文件       5632  2005-11-11 22:25  CommixAPI\CommixAPI\bin\Debug\CommixAPI.vshost.exe

     文件        143  2014-12-04 09:37  CommixAPI\CommixAPI\bin\Debug\Config.ini

     文件     372736  2008-04-28 15:34  CommixAPI\CommixAPI\bin\Debug\DotNetSkin.dll

     文件      30870  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\Aquanox-DEEP.jpg

     文件      62576  2008-06-17 17:55  CommixAPI\CommixAPI\bin\Debug\skins\Aquanox-DEEP.skn

     文件      31180  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\Aquanox-SHALLOW2.jpg

     文件      62217  2008-06-17 17:56  CommixAPI\CommixAPI\bin\Debug\skins\Aquanox-SHALLOW2.skn

     文件      29984  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\black-BLACK.jpg

     文件      42190  2008-06-17 17:57  CommixAPI\CommixAPI\bin\Debug\skins\black-BLACK.skn

     文件      29284  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\BlackMesa-NORMAL.jpg

     文件      56178  2008-06-18 09:37  CommixAPI\CommixAPI\bin\Debug\skins\BlackMesa-NORMAL.skn

     文件      30208  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\ClearLook-SYSTEM.jpg

     文件      38104  2008-06-17 18:01  CommixAPI\CommixAPI\bin\Debug\skins\ClearLook-SYSTEM.skn

     文件      31238  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\ClearLooks-BLUE.jpg

     文件      47963  2008-06-17 18:00  CommixAPI\CommixAPI\bin\Debug\skins\ClearLooks-BLUE.skn

     文件      32105  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\ClearLooks-HUMAN.jpg

     文件     138078  2008-06-17 18:00  CommixAPI\CommixAPI\bin\Debug\skins\ClearLooks-HUMAN.skn

     文件      30653  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\corona-CORONA12.jpg

     文件      59854  2008-06-17 23:00  CommixAPI\CommixAPI\bin\Debug\skins\corona-CORONA12.skn

     文件      32952  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\Element-CLASSIC.jpg

     文件      60298  2008-06-17 18:03  CommixAPI\CommixAPI\bin\Debug\skins\Element-CLASSIC.skn

     文件      33953  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\Element-ROYAL.jpg

     文件      63555  2008-06-17 18:04  CommixAPI\CommixAPI\bin\Debug\skins\Element-ROYAL.skn

     文件      28125  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\Extensis-COPPERL.jpg

     文件      53642  2008-06-17 18:06  CommixAPI\CommixAPI\bin\Debug\skins\Extensis-COPPERL.skn

     文件      27604  2008-06-18 09:44  CommixAPI\CommixAPI\bin\Debug\skins\Extensis-EXTENSIS.jpg

     文件      52175  2008-06-17 18:07  CommixAPI\CommixAPI\bin\Debug\skins\Extensis-EXTENSIS.skn

............此处省略127个文件信息

评论

共有 条评论