AG903ライブラリリファレンス
内容インデックスホーム
Body Source
本文ソース
1: int32_t AG903_VidMgrSetIOMode(AG903_VidMgrInputHandle *handle, uint32_t v_pol, uint32_t h_pol, uint32_t d_pol, uint32_t f_pol, uint32_t c_pol) 2: { 3: 4: if ((handle == NULL) || (handle->id != AG903_VID_MGR_INPUT_HANDLE_ID)) { 5: return -AG903_EINVAL; 6: } 7: 8: 9: switch (v_pol) { 10: case AG903_VID_MGR_IO_VSYNC_POL_MINUS: 11: case AG903_VID_MGR_IO_VSYNC_POL_PLUS: 12: break; 13: default: 14: return -AG903_EINVAL; 15: } 16: 17: switch (h_pol) { 18: case AG903_VID_MGR_IO_HSYNC_POL_MINUS: 19: case AG903_VID_MGR_IO_HSYNC_POL_PLUS: 20: break; 21: default: 22: return -AG903_EINVAL; 23: } 24: 25: switch (d_pol) { 26: case AG903_VID_MGR_IN_DE_POL_MINUS: 27: case AG903_VID_MGR_IN_DE_POL_PLUS: 28: break; 29: default: 30: return -AG903_EINVAL; 31: } 32: 33: switch (f_pol) { 34: case AG903_VID_MGR_IN_FIELD_POL_MINUS: 35: case AG903_VID_MGR_IN_FIELD_POL_PLUS: 36: break; 37: default: 38: return -AG903_EINVAL; 39: } 40: 41: switch (c_pol) { 42: case AG903_VID_MGR_IN_CLK_POL_MINUS: 43: case AG903_VID_MGR_IN_CLK_POL_PLUS: 44: break; 45: default: 46: return -AG903_EINVAL; 47: } 48: 49: 50: handle->inout_vsync_pol = v_pol; 51: handle->inout_hsync_pol = h_pol; 52: handle->in_de_pol = d_pol; 53: handle->in_field_pol = f_pol; 54: handle->in_clk_pol = c_pol; 55: handle->is_dirty = true; 56: 57: return AG903_ENONE; 58: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.