-
大小: 65.73MB文件类型: .zip金币: 2下载: 1 次发布日期: 2023-01-25
- 语言: C#
- 标签: C# USB通信 DotNetUSBLib
资源简介
本资源是使用C#和DotNetUSBLib开发的USB通信实例程序,使用VS2015+Devexpress编写,可以结合我的相关博文进行学习实验
代码片段和文件信息
// Copyright ?2006-2010 Travis Robinson. All rights reserved.
//
// website: http://sourceforge.net/projects/libusbdotnet
// e-mail: libusbdotnet@gmail.com
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2 of the License or
// (at your option) any later version.
//
// This program 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 write to the Free Software Foundation Inc.
// 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA. or
// visit www.gnu.org.
//
//
using LibUsbDotNet.LudnMonoLibUsb;
using LibUsbDotNet.WinUsb;
namespace LibUsbDotNet
{
///
/// The interface contains members needed to configure a USB device for use.
///
///
/// Only “whole“ usb devices have a interface such as a
/// or a . This indicates
/// the USB device must be properly configured by the user before it can be used.
/// Partial or interfaces of devices such as a do not have an
/// interface. This indicates that the driver is handling device configuration.
///
///
/// This example uses the interface to select the desired configuration and interface
/// for usb devices that require it.
///
///
public interface IUsbDevice : IUsbInterface
{
///
/// Sets the USB devices active configuration value.
///
/// The active configuration value. A zero value means the device is not configured and a non-zero value indicates the device is configured.
/// True on success.
///
/// A USB device can have several different configurations but only one active configuration.
///
bool SetConfiguration(byte config);
///
/// Gets the USB devices active configuration value.
///
/// The active configuration value. A zero value means the device is not configured and a non-zero value indicates the device is configured.
/// True on success.
bool GetConfiguration(out byte config);
///
/// Sets an alternate interfa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-02 13:43 USBTest\
目录 0 2017-09-12 10:29 USBTest\Backup\
目录 0 2017-09-12 10:29 USBTest\Backup\Desc
文件 2028 2010-07-09 00:41 USBTest\Backup\Desc
文件 2712 2010-07-09 00:41 USBTest\Backup\Desc
文件 4002 2010-07-09 00:41 USBTest\Backup\Desc
文件 981 2010-07-09 00:41 USBTest\Backup\Desc
文件 4541 2010-07-09 00:41 USBTest\Backup\Desc
文件 2769 2010-07-09 00:41 USBTest\Backup\Desc
文件 10651 2010-07-09 00:41 USBTest\Backup\Desc
文件 5490 2010-07-09 00:41 USBTest\Backup\Desc
文件 5113 2010-07-09 00:41 USBTest\Backup\Desc
目录 0 2017-09-12 10:29 USBTest\Backup\DeviceNotify\
文件 1830 2010-07-09 00:41 USBTest\Backup\DeviceNotify\DeviceNotifier.cs
文件 3912 2010-07-09 00:41 USBTest\Backup\DeviceNotify\DeviceNotifyEventArgs.cs
文件 1870 2010-07-09 00:41 USBTest\Backup\DeviceNotify\DeviceType.cs
文件 2219 2010-07-09 00:41 USBTest\Backup\DeviceNotify\EventType.cs
文件 2089 2010-07-09 00:41 USBTest\Backup\DeviceNotify\IDeviceNotifier.cs
目录 0 2017-09-12 10:29 USBTest\Backup\DeviceNotify\Info\
文件 1737 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Info\IPortNotifyInfo.cs
文件 2575 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Info\IUsbDeviceNotifyInfo.cs
文件 2373 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Info\IVolumeNotifyInfo.cs
文件 2333 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Info\PortNotifyInfo.cs
文件 3940 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Info\UsbDeviceNotifyInfo.cs
文件 3912 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Info\VolumeNotifyInfo.cs
目录 0 2017-09-12 10:29 USBTest\Backup\DeviceNotify\Internal\
文件 1548 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Internal\DevBroadcastDeviceinterface.cs
文件 1289 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Internal\DevBroadcastHdr.cs
文件 1354 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Internal\DevBroadcastPort.cs
文件 1353 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Internal\DevBroadcastVolume.cs
文件 2610 2010-07-09 00:41 USBTest\Backup\DeviceNotify\Internal\DevNotifyNativeWindow.cs
............此处省略656个文件信息
相关资源
- C# 调用win32 api函数-user32.dll详细说明
- C# 调用BarTender打印条码DEMO
- 大型比赛竞赛抽签系统 可打印 c# vs
- C#编写的Gerber查看器
- lua C# .Net4.0 vs2010 LuaInterface
- C#十六进制编辑器
- 明华URF-35H读卡器 C#读写源码 为大家
- C#文件流读取CSV文件
- c#读写PDF文件sql
- C# winform Socket大文件传输
- c#车牌识别系统附30张测试图片
- 《C#面向对象程序设计》源代码(CS)
- 金旭亮《C#面向对象程序设计》教案
- 试题库管理系统毕业论文(C#)源程序
- 学校网站原代码(C#.NET)
- C#-数据库操作技术-员工管理系统
- c#web开发入门经典
- C#与Matlab混合编程的几种方式
- c# 开发与 mysql数据库实现的增删改查
- C#异步操作 异步查询数据库 异步处理
- Basler相机通过IO触发源码
- [源代码] 《领域驱动设计 (C# 2008 实
- 松下PLC与C#通讯串口调试入门教程.z
- USB 继电器控制器 LCUS-1 保证能用 c#
- C# AES加密解密小工具
- C#圆形按钮,非常漂亮动态~~
- [精]C#仿QQ右下角弹出提示框()
- C#进程间通信-共享内存代码
- 有史以来最简单的三层(C#)
- vb调用c#编写的串口DLL文件(vb源码
评论
共有 条评论