AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_DSPMgrSetAttribute(AG903_DSPMgrHandle *handle, uint8_t listno) 2: { 3: int32_t rc = AG903_ENONE; 4: uint8_t ch; 5: uint32_t watnum; 6: 7: if (handle == NULL) 8: return -AG903_EINVAL; 9: 10: rc = DSPMgrCheckHandle(handle, &ch); 11: 12: if (rc == AG903_ENONE) { 13: AG903_DSPPrmGetWATNUM(ch, &watnum); 14: 15: if ((listno >= watnum) 16: || (gDSP.ch[ch].lock[listno] == NULL)) { 17: rc = -AG903_EINVAL; 18: } 19: } 20: 21: if (rc == AG903_ENONE) { 22: gDSP.ch[ch].lock[listno] = NULL; 23: } 24: 25: return rc; 26: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.