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: }