AG903ライブラリリファレンス
Body Source
AG903_OSPMgrSetEventCntEnable 関数
本文ソース
コピコード
1: int32_t AG903_OSPMgrSetEventCntEnable(uint32_t evt, uint8_t enable, uint8_t cnt) 2: { 3: int32_t rc =
AG903_ENONE
; 4: 5:
if
(evt >=
AG903_OSP_EVENT_NUM
) { 6: 7: rc = -
AG903_EINVAL
; 8: } 9: 10:
if
(rc ==
AG903_ENONE
) { 11:
if
((enable & ~0x01) 12: || (cnt & ~0x0F)) { 13: 14: rc = -
AG903_EINVAL
; 15: } 16: } 17: 18:
if
(rc ==
AG903_ENONE
) { 19:
AG903_OSPPrmEnableEvent
(evt, enable, cnt); 20: } 21: 22:
return
rc; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム