全てを折りたたみ
AG903ライブラリリファレンス
AG903_DSPPrmGetLUTG 関数
dspprm.c
DSP Primitive
Body Source
See Also
LUTGレジスタからの読み込み.
Syntax
C++
void
AG903_DSPPrmGetLUTG
(uint8_t
ch
, uint8_t
table_no
,
DSPPrmParamLUTG
*
lutg
);
ファイル
dspprm.c
引数
引数
説明
uint8_t ch
[in] DSPチャンネル (0-1)
uint8_t table_no
[in] テーブル番号 (0-63)
返値
void
説明
AG903_DSP->LUTG からリードします.
関連リンク
設定値については
DSPPrmParamLUTG
を参照.
本文ソース
コピコード
1:
void
AG903_DSPPrmGetLUTG(uint8_t ch, uint8_t table_no,
DSPPrmParamLUTG
*lutg) 2: { 3:
ASSERT
(ch <
AG903_DSP_CH_NUM
); 4:
ASSERT
(lutg != NULL); 5: 6: uint32_t reg =
AG903_DSPn
(ch)->LUTG[table_no]; 7: lutg->g0 = (reg &
AG903_DSPn_LUTG_G0_MSK
) >>
AG903_DSPn_LUTG_G0_POS
; 8: lutg->g1 = (reg &
AG903_DSPn_LUTG_G1_MSK
) >>
AG903_DSPn_LUTG_G1_POS
; 9: lutg->g2 = (reg &
AG903_DSPn_LUTG_G2_MSK
) >>
AG903_DSPn_LUTG_G2_POS
; 10: lutg->g3 = (reg &
AG903_DSPn_LUTG_G3_MSK
) >>
AG903_DSPn_LUTG_G3_POS
; 11: }
グループ
DSP Primitive
リンク
dspprm.c
,
DSP Primitive
,
Body Source
,
See Also
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム