USB HID Library Details
Permits to read data from and write data to USB devices using the "HID" protocol (no driver at PC side required).
Intended for the PIC18F2455/2550/4455 and 4550 PIC's or PICs with the same USB SIE.
See the section "Interface" in file "USB_HID_Library.mpas" and the demo project (see below) for the operation details.
Example project:
PRO mP: the example project files.
Important: For each project using the USB HID library, a separate version of "USB_HID_ProjectItems.mpas" should be available (it is "used" by the USB HID library),
residing the the project's directory itself. The libary itself ("USB_HID_Library.mpas") can of course reside in a directory common for all projects.
No knowledge of USB "descriptors" required, the "Descriptor" part of mE's "HID Terminal" tool is not used for this library.
In stead the "descriptors" are embedded in the library and adapted according the product dependant defined by the user (in the file "USB_HID_ProjectItems.mpas").
Based on the "TB054" publication of Microchip.
Important: In all USB documentation the words "IN" and "OUT" are frequently used to indicate the direction of data transfer. Those directions are always "USB host" (e.g. PC) related.
So, "IN" means data from the PIC to the host (data OUT from PIC point of view), "OUT" means data from the host to the PIC (data IN from PIC point of view).
-------------------------------------------