全てを折りたたみ
AG903ライブラリリファレンス
AG903_DMACMgrGetStatus 関数
dmacmgr.c
DMAC Manager
Body Source
DMACの状態を取得する
Syntax
C++
int32_t
AG903_DMACMgrGetStatus
(
AG903_DMACMgrHandle
*
handle
,
AG903_DMACMgrStatus
*
status
);
ファイル
dmacmgr.c
引数
引数
説明
AG903_DMACMgrHandle * handle
[in] DMACハンドル
AG903_DMACMgrStatus * status
[out] DMAC状態(true:Enable)
返値
エラーコード
返値の詳細
返値の詳細
説明
AG903_ENONE
正常終了
-AG903_EINVAL
パラメータ異常
説明
DMACの状態を取得する
本文ソース
コピコード
1: int32_t AG903_DMACMgrGetStatus(
AG903_DMACMgrHandle
*handle,
AG903_DMACMgrStatus
*status) 2: { 3: uint32_t unit = ((
AG903_DMACMgrHandleStat
*)handle - handle_list); 4: 5:
if
(unit >=
AG903_DMAC_UNIT_NUM
|| &handle_list[unit] != (
AG903_DMACMgrHandleStat
*)handle || NULL == status) 6: { 7:
return
-
AG903_EINVAL
; 8: } 9: 10: status->enable = DMACMgr_CheckEnable(unit); 11: 12:
return
AG903_ENONE
; 13: }
グループ
DMAC Manager
リンク
dmacmgr.c
,
DMAC Manager
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム