AG903ライブラリリファレンス
Body Source
AG903_SSPMgrGetHandle 関数
本文ソース
コピコード
1: int32_t AG903_SSPMgrGetHandle(uint8_t ch,
AG903_SSPMgrHandle
** handle) 2: { 3: int32_t retval =
AG903_ENONE
; 4: 5:
if
( (
AG903_SSP_CH_NUM
<= ch) || 6: (NULL == handle) ) { 7:
return
-
AG903_EINVAL
; 8: } 9:
if
(
true
== SspHandleStat[ch].lock) { 10:
return
-
AG903_EBUSY
; 11: } 12: 13: SspHandleStat[ch].lock =
true
; 14: 15: (*handle) = (
AG903_SSPMgrHandle
*)&SspHandleStat[ch]; 16: 17:
return
retval; 18: }
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム