AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_BMUMgrGetBMUId(AG903_BMUMgrHandle *handle, uint8_t *id) 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: (*id) = unit; 12: 13: return AG903_ENONE; 14: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.