Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Sending reports for HID+HID USB

$
0
0

How do you send reports to the computer when using composite HID+HID? In the Descriptor Tool, I have the mouse as interface 0 and keyboard as interface 1. When enumerated, the device polls for mouse movements and scan the keys, then send the reports to the computer.

case ST_ENUM_ACTIVE:
while(1) {
	pollMouse(); //polls for mouse movement
        pollKeyboard(); //scan keyboard matrix
        sendKeyboardReport();
}
void pollMouse(void) {
    //... prepare mouse report

    USBHID_sendReport((void *)&mouseReport, HID0_INTFNUM);
}

It doesn't work however. Even though there is mouse movement (information displayed via UART), the mouse on screen will not move. Also, I'm using API v4.0 if that matters.


Viewing all articles
Browse latest Browse all 2077

Trending Articles