dukelc4 Guest
|
16C745 and USB HID Report |
Posted: Thu Oct 26, 2006 8:23 am |
|
|
Hello,
i use the PIC 16C745 to communicate with a PC
over USB. It works fine.
In the moment i use the USB Hid Files from CCS.
In the HID Report of these source is described that
the pic should recieve and send 2 bytes from 0 to 0xff.
But i don`t need to send bytes to the pc,
i only want to recieve bytes.
Does anyone know what i have to change in the HID Report?
Code: |
BYTE CONST USB_HID_DESC[] = { //len=28
6, 0, 255, // Usage Page = Vendor Defined
9, 1, // Usage = IO device
0xa1, 1, // Collection = Application
0x19, 1, // Usage minimum
0x29, 8, // Usage maximum
0x15, 0x80, // Logical minimum (-128)
0x25, 0x7F, // Logical maximum (127)
0x75, 8, // Report size = 8 (bits)
0x95, 2, // Report count = 16 bits (2 bytes)
0x81, 2, // Input (Data, Var, Abs)
0x19, 1, // Usage minimum
0x29, 8, // Usage maximum
0x91, 2, // Output (Data, Var, Abs)
0xc0 // End Collection
};
|
[/code] |
|