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

ステータス取得

Syntax
C++
int32_t AG903_SSPMgrGetStatus(AG903_SSPMgrHandle* handle, AG903_SSPMgrStatus* status);
引数 
説明 
AG903_SSPMgrHandle* handle 
[in] SSPハンドル 
AG903_SSPMgrStatus* status 
[out] ステータス 

ステータス取得結果

返値の詳細 
説明 
正常終了 
-AG903_EINVAL 
引数異常 

ステータスを取得します。

1: int32_t AG903_SSPMgrGetStatus(AG903_SSPMgrHandle* handle, AG903_SSPMgrStatus* status) 2: { 3: AG903_SSPPrmStatus getsts; 4: int32_t retval = AG903_ENONE; 5: uint8_t ch; 6: 7: if(NULL == status) { 8: return -AG903_EINVAL; 9: } 10: retval = SSPMgr_CheckHandle(handle, &ch); 11: if(AG903_ENONE != retval) { 12: return -AG903_EINVAL; 13: } 14: 15: AG903_SSPPrmGetStatus(ch, &getsts); 16: status->txfifo_num = getsts.txfifo_num; 17: status->rxfifo_num = getsts.rxfifo_num; 18: status->busy = getsts.busy; 19: status->txfifo_notfull = getsts.txfifo_notfull; 20: status->rxfifo_full = getsts.rxfifo_full; 21: 22: return retval; 23: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.