API to view GPIO's input pin status