AG903ライブラリリファレンス
Body Source
AG903_OSPPrmSTAT 関数
本文ソース
コピコード
1:
void
AG903_OSPPrmSTAT(
const
uint8_t ch, uint8_t *stat, uint8_t *cnt) 2: { 3: uint32_t val; 4: 5:
ASSERT
(ch <
AG903_OSP_CH_NUM
); 6:
ASSERT
(stat != NULL); 7:
ASSERT
(cnt != NULL); 8: 9: val =
AG903_OSPn
(ch)->STAT; 10: *cnt = (val &
AG903_OSPn_STAT_COUNT_MSK
) >>
AG903_OSPn_STAT_COUNT_POS
; 11: *stat = (val &
AG903_OSPn_STAT_STAT_MSK
) >>
AG903_OSPn_STAT_STAT_POS
; 12: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム