USB Receive Interrupt

29 May 2012

I would like to program my mbed as a USBHID device that responds only when a request comes in. I'm using the code found on this page:

http://mbed.org/cookbook/USBHID-bindings-

but I do not want the mbed constantly polling for traffic. Is there a way to configure the LPC to generate USB receive interrupts? Is there an example or documentation?

29 May 2012

Greg, look at the source for the USBHID and USBDevice classes.

There are various virtual methods that can be overridden - look for the ones that say "Warning - Called in ISR context". You can override these and see if they do what you want.

Remember to also call the base class implementation of the method from your override (as appropriate) or the class may stop working!