/* USBD_HID_SendReport Send HID Report if TX buffer is free and USB device is configured.  */
uint8_t USBD_HID_SendReport(USB_OTG_CORE_HANDLE *pdev, uint8_t *report, uint16_t len)
/* USBD_HID_SendReport Send HID Report if TX buffer is free and USB device is configured.  */
uint8_t USBD_HID_SendReport(USB_OTG_CORE_HANDLE *pdev, uint8_t *report, uint16_t len)
{
  if (pdev->dev.device_status == USB_OTG_CONFIGURED) {
    if (ReportSent) {
      if (report) {
        ReportSent = 0;
        DCD_EP_Tx (pdev, HID_IN_EP, report, len);
      }
      return USBD_OK;
    }
  }
  return USBD_FAIL;
}