UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer nvenugop
Observer
164 Views
Registered: ‎02-05-2019

Read the State of GPIO pins - ZCU111 RFSoC

Hi Developers

Greetings

I am using ZCU-111 eval board.
I am trying to read the state of a GPIO_LED (AR16) from sdk.

Using the function "XGpioPs_ReadPin(const XGpioPs *InstancePtr, u32 Pin)" 

how to find the pin value for the specific LED or any GPIO port? I tried looking at the reference manual, however all the pins are named as string, but the function expects a u32 value.

Am i using the wrong function? If so, how to read the state of a GPIO port from SDK for ZCU-111.

Appreciate the help.


Thanks in advance.


Nanda

0 Kudos