ARM Technical Support Knowledge Articles

CHANGE MESSAGE SIZE OF USBHID EXAMPLE

Applies to: MCB2140 Evaluation Board

Answer


Information in this article applies to:


QUESTION

I need help with the USBHID example which is part of the the Keil MCB2140 Evaluation Board (using the Philips LPC2148 ARM processor).

We want to re-use this source code in our project, but this example sends only one byte at a time. We need to send a packet of 16 bytes. It looks like the source code is prepared to handle more than one byte, however during the identification of the USB to the host computer, the length is fixed to one byte.  How do I change the packet length for this example?

ANSWER

The HID project can be easily adapted to support reports with sizes up to 64 bytes. The necessary changes are:

MORE INFORMATION

Article last edited on: 2005-09-21 11:41:09

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential