XilinxProcessorIPLib/drivers/vphy/src/xvphy_hdmi_intr.c
void XVphy_SetHdmiCallback(XVphy *InstancePtr,
		XVphy_HdmiHandlerType HandlerType,
		void *CallbackFunc, void *CallbackRef)
{
	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid((HandlerType == XVPHY_HDMI_HANDLER_TXINIT) ||
			(HandlerType == XVPHY_HDMI_HANDLER_TXREADY) ||
			(HandlerType == XVPHY_HDMI_HANDLER_RXINIT) ||
			(HandlerType == XVPHY_HDMI_HANDLER_RXREADY));
	Xil_AssertVoid(CallbackFunc != NULL);
	Xil_AssertVoid(CallbackRef != NULL);

	switch (HandlerType) {
	case XVPHY_HDMI_HANDLER_TXINIT:
		InstancePtr->HdmiTxInitCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiTxInitRef = CallbackRef;
		break;

	case XVPHY_HDMI_HANDLER_TXREADY:
		InstancePtr->HdmiTxReadyCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiTxReadyRef = CallbackRef;
		break;

	case XVPHY_HDMI_HANDLER_RXINIT:
		InstancePtr->HdmiRxInitCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiRxInitRef = CallbackRef;
		break;

	case XVPHY_HDMI_HANDLER_RXREADY:
		InstancePtr->HdmiRxReadyCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiRxReadyRef = CallbackRef;
		break;

	default:
		break;
	}
}
/******************************************************************************/
/**
* This function installs an HDMI callback function for the specified handler
* type
*
* @param	InstancePtr is a pointer to the XVPhy instance.
* @param	HandlerType is the interrupt handler type which specifies which
*		interrupt event to attach the callback for.
* @param	CallbackFunc is the address to the callback function.
* @param	CallbackRef is the user data item that will be passed to the
*		callback function when it is invoked.
*
* @return	None.
*
* @note		None.
*
*******************************************************************************/
This function installs an HDMI callback function for the specified handler
type
This function installs an HDMI callback function for the specified handler type
void XVphy_SetHdmiCallback(XVphy *InstancePtr,
		XVphy_HdmiHandlerType HandlerType,
		void *CallbackFunc, void *CallbackRef)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid((HandlerType == XVPHY_HDMI_HANDLER_TXINIT) ||
			(HandlerType == XVPHY_HDMI_HANDLER_TXREADY) ||
			(HandlerType == XVPHY_HDMI_HANDLER_RXINIT) ||
			(HandlerType == XVPHY_HDMI_HANDLER_RXREADY));
	Xil_AssertVoid(CallbackFunc != NULL);
	Xil_AssertVoid(CallbackRef != NULL);
	switch (HandlerType) {
	case XVPHY_HDMI_HANDLER_TXINIT:
		InstancePtr->HdmiTxInitCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiTxInitRef = CallbackRef;
		break;
	case XVPHY_HDMI_HANDLER_TXREADY:
		InstancePtr->HdmiTxReadyCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiTxReadyRef = CallbackRef;
		break;
	case XVPHY_HDMI_HANDLER_RXINIT:
		InstancePtr->HdmiRxInitCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiRxInitRef = CallbackRef;
		break;
	case XVPHY_HDMI_HANDLER_RXREADY:
		InstancePtr->HdmiRxReadyCallback = (XVphy_Callback)CallbackFunc;
		InstancePtr->HdmiRxReadyRef = CallbackRef;
		break;
	default:
		break;
	}
}
void XVphy_SetHdmiCallback ( XVphy * InstancePtr , XVphy_HdmiHandlerType HandlerType , void * CallbackFunc , void * CallbackRef ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( ( HandlerType == XVPHY_HDMI_HANDLER_TXINIT ) || ( HandlerType == XVPHY_HDMI_HANDLER_TXREADY ) || ( HandlerType == XVPHY_HDMI_HANDLER_RXINIT ) || ( HandlerType == XVPHY_HDMI_HANDLER_RXREADY ) ) ; Xil_AssertVoid ( CallbackFunc != NULL ) ; Xil_AssertVoid ( CallbackRef != NULL ) ; switch ( HandlerType ) { case XVPHY_HDMI_HANDLER_TXINIT : InstancePtr -> HdmiTxInitCallback = ( XVphy_Callback ) CallbackFunc ; InstancePtr -> HdmiTxInitRef = CallbackRef ; break ; case XVPHY_HDMI_HANDLER_TXREADY : InstancePtr -> HdmiTxReadyCallback = ( XVphy_Callback ) CallbackFunc ; InstancePtr -> HdmiTxReadyRef = CallbackRef ; break ; case XVPHY_HDMI_HANDLER_RXINIT : InstancePtr -> HdmiRxInitCallback = ( XVphy_Callback ) CallbackFunc ; InstancePtr -> HdmiRxInitRef = CallbackRef ; break ; case XVPHY_HDMI_HANDLER_RXREADY : InstancePtr -> HdmiRxReadyCallback = ( XVphy_Callback ) CallbackFunc ; InstancePtr -> HdmiRxReadyRef = CallbackRef ; break ; default : break ; } }
This function installs an HDMI callback function for the specified handler
type
This function installs an HDMI callback function for the specified handler type
/* Verify arguments. */