全てを折りたたみ
AG903ライブラリリファレンス
AG903_GPIOMgrSetType 関数
gpiomgr.c
GPIO Manager
Body Source
端子タイプ設定
Syntax
C++
int32_t
AG903_GPIOMgrSetType
(uint8_t
portch
, uint32_t
type
);
ファイル
gpiomgr.c
引数
引数
説明
uint8_t portch
[in] Portチャネル番号(0~3)
uint32_t type
[in] 端子タイプ(0:通常, 1:オープンドレイン)
返値
端子タイプ設定結果
返値の詳細
返値の詳細
説明
AG903_ENONE
正常終了
-AG903_EINVAL
引数異常
説明
Portチャネル(32bit)単位で端子タイプ(通常 or オープンドレイン)を設定します。
本文ソース
コピコード
1: int32_t AG903_GPIOMgrSetType(uint8_t portch, uint32_t type) 2: { 3: int32_t retval =
AG903_ENONE
; 4: 5:
if
(
AG903_GPIO_CH_NUM
<= portch) { 6:
return
-
AG903_EINVAL
; 7: } 8:
AG903_GPIOPrmSetType
(portch, type); 9: 10:
return
retval; 11: }
グループ
GPIO Manager
リンク
gpiomgr.c
,
GPIO Manager
,
Body Source
Copyright (c) 2017-2025 Axell Corporation. All rights reserved.
内容
|
インデックス
|
ホーム