Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 5 months ago.
Current draw handshake?
Hey guys, I'm working on a battery-powered project that includes a USB-friendly battery charger, and I need a way to figure out whether or not the host has approved the maximum current draw I've specified in the descriptor. Trouble is, I don't see a way to do that in the USBDevice API. configured() seems about the closest, but doesn't handle disconnection/reconnection at the moment...