The HID_SetReport function obtains report data from the host by copying them from the endpoint 0 buffer (EP0Buf). The function calls SetOutReport to update other application variables. Modify the HID_SetReport function to obtain as many bytes as your application needs from the host. The HID_SetReport function supports the request HID_REPORT_OUTPUT only. The HID_SetReport function is part of the USB Function Driver layer of the RL-USB Software Stack. Note - You must copy all your report data from the endpoint buffer, otherwise the report data might be lost.
|