1: uhs_status_t Usbh_Api_SyncBulkMsg(
struct usb_control_block* ucb )
2: {
3: uhs_status_t retval =
UDI_OK;
4:
5:
6:
if( Usbh_susres_get_state() != USBH_SUSRES_STS_IDLE ){
7: uhs_debug_print (DBG_ERR, ("ERROR : Don't Call Current State!!"));
8: CORE_REPORT_ERROR(
USBC_ILLEGAL_ERROR );
9:
return UDI_STAT_INVALID_STATE;
10: }
11:
12: 13: retval = Usbh_ProcSyncRequest( ucb, USBWRAP_SUBMSG_BLKREQ );
14:
if( retval !=
UDI_OK) {
15: CORE_REPORT_WARNING(
USBC_ILLEGAL_ERROR);
16: }
17:
18:
return retval;
19: }