全てを折りたたみ
AG903ライブラリリファレンス
AG903_DSPPrmSetLUTB 関数
dspprm.c
DSP Primitive
Body Source
See Also
LUTBレジスタへの書き込み.
Syntax
C++
void
AG903_DSPPrmSetLUTB
(uint8_t
ch
, uint8_t
table_no
,
DSPPrmParamLUTB
*
lutb
);
ファイル
dspprm.c
引数
引数
説明
uint8_t ch
[in] DSPチャンネル (0-1)
uint8_t table_no
[in] テーブル番号 (0-63)
返値
void
説明
AG903_DSP->LUTB にライトします.
関連リンク
設定値については
DSPPrmParamLUTB
を参照.
本文ソース
コピコード
1:
void
AG903_DSPPrmSetLUTB(uint8_t ch, uint8_t table_no,
DSPPrmParamLUTB
*lutb) 2: { 3:
ASSERT
(ch <
AG903_DSP_CH_NUM
); 4:
ASSERT
(lutb != NULL); 5: 6: uint32_t reg = 0; 7: reg |= (lutb->b0 <<
AG903_DSPn_LUTB_B0_POS
) &
AG903_DSPn_LUTB_B0_MSK
; 8: reg |= (lutb->b1 <<
AG903_DSPn_LUTB_B1_POS
) &
AG903_DSPn_LUTB_B1_MSK
; 9: reg |= (lutb->b2 <<
AG903_DSPn_LUTB_B2_POS
) &
AG903_DSPn_LUTB_B2_MSK
; 10: reg |= (lutb->b3 <<
AG903_DSPn_LUTB_B3_POS
) &
AG903_DSPn_LUTB_B3_MSK
; 11:
AG903_DSPn
(ch)->LUTB[table_no] = reg; 12: }
グループ
DSP Primitive
リンク
dspprm.c
,
DSP Primitive
,
Body Source
,
See Also
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム