全てを折りたたみ
AG903ライブラリリファレンス
AG903_BSCPrmSetDmaPol 関数
bscprm.c
BSC Primitive
Body Source
BSCPBDMAPOLのレジスタWrite
Syntax
C++
void
AG903_BSCPrmSetDmaPol
(uint8_t
req
, uint8_t
ack
);
ファイル
bscprm.c
引数
引数
説明
uint8_t req
[in] nHDMAREQの極性
uint8_t ack
[in] nHDMAACKの極性
返値
none
説明
BSCPBDMAPOLのレジスタWrite
注意
none
本文ソース
コピコード
1:
void
AG903_BSCPrmSetDmaPol(uint8_t req, uint8_t ack) 2: { 3: uint32_t val = 0; 4: 5:
if
(
AG903_BSC_POL_POSITIVE
== req) { 6: val |= (req <<
AG903_BSC_PBDMAPOL_DRQ_POS
); 7: } 8:
if
(
AG903_BSC_POL_POSITIVE
== ack) { 9: val |= (ack <<
AG903_BSC_PBDMAPOL_DCK_POS
); 10: } 11:
AG903_BSC
->PBDMAPOL = val; 12: 13:
return
; 14: }
グループ
BSC Primitive
リンク
bscprm.c
,
BSC Primitive
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム