XilinxProcessorIPLib/drivers/tmr_manager/src/xtmr_manager_intr.c
void XTMR_Manager_SetHandler(XTMR_Manager *InstancePtr,
				XTMR_Manager_Handler FuncPtr, void *CallBackRef)
{
	/*
	 * Assert validates the input arguments
	 * CallBackRef not checked, no way to know what is valid
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(FuncPtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	InstancePtr->Handler = FuncPtr;
	InstancePtr->CallBackRef = CallBackRef;
}
/****************************************************************************/
/**
*
* This function sets the handler that will be called when an event (interrupt)
* occurs in the driver. The purpose of the handler is to allow application
* specific processing to be performed.
*
* @param	InstancePtr is a pointer to the XTMR_Manager instance.
* @param	FuncPtr is the pointer to the callback function.
* @param	CallBackRef is the upper layer callback reference passed back
*		when the callback function is invoked.
*
* @return	None.
*
* @note		There is no assert on the CallBackRef since the driver doesn't
*		know what it is (nor should it)
*
*****************************************************************************/
This function sets the handler that will be called when an event (interrupt)
occurs in the driver. The purpose of the handler is to allow application
specific processing to be performed.
This function sets the handler that will be called when an event ( interrupt ) occurs in the driver . The purpose of the handler is to allow application specific processing to be performed .
void XTMR_Manager_SetHandler(XTMR_Manager *InstancePtr,
				XTMR_Manager_Handler FuncPtr, void *CallBackRef)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(FuncPtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	InstancePtr->Handler = FuncPtr;
	InstancePtr->CallBackRef = CallBackRef;
}
void XTMR_Manager_SetHandler ( XTMR_Manager * InstancePtr , XTMR_Manager_Handler FuncPtr , void * CallBackRef ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( FuncPtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; InstancePtr -> Handler = FuncPtr ; InstancePtr -> CallBackRef = CallBackRef ; }
This function sets the handler that will be called when an event (interrupt)
occurs in the driver.
This function sets the handler that will be called when an event ( interrupt ) occurs in the driver .
/*
	 * Assert validates the input arguments
	 * CallBackRef not checked, no way to know what is valid
	 */