AG903ライブラリリファレンス
Body Source
AG903_PgpMgrExecVRAMInput 関数
本文ソース
コピコード
1: int32_t AG903_PgpMgrExecVRAMInput(
AG903_PgpMgrVRAMInputHandle
*handle, uint32_t cmd) 2: { 3: uint32_t dummy, queue, st; 4: 5: 6:
if
((handle == NULL) || (handle->id !=
AG903_PGP_MGR_VRAM_INPUT_HANDLE_ID
)) { 7:
return
-
AG903_EINVAL
; 8: } 9: 10: 11:
if
(handle->port_no == -1) { 12:
return
-
AG903_EINVAL
; 13: } 14: 15:
AG903_PgpPrmGetPGPVInSTATE
(handle->port_no, &dummy, &queue, &st); 16: 17:
if
((PgpContext.exec_vram[handle->port_no] != handle ) && (st !=
AG903_PGP_MGR_VI_CMD_NONE
)) { 18:
return
-
AG903_EBUSY
; 19: } 20: 21:
switch
(cmd) { 22:
case
AG903_PGP_MGR_VI_CMD_EXEC
: 23: 24:
if
((queue == (
AG903_PGP_MGR_VI_CMD_MAX_QUEUE
- 1)) || ((st != 0) && (cmd != st))) { 25:
return
-
AG903_EBUSY
; 26: } 27:
break
; 28:
case
AG903_PGP_MGR_VI_CMD_EXEC_CONTINUE
: 29: 30:
if
(st != 0) { 31:
return
-
AG903_EBUSY
; 32: } 33:
break
; 34:
case
AG903_PGP_MGR_VI_CMD_NONE
: 35:
case
AG903_PGP_MGR_VI_CMD_IDLE
: 36:
case
AG903_PGP_MGR_VI_CMD_RESET
: 37:
break
; 38:
default
: 39:
return
-
AG903_EINVAL
; 40: } 41: 42: PgpMgrExecVRAMInputHandle(handle, cmd); 43:
return
AG903_ENONE
; 44: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム