AG903ライブラリリファレンス
Body Source
AG903_TIMRMgrDisableIntMask 関数
本文ソース
コピコード
1: int32_t AG903_TIMRMgrDisableIntMask(
AG903_TIMRMgrHandle
* handle, uint8_t target) 2: { 3: int32_t retval =
AG903_ENONE
; 4: int32_t result; 5: uint8_t clrbit = 0; 6: uint8_t ch; 7: 8: result = TIMRMgr_CheckHandle(handle, &ch); 9:
if
(
AG903_ENONE
!= result) { 10:
return
-
AG903_EINVAL
; 11: } 12: 13:
if
(
AG903_TIMR_COMPARE_BIT
& target) { 14: clrbit |=
AG903_TIMR_INTMSK_CM_BIT
; 15: } 16:
if
(
AG903_TIMR_OVERFLOW_BIT
& target) { 17: clrbit |=
AG903_TIMR_INTMSK_OVF_BIT
; 18: } 19: 20:
if
(0 != clrbit) { 21:
AG903_TIMRPrmDisableMask
(ch, clrbit); 22: } 23: 24:
return
retval; 25: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム