/* Write a buffer of data to a selected endpoint.  */
uint32_t USB_SilWrite(uint8_t bEpAddr, uint8_t *pBufferPointer, uint32_t wBufferSize)
/* Write a buffer of data to a selected endpoint.  */
uint32_t USB_SilWrite(uint8_t bEpAddr, uint8_t *pBufferPointer, uint32_t wBufferSize)
{
    USB_CopyUserToPMABuf(pBufferPointer, USB_GetEpTxAddr(bEpAddr & 0x7F), wBufferSize);
    USB_SetEpTxCnt((bEpAddr & 0x7F), wBufferSize);
    return 0;
}