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

パイプライン出力時のデータスワップ設定

Syntax
C++
int32_t AG903_PgpMgrSetConfigOutputDataSwap(AG903_PgpMgrPipelineHandle * handle, _Bool word, _Bool hword, _Bool four_bit, _Bool one_bit);
引数 
説明 
AG903_PgpMgrPipelineHandle * handle 
[in] パイプラインハンドルを指定します。 
_Bool word 
[in] ワードデータのスワップの有効/無効フラグを指定します。 
_Bool hword 
[in] ハーフワードデータのスワップの有効/無効フラグを指定します。 
_Bool four_bit 
[in] 4bitデータのスワップの有効/無効フラグを指定します。 
ont_bit 
[in] 1bitデータのスワップの有効/無効フラグを指定します。 

設定結果

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

パイプライン出力時のデータスワップを設定します。

1: int32_t AG903_PgpMgrSetConfigOutputDataSwap(AG903_PgpMgrPipelineHandle *handle, _Bool word, _Bool hword, _Bool four_bit, _Bool one_bit) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: handle->output_word_swap_enable = word; 10: handle->output_hword_swap_enable = hword; 11: handle->output_4bit_swap_enable = four_bit; 12: handle->output_1bit_swap_enable = one_bit; 13: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_OUTPUT_CTRL] = true; 14: handle->is_dirty = true; 15: return AG903_ENONE; 16: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.