About API Siul2_Port_Ip_SetPinDirection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About API Siul2_Port_Ip_SetPinDirection

跳至解决方案
1,441 次查看
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 解答
1,430 次查看
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 回复
1,431 次查看
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 项奖励
回复