AG903ライブラリリファレンス
内容インデックスホーム
前へ上へ次へ
AG903_BMUMgrReleaseHandle 関数

BMUManagerのハンドルを解放する

Syntax
C++
int32_t AG903_BMUMgrReleaseHandle(AG903_BMUMgrHandle * handle);
引数 
説明 
AG903_BMUMgrHandle * handle 
[in] BMUManagerのハンドル 

エラーコード

返値の詳細 
説明 
正常 
-AG903_EINVAL 
無効なハンドルが渡された 
-AG903_EBUSY 
BMU有効中 

ハンドルを解放します.

1: int32_t AG903_BMUMgrReleaseHandle(AG903_BMUMgrHandle *handle) 2: { 3: uint32_t unit = (handle - handle_list); 4: 5: 6: if(unit >= AG903_BMU_UNIT_NUM || &handle_list[unit] != handle) 7: { 8: return -AG903_EINVAL; 9: } 10: 11: 12: if(handle->is_exec) 13: { 14: return -AG903_EBUSY; 15: } 16: handle_used_flag[unit] = false; 17: 18: return AG903_ENONE; 19: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.