AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_PgpMgrSetParamVRAMSyncSignal(AG903_PgpMgrVRAMInputHandle *handle, uint32_t h_pw, uint32_t h_fp, uint32_t h_bp, uint32_t v_pw, uint32_t v_fp, uint32_t v_bp) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_PGP_MGR_VRAM_INPUT_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: if ((h_pw == 0) || (h_pw > AG903_PGP_MGR_MAX_VI_H_PULES_WIDTH)) { 10: return -AG903_EINVAL; 11: } 12: if ((h_fp == 0) || (h_fp > AG903_PGP_MGR_MAX_VI_H_FRONT_PORCH)) { 13: return -AG903_EINVAL; 14: } 15: if ((h_bp == 0) || (h_bp > AG903_PGP_MGR_MAX_VI_H_BACK_PORCH)) { 16: return -AG903_EINVAL; 17: } 18: if ((v_pw == 0) || (v_pw > AG903_PGP_MGR_MAX_VI_V_PULES_WIDTH)) { 19: return -AG903_EINVAL; 20: } 21: if ((v_fp == 0) || (v_fp > AG903_PGP_MGR_MAX_VI_V_FRONT_PORCH)) { 22: return -AG903_EINVAL; 23: } 24: if ((v_bp == 0) || (v_bp > AG903_PGP_MGR_MAX_VI_V_BACK_PORCH)) { 25: return -AG903_EINVAL; 26: } 27: 28: 29: if (handle->port_no != -1) { 30: return -AG903_EBUSY; 31: } 32: 33: 34: handle->h_pulse_width = h_pw; 35: handle->h_front_porch = h_fp; 36: handle->h_back_porch = h_bp; 37: handle->v_pulse_width = v_pw; 38: handle->v_front_porch = v_fp; 39: handle->v_back_porch = v_bp; 40: handle->is_dirty = true; 41: return AG903_ENONE; 42: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.