AG903ライブラリリファレンス
内容インデックスホーム
前へ上へ次へ
AG903_DSPPrmSetDITHAREA1B 関数

DITHAREA1Bレジスタへの書き込み.

Syntax
C++
void AG903_DSPPrmSetDITHAREA1B(uint8_t ch, uint32_t x1, uint32_t y1);
引数 
説明 
uint8_t ch 
[in] DSPチャンネル (0-1) 
uint32_t x1 
[in] 右下X座標 
uint32_t y1 
[in] 右下Y座標 

void

AG903_DSP->DITHAREA1B にライトします.

1: void AG903_DSPPrmSetDITHAREA1B(uint8_t ch, uint32_t x1, uint32_t y1) 2: { 3: ASSERT(ch < AG903_DSP_CH_NUM); 4: 5: uint32_t reg = 0; 6: reg |= (x1 << AG903_DSPn_DITHAREA1B_X1_POS) & AG903_DSPn_DITHAREA1B_X1_MSK; 7: reg |= (y1 << AG903_DSPn_DITHAREA1B_Y1_POS) & AG903_DSPn_DITHAREA1B_Y1_MSK; 8: AG903_DSPn(ch)->DITHAREA1B = reg; 9: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.