
HIDmaker Software Framework
Extending the programs that HIDmaker generates is easy with the HIDmaker Software Framework.
In the peripheral side programs, HIDmaker creates a conveniently sized variable for each data item you define. For example, suppose you specified a data item named MyVar whose size is 5 bits. This 5 bit size is the number of bits that are transferred to or from the PC over the USB cable. To make your programming easier, the peripheral side program generated by HIDmaker will provide you with an 8-bit variable named MyVar.
When you are ready to send this item from the peripheral to the PC, call the PackData( ) routine to automatically extract the least significant 5 bits of MyVar and place these bits in the correct part of the correct packet of the USB HID report. An UnpackData( ) routine is also available for unpacking data that comes from the PC to the peripheral.
The HIDmaker Software Framework includes a group of software objects that work together in your PC program to provide a natural, easy to use, yet powerful way to access data in your USB HID peripheral device. This software framework is designed to work with any modern object-oriented language compiler on the PC. Currently, HIDmaker generates programs that use the HIDmaker Software Framework in Visual Basic 6, Delphi 5-7, and C++ Builder 5-6.
In addition to the object class that represents the main window or "form" of your PC program (which is custom generated for each new project), the HIDmaker Software Framework provides the following classes:
The true power of the HIDmaker Software Framework can be seen by how easy and natural it makes the tasks you need to do (Visual Basic syntax shown):
Set the value of a HID variable:
MyDevice.AVariable.UnscaledValue = 5
Pack this variable into its Report and send it to the device:
Call SendOutputReportA()
Home
| About
Us | Contact
Us
USB
Tools | Consulting
