philippe320
Joined: 30 Dec 2005 Posts: 11
|
How to send more than 6 bytes with HID ? |
Posted: Tue May 19, 2009 11:00 am |
|
|
Hello,
I'm using that descriptors in my 18F2550
Code: |
const char USB_CLASS_SPECIFIC_DESC[] = {
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, [color=red]6[/color], // Report count = 16 bits (2 bytes)
0x81, 2, // Input (Data, Var, Abs)
0x19, 1, // Usage minimum
0x29, 8, // Usage maximum
0x75, 8, // Report size = 8 (bits)
0x95, [color=red]2[/color], // Report count = 16 bits (2 bytes)
0x91, 2, // Output (Data, Var, Abs)
0xc0 // End Collection
};
|
I'd like to send more than 6 bytes, but when changing the first red data to 16 for example, the transmission fails
I tested that USB_USE_FULL_SPEED is TRUE
and USB_MAX_EP0_PACKET_LENGTH is 64
and USB_EP1_TX_SIZE is 64
So, I should transmit up to 64 bytes at a time ...
Why not
Thanks in advance
Regards
Philippe
++++++++++++++++++++++++++
Most of usb_desc_hid.c deleted.
Reason: Forum rule #10
10. Don't post the CCS example code or drivers.
-- Forum moderator
++++++++++++++++++++++++++ |
|