About API Siul2_Port_Ip_SetPinDirection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About API Siul2_Port_Ip_SetPinDirection

Jump to solution
503 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
492 Views
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

View solution in original post

0 Kudos
1 Reply
493 Views
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 Kudos