全てを折りたたみ
AG903ライブラリリファレンス
AG903_DSPPrmGetLSTCTRL 関数
dspprm.c
DSP Primitive
Body Source
LSTCTRLレジスタからの読み込み.
Syntax
C++
void
AG903_DSPPrmGetLSTCTRL
(uint8_t
ch
, uint32_t *
pal
, uint32_t *
wat
);
ファイル
dspprm.c
引数
引数
説明
uint8_t ch
[in] DSPチャンネル (0-1)
返値
void
説明
AG903_DSP->LSTCTRL からリードします.
本文ソース
コピコード
1:
void
AG903_DSPPrmGetLSTCTRL(uint8_t ch, uint32_t *pal, uint32_t *wat) 2: { 3:
ASSERT
(ch <
AG903_DSP_CH_NUM
); 4:
ASSERT
(pal != NULL); 5:
ASSERT
(wat != NULL); 6: 7: uint32_t reg =
AG903_DSPn
(ch)->LSTCTRL; 8: *pal = (reg &
AG903_DSPn_LSTCTRL_PAL_MSK
) >>
AG903_DSPn_LSTCTRL_PAL_POS
; 9: *wat = (reg &
AG903_DSPn_LSTCTRL_WAT_MSK
) >>
AG903_DSPn_LSTCTRL_WAT_POS
; 10: }
グループ
DSP Primitive
リンク
dspprm.c
,
DSP Primitive
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム