AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: PSTOR_UNIT Usbh_Stor_GetUnmountUnit(void) 2: { 3: uhs_ubit8_t i; 4: 5: API_REPORT_MILESTONE( USBSTOR_CHKPOINTS_API_GETUNMOUNTUNIT ); 6: 7: 8: if( pStorClassDriver == NULL ) { 9: API_REPORT_SUMMARY( USBSTOR_LOG_SYS_SYSTEM_ERROR ); 10: return NULL; 11: } 12: 13: u8MntTblPointer = 0; 14: 15: 16: while( u8MntTblPointer < (uhs_ubit8_t) numof(stDriveTable) ) { 17: i = u8MntTblPointer; 18: u8MntTblPointer++; 19: if( (stDriveTable[i].pStorUnit != NULL) && 20: (stDriveTable[i].pUserDrv == NULL) ) { 21: 22: return (PSTOR_UNIT)stDriveTable[i].s32Context; 23: } 24: } 25: 26: Usbh_Stor_SetLastError( NULL, USBSTOR_API_NOT_FOUND_UNIT ); 27: return NULL; 28: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.