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

トリガ起動のタイマモジュールのチャンネル番号設定

Syntax
C++
int32_t AG903_PgpMgrSetConfigInputTrigChannel(AG903_PgpMgrPipelineHandle * handle, uint32_t timer_ch);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
uint32_t timer_ch 
[in] タイマモジュールのチャンネル番号を指定します。 

設定結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
handleに不正な値が指定された場合
timer_chに不正な値が指定された場合 

トリガ起動のタイマモジュールのチャンネル番号を設定します。 

引数に指定可能な範囲は以下の通りです。

引数 
指定可能範囲 
timer_ch 
1: int32_t AG903_PgpMgrSetConfigInputTrigChannel(AG903_PgpMgrPipelineHandle *handle, uint32_t timer_ch) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: if (timer_ch > AG903_PGP_MGR_MAX_TRIG_TIMER_CHANNEL) { 10: return -AG903_EINVAL; 11: } 12: 13: 14: handle->input_trig_timer_ch = timer_ch; 15: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_INPUT_TRIG_CH] = true; 16: handle->is_dirty = true; 17: return AG903_ENONE; 18: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.