/* USB Device Bulk Out Endpoint Event Callback Parameters: event: not used (just for compatibility) Return Value: None  */
void USBD_BULK_EP_BULKOUT_Event(U32 event)
/* USB Device Bulk Out Endpoint Event Callback Parameters: event: not used (just for compatibility) Return Value: None  */
void USBD_BULK_EP_BULKOUT_Event(U32 event)
{
    U16 bytes_rece;
    uint8_t * rbuf;
    bytes_rece      = USBD_ReadEP(usbd_bulk_ep_bulkout, ptrDataIn, USBD_Bulk_BulkBufSize - DataInReceLen);
    ptrDataIn      += bytes_rece;
    DataInReceLen  += bytes_rece;
    if ((DataInReceLen >= USBD_Bulk_BulkBufSize) ||
            (bytes_rece    <  usbd_bulk_maxpacketsize[USBD_HighSpeed])) {
        if (DAP_queue_execute_buf(&DAP_Cmd_queue, USBD_Bulk_BulkOutBuf, DataInReceLen, &rbuf)) {
            if (USB_ResponseIdle) {
                USBD_BULK_EP_BULKIN_Event(0);
                USB_ResponseIdle = 0;
            }
        }
        DataInReceLen = 0;
        ptrDataIn     = USBD_Bulk_BulkOutBuf;
    }
}