v_hdmiphy1
Xilinx SDK Drivers API Documentation
xhdmiphy1_hdmi_intr.c File Reference

Overview

This file contains video PHY functionality specific to the HDMI protocol related to interrupts.

Note
None.
MODIFICATION HISTORY:
Ver   Who  Date     Changes


dd/mm/yy


1.0 gm 10/12/18 Initial release.

Functions

void XHdmiphy1_Ch2Ids (XHdmiphy1 *InstancePtr, XHdmiphy1_ChannelId ChId, u8 *Id0, u8 *Id1)
 This function will set the channel IDs to correspond with the supplied channel ID based on the protocol. More...
 
void XHdmiphy1_SetHdmiCallback (XHdmiphy1 *InstancePtr, XHdmiphy1_HdmiHandlerType HandlerType, void *CallbackFunc, void *CallbackRef)
 This function installs an HDMI callback function for the specified handler type. More...
 
void XHdmiphy1_HdmiIntrHandlerCallbackInit (XHdmiphy1 *InstancePtr)
 This function sets the appropriate HDMI interupt handlers. More...
 
void XHdmiphy1_HdmiQpllLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by QPLL lock done. More...
 
void XHdmiphy1_HdmiCpllLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by CPLL lock done. More...
 
void XHdmiphy1_HdmiGtTxAlignDoneLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by GT TX alignment done. More...
 
void XHdmiphy1_HdmiGtTxResetDoneLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by GT TX reset lock done. More...
 
void XHdmiphy1_HdmiGtRxResetDoneLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by GT RX reset lock done. More...
 
void XHdmiphy1_HdmiTxClkDetFreqChangeHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by a change in TX frequency as detected by the HDMI clock detector logic. More...
 
void XHdmiphy1_HdmiRxClkDetFreqChangeHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for events triggered by a change in RX frequency as detected by the HDMI clock detector logic. More...
 
void XHdmiphy1_HdmiTxTimerTimeoutHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for TX timer timeout events. More...
 
void XHdmiphy1_HdmiRxTimerTimeoutHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for RX timer timeout events. More...
 
void XHdmiphy1_HdmiTxMmcmLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for TX MMCM Lock events. More...
 
void XHdmiphy1_HdmiRxMmcmLockHandler (XHdmiphy1 *InstancePtr)
 This function is the handler for RX MMCM Lock events. More...
 

Function Documentation

void XHdmiphy1_Ch2Ids ( XHdmiphy1 InstancePtr,
XHdmiphy1_ChannelId  ChId,
u8 *  Id0,
u8 *  Id1 
)

This function will set the channel IDs to correspond with the supplied channel ID based on the protocol.

HDMI uses 3 channels; This ID translation is done to allow other functions to operate iteratively over multiple channels.

Parameters
InstancePtris a pointer to the XHdmiphy1 core instance.
ChIdis the channel ID used to determine the indices.
Id0is a pointer to the start channel ID to set.
Id1is a pointer to the end channel ID to set.
Returns
None.
Note
The contents of Id0 and Id1 will be set according to ChId.
void XHdmiphy1_HdmiCpllLockHandler ( XHdmiphy1 InstancePtr)

This function is the handler for events triggered by CPLL lock done.

Parameters
InstancePtris a pointer to the HDMIPHY instance.
Returns
None.
Note
None.

References XHdmiphy1::Quads, XHdmiphy1_Ch2Ids(), XHdmiphy1_GetPllType(), XHdmiphy1_GetRcfgChId(), XHDMIPHY1_GT_STATE_RESET, XHdmiphy1_IsPllLocked(), XHDMIPHY1_LOG_EVT_CPLL_LOCK, XHdmiphy1_LogWrite(), and XHdmiphy1_ResetGtTxRx().

void XHdmiphy1_HdmiGtRxResetDoneLockHandler ( XHdmiphy1 InstancePtr)
void XHdmiphy1_HdmiGtTxAlignDoneLockHandler ( XHdmiphy1 InstancePtr)

This function is the handler for events triggered by GT TX alignment done.

Parameters
InstancePtris a pointer to the HDMIPHY instance.
Returns
None.
Note
None.

References XHdmiphy1::HdmiTxReadyCallback, XHdmiphy1::HdmiTxReadyRef, XHdmiphy1::Quads, XHdmiphy1_Channel::TxState, XHdmiphy1_Ch2Ids(), XHDMIPHY1_GT_STATE_READY, XHDMIPHY1_LOG_EVT_TX_ALIGN, and XHdmiphy1_LogWrite().

void XHdmiphy1_HdmiQpllLockHandler ( XHdmiphy1 InstancePtr)

This function is the handler for events triggered by QPLL lock done.

Parameters
InstancePtris a pointer to the HDMIPHY instance.
Returns
None.
Note
None.

References XHdmiphy1::Quads, XHdmiphy1_Ch2Ids(), XHdmiphy1_GetPllType(), XHdmiphy1_GetRcfgChId(), XHDMIPHY1_GT_STATE_RESET, XHdmiphy1_IsPllLocked(), XHDMIPHY1_LOG_EVT_QPLL_LOCK, XHdmiphy1_LogWrite(), and XHdmiphy1_ResetGtTxRx().

void XHdmiphy1_HdmiRxMmcmLockHandler ( XHdmiphy1 InstancePtr)

This function is the handler for RX MMCM Lock events.

Parameters
InstancePtris a pointer to the HDMIPHY instance.
Returns
None.
Note
None.

References XHDMIPHY1_LOG_EVT_RXPLL_LOCK, and XHdmiphy1_LogWrite().

void XHdmiphy1_HdmiTxMmcmLockHandler ( XHdmiphy1 InstancePtr)

This function is the handler for TX MMCM Lock events.

Parameters
InstancePtris a pointer to the HDMIPHY instance.
Returns
None.
Note
None.

References XHdmiphy1_Config::BaseAddr, XHdmiphy1::Config, XHDMIPHY1_LOG_EVT_TXPLL_LOCK, XHdmiphy1_LogWrite(), XHdmiphy1_ReadReg, and XHdmiphy1_WriteReg.