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

TIMnCNTのレジスタRead

Syntax
C++
void AG903_TIMRPrmGetCount(uint8_t ch, uint32_t* count);
引数 
説明 
uint8_t ch 
[in] TIMRチャネル 
uint32_t* count 
[out] カウント値 

void

TIMnCNTのレジスタRead

1: void AG903_TIMRPrmGetCount(uint8_t ch, uint32_t* count) 2: { 3: ASSERT(AG903_TIMR_CH_NUM > ch); 4: ASSERT(NULL != count); 5: (*count) = AG903_TIMR_READ_REGn(ch,CNT); 6: return; 7: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.