AG903ライブラリリファレンス
内容インデックスホーム
前へ上へ次へ
AG903_TIMRMgrSetMatchValue 関数

比較値設定

Syntax
C++
int32_t AG903_TIMRMgrSetMatchValue(AG903_TIMRMgrHandle* handle, uint32_t match);
引数 
説明 
AG903_TIMRMgrHandle* handle 
[in] TIMRハンドル 
uint32_t match 
[in] 比較値 

比較値設定結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
引数異常 

比較値を設定します。

1: int32_t AG903_TIMRMgrSetMatchValue(AG903_TIMRMgrHandle* handle, uint32_t match) 2: { 3: int32_t retval = AG903_ENONE; 4: int32_t result; 5: uint8_t ch; 6: 7: result = TIMRMgr_CheckHandle(handle, &ch); 8: if(AG903_ENONE != result) { 9: return -AG903_EINVAL; 10: } 11: 12: AG903_TIMRPrmSetMatch(ch, match); 13: 14: return retval; 15: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.