AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_PgpMgrSetConfigLabelingParameter(AG903_PgpMgrPipelineHandle *handle, uint32_t connect, uint32_t flush_thr, uint32_t max_id) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_PIPELINE_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (connect) { 10: case AG903_PGP_MGR_LBL_CNCT_8: 11: case AG903_PGP_MGR_LBL_CNCT_4: 12: break; 13: default: 14: return -AG903_EINVAL; 15: } 16: if (flush_thr > AG903_PGP_MGR_MAX_LBL_FLUSH_THR) { 17: return -AG903_EINVAL; 18: } 19: if (max_id > AG903_PGP_MGR_MAX_LBL_ID) { 20: return -AG903_EINVAL; 21: } 22: 23: 24: handle->lbl_connect = connect; 25: handle->lbl_flush_thr = flush_thr; 26: handle->lbl_maxid = max_id; 27: handle->is_config_dirty[AG903_PGP_MGR_CONFIG_LBL_PARAM] = true; 28: handle->is_dirty = true; 29: return AG903_ENONE; 30: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.