AG903ライブラリリファレンス
Body Source
AG903_OSPMgrSetPriority 関数
本文ソース
コピコード
1: int32_t AG903_OSPMgrSetPriority(
AG903_OSPMgrHandle
*handle, uint8_t priority) 2: { 3: int32_t rc =
AG903_ENONE
; 4: uint8_t ch; 5: 6:
if
(NULL == handle) { 7: rc = -
AG903_EINVAL
; 8: } 9: 10: rc = OSPMgrCheckHandle(handle, &ch); 11: 12:
if
(rc ==
AG903_ENONE
) { 13:
if
(priority >= AG903_OSP_PRI_NUM) { 14: 15: rc = -
AG903_EINVAL
; 16: } 17: } 18: 19:
if
(rc ==
AG903_ENONE
) { 20:
AG903_OSPPrmPRIOR
(ch, priority); 21: } 22: 23:
return
rc; 24: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム