AG903ライブラリリファレンス
Body Source
AG903_VidMgrSetDetectionCycle 関数
本文ソース
コピコード
1: int32_t AG903_VidMgrSetDetectionCycle(
AG903_VidMgrOutputHandle
*handle, uint32_t v_max, uint32_t h_max) 2: { 3: 4:
if
((handle == NULL) || (handle->id !=
AG903_VID_MGR_OUTPUT_HANDLE_ID
)) { 5:
return
-
AG903_EINVAL
; 6: } 7: 8: 9:
if
(v_max == 0 || v_max >
AG903_VID_MGR_MAX_SD_VERTICAL_CYCLE
) { 10:
return
-
AG903_EINVAL
; 11: } 12: 13:
if
(h_max == 0 || h_max >
AG903_VID_MGR_MAX_SD_HORIZONTAL_CYCLE
) { 14:
return
-
AG903_EINVAL
; 15: } 16: 17: 18: handle->v_max = v_max; 19: handle->h_max = h_max; 20: handle->is_dirty =
true
; 21: 22:
return
AG903_ENONE
; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム