全てを折りたたみ
AG903ライブラリリファレンス
AG903_ViaPrmSetVIACHDSETUP3 関数
viaprm.c
VIA Primitive
Body Source
VIA.CHD_SETUP3 レジスタ設定
Syntax
C++
void
AG903_ViaPrmSetVIACHDSETUP3
(uint32_t
id
,
VIAPrmParamVIACHDSETUP3
*
setup
);
ファイル
viaprm.c
引数
引数
説明
uint32_t id
[in] チャンネル番号
VIAPrmParamVIACHDSETUP3 * setup
[in] VIA.CHD_SETUP3設定値格納先
返値
void
説明
VIA.CHD_SETUP3 を設定します。
本文ソース
コピコード
1:
void
AG903_ViaPrmSetVIACHDSETUP3(uint32_t id,
VIAPrmParamVIACHDSETUP3
*setup) 2: { 3: uint16_t val; 4: 5:
ASSERT
(id <
AG903_VIA_PRM_MAX_PORTS
); 6:
ASSERT
(setup != NULL); 7:
ASSERT
(!(setup->agcen & ~(0x1))); 8:
ASSERT
(!(setup->accov & ~(0x3F))); 9:
ASSERT
(!(setup->acctc & ~(0x3))); 10:
ASSERT
(!(setup->accmark & ~(0x3F))); 11: 12: val = (setup->agcen <<
AG903_VIA_CHD_SETUP3_AGCEN_POS
) 13: | (setup->accov <<
AG903_VIA_CHD_SETUP3_ACCOV_POS
) 14: | (setup->acctc <<
AG903_VIA_CHD_SETUP3_ACCTC_POS
) 15: | (setup->accmark <<
AG903_VIA_CHD_SETUP3_ACCMARK_POS
); 16: 17:
AG903_SSCPrmWriteCmpstVideoDec
(id,
AG903_VIA_CHD_SETUP3
, val); 18: }
グループ
VIA Primitive
リンク
viaprm.c
,
VIA Primitive
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム