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

チャネル番号取得

Syntax
C++
int32_t AG903_TIMRMgrGetChannel(AG903_TIMRMgrHandle* handle, uint8_t* ch);
引数 
説明 
AG903_TIMRMgrHandle* handle 
[in] TIMRハンドル 
uint8_t* ch 
[out] チャネル番号 

チャネル番号取得結果

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

チャネル番号を取得します。

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