About API Siul2_Port_Ip_SetPinDirection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

About API Siul2_Port_Ip_SetPinDirection

ソリューションへジャンプ
526件の閲覧回数
jetty1012
Contributor II

So if I set a GPIO direction as 'Input' in the pin configuration. And I want to change its direction to 'Output' at some time during the program is running.

Should I use the API below?

jetty1012_0-1684724088345.jpeg

If so, should I set the 3rd param as 0 or 1 for 'Output'? Is there any manual about this?

I'm using S32K312 RTD v2.0.1

 

Thanks,

Jetty

ラベル(1)
タグ(1)
0 件の賞賛
1 解決策
515件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@jetty1024

yes ,you can use this function to change GPIO direction.

you can read this function then you will easily find that,set 0 ->In,set 1->Out

元の投稿で解決策を見る

0 件の賞賛
1 返信
516件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@jetty1024

yes ,you can use this function to change GPIO direction.

you can read this function then you will easily find that,set 0 ->In,set 1->Out

0 件の賞賛