NVIDIA TX2 switch diagnostics (current state of switches)

Hello everyone,
I want to do diagnostics for switches(like power on, force recovery and reset button) to get the real-time status, whether it is switched on or off. is there any source code they have maintained for switch diagnostics or they just configured? please any one can help me?

Hi, i’m afraid no such code as these buttons are hardware trigger mode and only change status when pressed. Why do you want to know its real-time status?