• 大小: 0.19M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-05-01
  • 语言: C#
  • 标签: usb  sb  开发  C#  

资源简介


资源截图

代码片段和文件信息

/*****************************************************************************
*                                                                            *
* HID USB DRIVER - FLORIAN LEITNER                                           *
* Copyright 2007 - Florian Leitner | http://www.florian-leitner.de           *
* mail@florian-leitner.de                                                    *
*                                                                            *   
* This file is part of HID USB DRIVER.                                       *
*                                                                            *
*   HID USB DRIVER is free software; you can redistribute it and/or modify   *
*   it under the terms of the GNU General Public License 3.0 as published by *
*   the Free Software Foundation;                                            *
*   HID USB DRIVER is distributed in the hope that it will be useful        *
*   but WITHOUT ANY WARRANTY; without even the implied warranty of           *
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            *
*   GNU General Public License for more details.                             *
*   You should have received a copy of the GNU General Public License        *
*   along with this program.  If not see .    *
*                                                                            *
******************************************************************************/
//---------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace USBHIDDRIVER
{
    /// 
    /// Interface for the HID USB Driver.
    /// 

    public class USBInterface
    {
        private string usbVID;
        private string usbPID;
        private bool isConnected;

        private USB.HIDUSBDevice usbdevice;

        //USB LIST BUFFER
        /// 
        /// Buffer for incomming data.
        /// 

        public static USBHIDDRIVER.List.ListWithEvent usbBuffer = new USBHIDDRIVER.List.ListWithEvent();

        /// 
        /// Initializes a new instance of the  class.
        /// 

        /// The vendor id of the USB device (e.g. vid_06ba)
        /// The product id of the USB device (e.g. pid_ffff)
       public  USBInterface(string vid string pid)
        {
            this.usbVID = vid;
            this.usbPID = pid;
            this.usbdevice = new USB.HIDUSBDevice(this.usbVID this.usbPID);
        }

        /// 
        /// Initializes a new instance of the  class.
        /// 

        /// The vendor id of the USB device (e.g. vid_06ba).
        public USBInterface(string vid)
    

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

     文件        925  2007-08-02 14:42  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\HID USB DRIVER.sln

    ..A..H.     44032  2007-09-19 17:12  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\HID USB DRIVER.suo

     文件       7302  2007-08-02 15:18  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\Interface.cs

     文件       1500  2007-07-27 09:10  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\Properties\AssemblyInfo.cs

     文件       4198  2007-08-01 16:52  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\TESTS\TestFixture.cs

     文件       6626  2007-08-02 15:18  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\USB\HidDeclarations.cs

     文件      28168  2007-08-02 15:18  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\USB\HIDUSBDevice.cs

     文件       3587  2007-08-02 15:17  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\USB\ListWithEvent.cs

     文件      29958  2007-08-02 15:17  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\USB\USBSharp.cs

     文件       2795  2007-08-01 11:44  csharp-usb-hid-driver\csharp-usb-hid-driver\Backup\USBHIDDRIVER\USBHIDDRIVER.csproj

     文件        930  2011-02-07 13:50  csharp-usb-hid-driver\csharp-usb-hid-driver\HID USB DRIVER.sln

    ..A..H.     49664  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\HID USB DRIVER.suo

     文件      35147  2007-08-02 15:14  csharp-usb-hid-driver\csharp-usb-hid-driver\license.txt

     文件       3962  2011-02-07 13:50  csharp-usb-hid-driver\csharp-usb-hid-driver\UpgradeLog.xml

     文件     108302  2007-07-27 13:59  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Debug\Coverage.Log

     文件      69632  2007-05-03 10:25  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Debug\nunit.framework.dll

     文件     294395  2007-05-03 10:25  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Debug\nunit.framework.xml

     文件      19456  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Debug\USBHIDDRIVER.dll

     文件      50688  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Debug\USBHIDDRIVER.pdb

     文件      11129  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Debug\USBHIDDRIVER.xml

     文件       2227  2000-12-05 00:57  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\doc.css

     文件       8534  2000-12-05 00:57  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\doc.xsl

     文件      69632  2007-05-03 10:25  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\nunit.framework.dll

     文件        226  2002-07-25 09:53  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\readme.txt

     文件      18432  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\USBHIDDRIVER.dll

     文件      38400  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\USBHIDDRIVER.pdb

     文件      11129  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\bin\Release\USBHIDDRIVER.xml

     文件       7302  2007-08-02 15:18  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\Interface.cs

     文件       3370  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\obj\Debug\ResolveAssemblyReference.cache

     文件        794  2011-02-07 17:06  csharp-usb-hid-driver\csharp-usb-hid-driver\USBHIDDRIVER\obj\Debug\USBHIDDRIVER.csproj.FileListAbsolute.txt

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

评论

共有 条评论