全てを折りたたみ
AG903ライブラリリファレンス
AG903_DMACPrmGetTRNS_SIZE_2D 関数
dmacprm.c
DMAC Primitive
Body Source
TRNS_SIZE_2Dレジスタからの読み込み.
Syntax
C++
void
AG903_DMACPrmGetTRNS_SIZE_2D
(uint8_t
unit
, uint32_t *
x_cnt
, uint32_t *
y_cnt
);
ファイル
dmacprm.c
引数
引数
説明
uint8_t unit
[in] チャンネル
返値
none
説明
AG903_DMAC
->TRNS_SIZE_2D からリードします.
注意
none
本文ソース
コピコード
1:
void
AG903_DMACPrmGetTRNS_SIZE_2D(uint8_t unit, uint32_t *x_cnt, uint32_t *y_cnt) 2: { 3:
ASSERT
(x_cnt != NULL); 4:
ASSERT
(y_cnt != NULL); 5:
ASSERT
(unit < DMAC_UNIT_MAX); 6: 7: uint32_t reg =
AG903_DMACn
(unit)->TRNS_SIZE_2D; 8: *x_cnt = (reg &
AG903_DMACn_TRNS_SIZE_2D_XTCnt_MSK
) >>
AG903_DMACn_TRNS_SIZE_2D_XTCnt_POS
; 9: *y_cnt = (reg &
AG903_DMACn_TRNS_SIZE_2D_YTCnt_MSK
) >>
AG903_DMACn_TRNS_SIZE_2D_YTCnt_POS
; 10: }
グループ
DMAC Primitive
リンク
dmacprm.c
,
DMAC Primitive
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム