AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: uhs_status_t Usbh_Api_ClosePipe(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: if ( ucb == NULL ) { 13: CORE_REPORT_ERROR( USBC_INVALID_PARAMETER ); 14: return UDI_STAT_DATA_ERROR; 15: } 16: 17: retval = Usbc_Api_ClosePipe( ucb ); 18: if ( retval != UDI_OK ) { 19: CORE_REPORT_ERROR(USBC_ILLEGAL_ERROR); 20: } 21: 22: return retval; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.