AG903ライブラリリファレンス
Body Source
AG903_TIMRMgrDeleteIntHandler 関数
本文ソース
コピコード
1: int32_t AG903_TIMRMgrDeleteIntHandler(
AG903_TIMRMgrHandle
* handle,
void
* func) 2: { 3: int32_t retval =
AG903_ENONE
; 4: int32_t result; 5: uint32_t loop; 6: uint8_t ch; 7: 8: result = TIMRMgr_CheckHandle(handle, &ch); 9:
if
(
AG903_ENONE
!= result) { 10:
return
-
AG903_EINVAL
; 11: } 12:
if
(NULL == func) { 13:
return
-
AG903_EINVAL
; 14: } 15:
for
(loop=0; loop<
AG903_TIMR_INTHDR_NUM
; loop++) { 16:
if
(func == TimrChStat[ch].inthdr[loop].func) { 17:
break
; 18: } 19: } 20:
if
(
AG903_TIMR_INTHDR_NUM
<= loop) { 21:
return
-
AG903_EINVAL
; 22: } 23: 24: retval =
AG903_INTMgrDeleteHandler
(TimrChStat[ch].inthdr[loop].hdrid); 25:
if
(
AG903_ENONE
== retval) { 26: TimrChStat[ch].inthdr[loop].hdrid = 0; 27: TimrChStat[ch].inthdr[loop].func = NULL; 28: } 29: 30:
return
retval; 31: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム