XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1_hdmi_intr.c
void XHdmiphy1_SetHdmiCallback(XHdmiphy1 *InstancePtr,
        XHdmiphy1_HdmiHandlerType HandlerType,
        void *CallbackFunc, void *CallbackRef)
{
    /* Verify arguments. */
    Xil_AssertVoid(InstancePtr != NULL);
    Xil_AssertVoid((HandlerType == XHDMIPHY1_HDMI_HANDLER_TXINIT) ||
            (HandlerType == XHDMIPHY1_HDMI_HANDLER_TXREADY) ||
            (HandlerType == XHDMIPHY1_HDMI_HANDLER_RXINIT) ||
            (HandlerType == XHDMIPHY1_HDMI_HANDLER_RXREADY));
    Xil_AssertVoid(CallbackFunc != NULL);
    Xil_AssertVoid(CallbackRef != NULL);

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

    case XHDMIPHY1_HDMI_HANDLER_TXREADY:
        InstancePtr->HdmiTxReadyCallback = (XHdmiphy1_Callback)CallbackFunc;
        InstancePtr->HdmiTxReadyRef = CallbackRef;
        break;

    case XHDMIPHY1_HDMI_HANDLER_RXINIT:
        InstancePtr->HdmiRxInitCallback = (XHdmiphy1_Callback)CallbackFunc;
        InstancePtr->HdmiRxInitRef = CallbackRef;
        break;

    case XHDMIPHY1_HDMI_HANDLER_RXREADY:
        InstancePtr->HdmiRxReadyCallback = (XHdmiphy1_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 XHdmiphy1 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 XHdmiphy1_SetHdmiCallback(XHdmiphy1 *InstancePtr,
        XHdmiphy1_HdmiHandlerType HandlerType,
        void *CallbackFunc, void *CallbackRef)
{
    Xil_AssertVoid(InstancePtr != NULL);
    Xil_AssertVoid((HandlerType == XHDMIPHY1_HDMI_HANDLER_TXINIT) ||
            (HandlerType == XHDMIPHY1_HDMI_HANDLER_TXREADY) ||
            (HandlerType == XHDMIPHY1_HDMI_HANDLER_RXINIT) ||
            (HandlerType == XHDMIPHY1_HDMI_HANDLER_RXREADY));
    Xil_AssertVoid(CallbackFunc != NULL);
    Xil_AssertVoid(CallbackRef != NULL);
    switch (HandlerType) {
    case XHDMIPHY1_HDMI_HANDLER_TXINIT:
        InstancePtr->HdmiTxInitCallback = (XHdmiphy1_Callback)CallbackFunc;
        InstancePtr->HdmiTxInitRef = CallbackRef;
        break;
    case XHDMIPHY1_HDMI_HANDLER_TXREADY:
        InstancePtr->HdmiTxReadyCallback = (XHdmiphy1_Callback)CallbackFunc;
        InstancePtr->HdmiTxReadyRef = CallbackRef;
        break;
    case XHDMIPHY1_HDMI_HANDLER_RXINIT:
        InstancePtr->HdmiRxInitCallback = (XHdmiphy1_Callback)CallbackFunc;
        InstancePtr->HdmiRxInitRef = CallbackRef;
        break;
    case XHDMIPHY1_HDMI_HANDLER_RXREADY:
        InstancePtr->HdmiRxReadyCallback = (XHdmiphy1_Callback)CallbackFunc;
        InstancePtr->HdmiRxReadyRef = CallbackRef;
        break;
    default:
        break;
    }
}
void XHdmiphy1_SetHdmiCallback ( XHdmiphy1 * InstancePtr , XHdmiphy1_HdmiHandlerType HandlerType , void * CallbackFunc , void * CallbackRef ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( ( HandlerType == XHDMIPHY1_HDMI_HANDLER_TXINIT ) || ( HandlerType == XHDMIPHY1_HDMI_HANDLER_TXREADY ) || ( HandlerType == XHDMIPHY1_HDMI_HANDLER_RXINIT ) || ( HandlerType == XHDMIPHY1_HDMI_HANDLER_RXREADY ) ) ; Xil_AssertVoid ( CallbackFunc != NULL ) ; Xil_AssertVoid ( CallbackRef != NULL ) ; switch ( HandlerType ) { case XHDMIPHY1_HDMI_HANDLER_TXINIT : InstancePtr -> HdmiTxInitCallback = ( XHdmiphy1_Callback ) CallbackFunc ; InstancePtr -> HdmiTxInitRef = CallbackRef ; break ; case XHDMIPHY1_HDMI_HANDLER_TXREADY : InstancePtr -> HdmiTxReadyCallback = ( XHdmiphy1_Callback ) CallbackFunc ; InstancePtr -> HdmiTxReadyRef = CallbackRef ; break ; case XHDMIPHY1_HDMI_HANDLER_RXINIT : InstancePtr -> HdmiRxInitCallback = ( XHdmiphy1_Callback ) CallbackFunc ; InstancePtr -> HdmiRxInitRef = CallbackRef ; break ; case XHDMIPHY1_HDMI_HANDLER_RXREADY : InstancePtr -> HdmiRxReadyCallback = ( XHdmiphy1_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. */