资源简介
对HID设备进行读写的例子,给新手一个参考
代码片段和文件信息
‘//--------------------------------------------------------------------------
//
// 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个文件信息
相关资源
- 银灿IS917U盘PCB电路原理图+PCB图
- HT42B534 USB转串口驱动
- 禁用 启用U盘,不影响USB鼠标键盘 注
- 基于LABVIEW 的STM32USB数据采集
- 有数字认证的winusb.sys
- usb 最全封装库含micro usbfor altium
- USB转串口驱动源代码及单片机程序
- HID 免驱 描述符
- Memtest86+ 5.01USB Installer
- usb hid 数据读取
- openwrt多个打印机luci
- 炜煌打印机USB驱动For Win7
- USB线转RS232串口驱动
- micro usb封装5P 贴片 带定位柱
- USBViewer源码
- stm32实现USB_存储_HID复合设备
- 基于DSF架构的USB设备虚拟.pdf
- usb_hid_pc接收发送工具
- tiny6410 适用于win7 64bit的dnw 的USB驱动
- win8 USB Blaster 驱动 带数字签名 通杀
- 利用USB虚拟总线驱动模拟USB摄像头的
- CY7C68013A原理图和封装
- cyusb-mingw-lib.rar
- PatchIDM.rar
- USB Blaster 64位驱动 不蓝屏
- uboot中usb驱动代码
- Logitech K380 Fn lock
- usb 2.0 to fast ethernet adapter
- zw_microusb.zip
- zw_micro_usb_封装.zip
评论
共有 条评论