/* USBH_BulkSendData Sends the Bulk Packet to the device.  */
USBH_Status USBH_BulkSendData(USB_OTG_CORE_HANDLE *pdev, uint8_t *buff, uint16_t length, uint8_t hc_num)
/* USBH_BulkSendData Sends the Bulk Packet to the device.  */
USBH_Status USBH_BulkSendData(USB_OTG_CORE_HANDLE *pdev, uint8_t *buff, uint16_t length, uint8_t hc_num)
{ 
  pdev->host.hc[hc_num].ep_is_in = 0;
  pdev->host.hc[hc_num].xfer_buff = buff;
  pdev->host.hc[hc_num].xfer_len = length;
  if ( pdev->host.hc[hc_num].toggle_out == 0)
  {
      pdev->host.hc[hc_num].data_pid = HC_PID_DATA0;    
  }
 else
 {
      pdev->host.hc[hc_num].data_pid = HC_PID_DATA1 ;
 }
  HCD_SubmitRequest (pdev , hc_num);   
  return USBH_OK;
}