Hid Demo EEprom ReadWrite

所属分类:其他
开发工具:C/C++
文件大小:373KB
下载次数:1
上传日期:2019-01-24 08:03:49
上 传 者 adenisio
说明:  Hid Demo EEprom ReadWrite source code

文件列表:
Hid Demo EEprom ReadWrite (0, 2010-12-10)
Hid Demo EEprom ReadWrite\hid-data (0, 2010-11-16)
Hid Demo EEprom ReadWrite\hid-data\commandline (0, 2010-11-16)
Hid Demo EEprom ReadWrite\hid-data\commandline\hiddata.c (12230, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\commandline\hiddata.h (3385, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\commandline\hidsdi.h (1686, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\commandline\hidtool.c (3795, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\commandline\Makefile (1003, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\commandline\Makefile.windows (496, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\firmware (0, 2010-11-16)
Hid Demo EEprom ReadWrite\hid-data\firmware\main.c (5378, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\firmware\main.elf (7240, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\main.hex (5991, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\main.o (1900, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\main.S (3928, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\Makefile (6844, 2010-07-15)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbconfig.h (18425, 2010-10-25)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv (0, 2010-11-16)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\asmcommon.inc (8011, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\Changelog.txt (13880, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\CommercialLicense.txt (7257, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\License.txt (19126, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\oddebug.c (1036, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\oddebug.h (2976, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\oddebug.o (685, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\oddebug.S (164, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\USB-ID-FAQ.txt (7046, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\USB-IDs-for-free.txt (6765, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbconfig-prototype.h (18670, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrv.c (24641, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrv.h (30899, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrv.o (4328, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrv.S (7891, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrvasm.asm (618, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrvasm.o (3788, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrvasm.S (11323, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrvasm12.inc (15413, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrvasm128.inc (28684, 2010-10-28)
Hid Demo EEprom ReadWrite\hid-data\firmware\usbdrv\usbdrvasm15.inc (17893, 2010-10-28)
... ...

This is the Readme file for the hid-data example. In this example, we show how blocks of data can be exchanged with the device using only functionality compliant to the HID class. Since class drivers for HID are included with Windows, you don't need to install drivers on Windows. WHAT IS DEMONSTRATED? ===================== This example demonstrates how the HID class can be misused to transfer fixed size blocks of data (up to the driver's transfer size limit) over HID feature reports. This technique is of great value on Windows because no driver DLLs are needed (the hid-custom-rq example still requires the libusb-win32 DLL, although it may be in the program's directory). The host side application requires no installation, it can even be started directly from a CD. This example also demonstrates how to transfer data using usbFunctionWrite() and usbFunctionRead(). PREREQUISITES ============= Target hardware: You need an AVR based circuit based on one of the examples (see the "circuits" directory at the top level of this package), e.g. the metaboard (http://www.obdev.at/goto.php?t=metaboard). AVR development environment: You need the gcc tool chain for the AVR, see the Prerequisites section in the top level Readme file for how to obtain it. Host development environment: A C compiler and libusb on Unix. On Windows you need the Driver Development Kit (DDK) Instead of libusb. MinGW ships with a free version of the DDK. BUILDING THE FIRMWARE ===================== Change to the "firmware" directory and modify Makefile according to your architecture (CPU clock, target device, fuse values) and ISP programmer. Then edit usbconfig.h according to your pin assignments for D+ and D-. The default settings are for the metaboard hardware. Type "make hex" to build main.hex, then "make flash" to upload the firmware to the device. Don't forget to run "make fuse" once to program the fuses. If you use a prototyping board with boot loader, follow the instructions of the boot loader instead. Please note that the first "make hex" copies the driver from the top level into the firmware directory. If you use a different build system than our Makefile, you must copy the driver by hand. BUILDING THE HOST SOFTWARE ========================== Make sure that you have libusb (on Unix) or the DDK (on Windows) installed. We recommend MinGW on Windows since it includes a free version of the DDK. Then change to directory "commandline" and run "make" on Unix or "make -f Makefile.windows" on Windows. USING THE COMMAND LINE TOOL =========================== The device implements a data store of 128 bytes in EEPROM. You can send a block of 128 bytes to the device or read the block using the command line tool. To send a block to the device, use e.g. hidtool write 0x01,0x02,0x03,0x04,... and to receive the block, use hidtool read ---------------------------------------------------------------------------- (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH. http://www.obdev.at/

近期下载者

相关文件


收藏者