AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: uhs_sbit32_t Usbh_Stor_GetLastError(void *pObj) 2: { 3: uhs_sbit32_t s32Error; 4: 5: 6: if( pStorClassDriver == NULL ) { 7: API_REPORT_SUMMARY( USBSTOR_LOG_SYS_SYSTEM_ERROR ); 8: return USBSTOR_SYS_SYSTEM_ERROR; 9: } 10: 11: 12: if( pObj == NULL ) { 13: s32Error = pStorClassDriver->s32LastError; 14: pStorClassDriver->s32LastError = USBSTOR_SUCCESS; 15: return s32Error; 16: } else { 17: uhs_ubit8_t i; 18: for( i = 0; i < (uhs_ubit8_t) numof(stDriveTable); i++ ) { 19: if( ((void*) stDriveTable[i].s32Context == pObj) || 20: ((void*) stDriveTable[i].pUserDrv == pObj) ) { 21: 22: s32Error = stDriveTable[i].pStorUnit->s32LastError; 23: stDriveTable[i].pStorUnit->s32LastError = 0; 24: return s32Error; 25: } 26: } 27: 28: API_REPORT_SUMMARY( USBSTOR_LOG_API_PARAM_ERROR ); 29: return 0; 30: } 31: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.