XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
static u8 XHdcp22Rx_IsWriteMessageAvailable(XHdcp22_Rx *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/* Check if write message is available then clear flag */
	if(InstancePtr->Info.DdcFlag & XHDCP22_RX_DDC_FLAG_WRITE_MESSAGE_READY)
	{
		InstancePtr->Info.DdcFlag &= ~XHDCP22_RX_DDC_FLAG_WRITE_MESSAGE_READY;
		return (TRUE);
	}
	/* Check if any DPCD Msg is available*/
	if(InstancePtr->Info.DpcdFlag != XHDCP22_RX_DPCD_FLAG_NONE)
		return TRUE;

	return (FALSE);
}
/*****************************************************************************/
/**
* This function is used to check if a complete message is available in
* the write message buffer. The DDC flag is cleared when a message
* available is detected.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
*
* @return	TRUE or FALSE.
*
* @note		None.
******************************************************************************/
This function is used to check if a complete message is available in
the write message buffer. The DDC flag is cleared when a message
available is detected.
This function is used to check if a complete message is available in the write message buffer . The DDC flag is cleared when a message available is detected .
static u8 XHdcp22Rx_IsWriteMessageAvailable(XHdcp22_Rx *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	if(InstancePtr->Info.DdcFlag & XHDCP22_RX_DDC_FLAG_WRITE_MESSAGE_READY)
	{
		InstancePtr->Info.DdcFlag &= ~XHDCP22_RX_DDC_FLAG_WRITE_MESSAGE_READY;
		return (TRUE);
	}
	if(InstancePtr->Info.DpcdFlag != XHDCP22_RX_DPCD_FLAG_NONE)
		return TRUE;
	return (FALSE);
}
static u8 XHdcp22Rx_IsWriteMessageAvailable ( XHdcp22_Rx * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( InstancePtr -> Info . DdcFlag & XHDCP22_RX_DDC_FLAG_WRITE_MESSAGE_READY ) { InstancePtr -> Info . DdcFlag &= ~ XHDCP22_RX_DDC_FLAG_WRITE_MESSAGE_READY ; return ( TRUE ) ; } if ( InstancePtr -> Info . DpcdFlag != XHDCP22_RX_DPCD_FLAG_NONE ) return TRUE ; return ( FALSE ) ; }
This function is used to check if a complete message is available in
the write message buffer.
This function is used to check if a complete message is available in the write message buffer .
/* Verify arguments */ /* Check if write message is available then clear flag */ /* Check if any DPCD Msg is available*/