GPIO EVENT

hi,
I have three pin set up as input (with resistance of pull up)…
with this function I succeed to understand which pin changed value?

void App_Gpio_Event_Handler ( s32 GpioHandle, adl_ioEvent_e Event, u32 Size, void * Param ){
	u32 My_Loop;
	s32 ReadValue_IN;
	s32 ReadValue_OUT;

	TRACE (( 1, "EVENT" ));
// Check event
switch ( Event ){

	case ADL_IO_EVENT_INPUT_CHANGED :

		TRACE (( 1, "GPIO %d new value: %d",( Param ) & ADL_IO_NUM_MSK ,( Param ) & ADL_IO_LEV_MSK ) && ADL_IO_LEV_HIGH ));

	break;
	}
}

The answer of the TRACE:

GPIO 1 new value: 1

Thanks

Look at the description of the adl_ioHdlr_f Call-back Type in the ADL User Guide - it tells you all about the parameters supplied to the event callback function…

Tnx,
I have read, but I do not succeed to understand which pin it changes state… in theory would have to be:

(Param) & ADL_IO_NUM_MSK
in example “(Param[My_Loop]) & ADL_IO_NUM_MSK”

but it gives back 1, even if change to me pin the 22

thanks