AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: uhs_status_t Usbh_Api_GetVersion(uhs_ubit8_t* pu8MajorVersion, 2: uhs_ubit8_t* pu8MinorVersion) 3: { 4: 5: 6: 7: if( (pu8MajorVersion == NULL) || 8: (pu8MinorVersion == NULL) ) { 9: CORE_REPORT_ERROR( USBC_INVALID_PARAMETER ); 10: return( UDI_STAT_DATA_ERROR ); 11: } 12: 13: 14: 15: 16: if(g_apiwrap_info.apiwrap_stat != USBWRAP_STAT_USBD_INITCOMP){ 17: 18: return( UDI_STAT_INVALID_STATE ); 19: } 20: 21: 22: *pu8MajorVersion = USBWRAP_MAJOR_VERSION; 23: 24: *pu8MinorVersion = USBWRAP_MINOR_VERSION; 25: 26: return( UDI_OK ); 27: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.