/* USB Device HID Get Report Request Callback Called automatically on USB Device HID Get Report Request Parameters: None Return Value: TRUE - Success, FALSE - Error  */
BOOL USBD_HID_GetReport(void)
/* USB Device HID Get Report Request Callback Called automatically on USB Device HID Get Report Request Parameters: None Return Value: TRUE - Success, FALSE - Error  */
BOOL USBD_HID_GetReport(void)
{
    U8 *ptr_buf = 0;
    switch (USBD_SetupPacket.wValueH) {
        case HID_REPORT_INPUT:
            ptr_buf  = &USBD_HID_InReport[1];
            break;
        case HID_REPORT_OUTPUT:
            return (__FALSE);
        case HID_REPORT_FEATURE:
            ptr_buf  = &USBD_HID_FeatReport[1];
            break;
    }
    usbd_hid_get_report(USBD_SetupPacket.wValueH, USBD_SetupPacket.wValueL, ptr_buf, USBD_HID_REQ_EP_CTRL);
    return (__TRUE);
}