全てを折りたたみ
AG903ライブラリリファレンス
AG903_SPCPrmSetSoftResetSetup 関数
spcprm.c
SPC Primitive
Body Source
SPCSOFTRESET_SETUPのレジスタWrite
Syntax
C++
void
AG903_SPCPrmSetSoftResetSetup
(uint8_t
wait
, uint8_t
active
);
ファイル
spcprm.c
引数
引数
説明
uint8_t wait
[in] リセット発行タイミング (SYS_FTCクロック単位)
uint8_t active
[in] リセット発行期間 (SYS_FTCクロック単位)
返値
void
説明
SPCSOFTRESET_SETUPのレジスタWrite
本文ソース
コピコード
1:
void
AG903_SPCPrmSetSoftResetSetup(uint8_t wait, uint8_t active) 2: { 3: uint32_t val = 0; 4: 5: val |= (wait <<
AG903_SPC_SOFTRESET_SETUP_SWRST_WAIT_POS
) &
AG903_SPC_SOFTRESET_SETUP_SWRST_WAIT_MSK
; 6: val |= (active <<
AG903_SPC_SOFTRESET_SETUP_SWRST_ACTIVE_POS
) &
AG903_SPC_SOFTRESET_SETUP_SWRST_ACTIVE_MSK
; 7:
AG903_SPC
->SOFTRESET_SETUP = val; 8: 9:
return
; 10: }
グループ
SPC Primitive
リンク
spcprm.c
,
SPC Primitive
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム