XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
static void XHdcp22Tx_ReadRxStatus(XHdcp22_Tx *InstancePtr)
{
	u8 DdcBuf[2];
	int Status = XST_FAILURE;
	if (InstancePtr->Config.Protocol != XHDCP22_TX_DP) {
		/* Set the RxStatus register address */
		DdcBuf[0] = XHDCP22_TX_HDCPPORT_RXSTATUS_OFFSET;

		Status = InstancePtr->DdcWrite(XHDCP22_TX_DDC_BASE_ADDRESS, 1, DdcBuf, (FALSE),
							  InstancePtr->DdcHandlerRef);

		/* If write fails, request re-authentication */
		if (Status != XST_SUCCESS) {
			InstancePtr->Info.RxStatus = XHDCP22_TX_INVALID_RXSTATUS;
			return;
		}

		Status = InstancePtr->DdcRead(XHDCP22_TX_DDC_BASE_ADDRESS, sizeof(DdcBuf),
						DdcBuf, (TRUE), InstancePtr->DdcHandlerRef);

		/* If read fails, request re-authentication */
		if (Status != XST_SUCCESS) {
			InstancePtr->Info.RxStatus = XHDCP22_TX_INVALID_RXSTATUS;
			return;
		}

		InstancePtr->Info.RxStatus = DdcBuf[0] | (DdcBuf[1] << 8);
	}
}
/*****************************************************************************/
/**
*
* This function reads RxStatus from the DDC channel. If the read
* is not successful it will default to an RxStatus value of 0xFFFF
* to initiate re-authentication.
*
* @param  InstancePtr is a pointer to the XHdcp22Tx core instance.
* @param  MsgBufferPtr the buffer to use for messaging.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function reads RxStatus from the DDC channel. If the read
is not successful it will default to an RxStatus value of 0xFFFF
to initiate re-authentication.
This function reads RxStatus from the DDC channel . If the read is not successful it will default to an RxStatus value of 0xFFFF to initiate re - authentication .
static void XHdcp22Tx_ReadRxStatus(XHdcp22_Tx *InstancePtr)
{
	u8 DdcBuf[2];
	int Status = XST_FAILURE;
	if (InstancePtr->Config.Protocol != XHDCP22_TX_DP) {
		DdcBuf[0] = XHDCP22_TX_HDCPPORT_RXSTATUS_OFFSET;
		Status = InstancePtr->DdcWrite(XHDCP22_TX_DDC_BASE_ADDRESS, 1, DdcBuf, (FALSE),
							  InstancePtr->DdcHandlerRef);
		if (Status != XST_SUCCESS) {
			InstancePtr->Info.RxStatus = XHDCP22_TX_INVALID_RXSTATUS;
			return;
		}
		Status = InstancePtr->DdcRead(XHDCP22_TX_DDC_BASE_ADDRESS, sizeof(DdcBuf),
						DdcBuf, (TRUE), InstancePtr->DdcHandlerRef);
		if (Status != XST_SUCCESS) {
			InstancePtr->Info.RxStatus = XHDCP22_TX_INVALID_RXSTATUS;
			return;
		}
		InstancePtr->Info.RxStatus = DdcBuf[0] | (DdcBuf[1] << 8);
	}
}
static void XHdcp22Tx_ReadRxStatus ( XHdcp22_Tx * InstancePtr ) { u8 DdcBuf [ 2 ] ; int Status = XST_FAILURE ; if ( InstancePtr -> Config . Protocol != XHDCP22_TX_DP ) { DdcBuf [ 0 ] = XHDCP22_TX_HDCPPORT_RXSTATUS_OFFSET ; Status = InstancePtr -> DdcWrite ( XHDCP22_TX_DDC_BASE_ADDRESS , 1 , DdcBuf , ( FALSE ) , InstancePtr -> DdcHandlerRef ) ; if ( Status != XST_SUCCESS ) { InstancePtr -> Info . RxStatus = XHDCP22_TX_INVALID_RXSTATUS ; return ; } Status = InstancePtr -> DdcRead ( XHDCP22_TX_DDC_BASE_ADDRESS , sizeof ( DdcBuf ) , DdcBuf , ( TRUE ) , InstancePtr -> DdcHandlerRef ) ; if ( Status != XST_SUCCESS ) { InstancePtr -> Info . RxStatus = XHDCP22_TX_INVALID_RXSTATUS ; return ; } InstancePtr -> Info . RxStatus = DdcBuf [ 0 ] | ( DdcBuf [ 1 ] << 8 ) ; } }
This function reads RxStatus from the DDC channel.
This function reads RxStatus from the DDC channel .
/* Set the RxStatus register address */ /* If write fails, request re-authentication */ /* If read fails, request re-authentication */