资源简介
对HID设备进行读写的例子,给新手一个参考
![](http://www.nz998.com/pic/38803.jpg)
代码片段和文件信息
‘//--------------------------------------------------------------------------
//
// USB HID Device and USB HID Device Manager Helper Classes
//
// The building blocks for this code was derived from the HCLIENT sample code
// provided by Microsoft in the Windows XP DDK.
//
//--------------------------------------------------------------------------
// $Archive: /WirelessUSB/LS2/Firmware/LP KBM RDK/Software/Source Code/CUSBHidAPI/HidAPI.cpp $
// $Modtime: 10/01/04 2:03p $
// $Revision: 2 $
//--------------------------------------------------------------------------
//
// Copyright 2003-2004 Cypress Semiconductor Corporation.
//
// This software is owned by Cypress Semiconductor Corporation (Cypress)
// and is protected by and subject to worldwide patent protection (United
// States and foreign) United States copyright laws and international
// treaty provisions. Cypress hereby grants to licensee a personal
// non-exclusive non-transferable license to copy use modify create
// derivative works of and compile the Cypress Source Code and derivative
// works for the sole purpose of creating custom software in support of
// licensee product to be used only in conjunction with a Cypress integrated
// circuit as specified in the applicable agreement. Any reproduction
// modification translation compilation or representation of this
// software except as specified above is prohibited without the express
// written permission of Cypress.
//
// Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED
// WITH REGARD TO THIS MATERIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// Cypress reserves the right to make changes without further notice to the
// materials described herein. Cypress does not assume any liability arising
// out of the application or use of any product or circuit described herein.
// Cypress does not authorize its products for use as critical components in
// life-support systems where a malfunction or failure may reasonably be
// expected to result in significant injury to the user. The inclusion of
// Cypress?product in a life-support systems application implies that the
// manufacturer assumes all risk of such use and in doing so indemnifies
// Cypress against all charges.
//
// Use may be limited by and subject to the applicable Cypress software
// license agreement.
//
//--------------------------------------------------------------------------
#include “StdAfx.h“
#include
#include “hidapi.h“
#define HIDMANAGER_CLASS _T(“CHidManager“)
CHidManager* CHidManager::m_pThis = NULL;
OSVERSIONINFO m_OS;
bool CHidDevice::InitializeHidDevice(PCHAR pDevicePath USHORT uID)
{
nextHidDevice = NULL;
m_bOpened = false;
m_hDevice = NULL;
m_hDeviceRegistered = NULL;
m_hWnd = NULL;
m_bOpenedForRead = false;
m_bOpenedForWrite = false;
m_bOpenedOverlapped = false;
m
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1078 2002-01-31 21:36 HID读写\res\USBPort.ico
文件 399 2002-01-31 21:36 HID读写\res\USBPort.rc2
目录 0 2007-04-28 13:08 HID读写\res
文件 5649 2007-04-23 15:40 HID读写\UsbPort\UsbPort.vcproj
文件 2763 2007-05-22 14:44 HID读写\UsbPort\ReadMe.txt
文件 4091 2007-04-28 12:57 HID读写\UsbPort\UsbPortDlg.h
文件 12384 2006-12-19 00:00 HID读写\UsbPort\hid.lib
文件 14555 2007-03-25 15:00 HID读写\UsbPort\hidsdi.h
文件 2489 2007-04-17 15:07 HID读写\UsbPort\stdafx.h
文件 138 2007-04-17 15:07 HID读写\UsbPort\stdafx.cpp
文件 1414 2007-06-28 23:38 HID读写\UsbPort\UsbPort.vcproj.SCYCLONE.Administrator.user
文件 707 2007-04-28 12:04 HID读写\UsbPort\UsbPort.h
文件 80543 2006-12-19 00:00 HID读写\UsbPort\hidpi.h
文件 11305 2006-12-19 00:00 HID读写\UsbPort\hidusage.h
文件 194084 2005-04-14 17:54 HID读写\UsbPort\SetupAPI.h
文件 9440 2007-04-28 12:11 HID读写\UsbPort\UsbPortDlg.cpp
文件 142498 2005-04-14 17:56 HID读写\UsbPort\SetupAPI.Lib
文件 6306 2007-04-28 12:59 HID读写\UsbPort\UsbPort.rc
文件 1184 2007-04-27 19:07 HID读写\UsbPort\Resource.h
文件 1020 2007-04-23 12:54 HID读写\UsbPort\UsbPort.sln
文件 9929 2007-04-19 13:32 HID读写\UsbPort\HidAPI.h
文件 66361 2007-04-19 13:21 HID读写\UsbPort\HidAPI.cpp
..A..H. 87552 2007-06-28 23:38 HID读写\UsbPort\UsbPort.suo
文件 24808 2007-06-28 19:58 HID读写\UsbPort\UsbPort.aps
文件 1427 2007-04-28 12:59 HID读写\UsbPort\UsbPort.vcproj.USER-C9B7CF26E5.Administrator.user
文件 1849 2007-04-28 12:04 HID读写\UsbPort\UsbPort.cpp
文件 363 2007-04-17 15:07 HID读写\UsbPort\res\UsbPort.rc2
文件 3262 2007-04-17 15:27 HID读写\UsbPort\res\UsbPort.ico
目录 0 2007-04-28 13:08 HID读写\UsbPort\res
目录 0 2007-04-28 13:08 HID读写\UsbPort\Debug
............此处省略7个文件信息
相关资源
- usb hid调试工具
- HID调试助手
- USB.Over.Network.Server 注册机
- WPF USB 网络 串口 通信软件
- USB转串口驱动,FT232R驱动程序,最新
- WinCE下CP210x的驱动程序
- hidusage.h hidpi.h 等USB开发用头文件
- 基于JM20329的SATA转USB 1394
- 430系列单片机USBFET下载驱动
- CY7C68013A固件程序(用于摄像机采集)
- usb调试程序 对USB设备进行数据的读写
- USB 驱动 让电脑与arm进行通信
- USB助手(调试USB通信协议的工具) 源
- 基于FPGA的USB接口设计
- 枚举USB设备接口(C 源代码)
- 多普达USB Modem驱动(适用于818、828、
- SN9C291B datasheet
- 希捷公布USB外部硬盘解决方案
- USB调试模式一键设置
- USB网卡驱动 USB2.0 TO Fast Ethernet Adapte
- USB转串口(RS232/RS485/RS422)驱动程序文
- USB Type-C SPEC
- H310.B360.H370.Z390.USB WIN7 64位第三方驱动
- 300系列WIN7 USB驱动.7z
- 华硕P8H61/USB3 R2.0主板BIOS驱动 免费版
- RTL8188EVT USB WIFI无线网卡驱动 免费版
- RTL8188 USB无线网卡模块完整方案
- USB PCB布局布线要点及注意事项
- USB驱动 INF中的服务安装段落无效的原
- MTP USB驱动win7 32+64位可用版
评论
共有 条评论