AG903ライブラリリファレンス
Body Source
AG903_SSPMgrSetTxFifoThreshold 関数
本文ソース
コピコード
1: int32_t AG903_SSPMgrSetTxFifoThreshold(
AG903_SSPMgrHandle
* handle, uint8_t threshold) 2: { 3: int32_t retval =
AG903_ENONE
; 4: uint8_t ch; 5: uint8_t enable; 6: 7: retval = SSPMgr_CheckHandle(handle, &ch); 8:
if
(
AG903_ENONE
!= retval) { 9:
return
-
AG903_EINVAL
; 10: } 11: 12:
if
(0 >= threshold ||
AG903_SSP_FIFO_DEPTH
< threshold) { 13:
return
-
AG903_EINVAL
; 14: } 15: 16:
AG903_SSPPrmCheckEnable
(ch, &enable); 17:
if
(0 != enable) { 18:
return
-
AG903_EPERM
; 19: } 20: 21: SspChStat[ch].tx_thod = threshold; 22:
AG903_SSPPrmSetTxFifoThreshold
(ch, threshold); 23: 24:
return
retval; 25: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム