XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
XHdcp1x_RepeaterExchange *XHdcp1x_TxGetTopology(XHdcp1x *InstancePtr)
{

	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	if (InstancePtr->IsRepeater) {
		if (InstancePtr->Tx.CurrentState == XHDCP1X_STATE_AUTHENTICATED) {
			return &InstancePtr->RepeaterValues;
		} else if (InstancePtr->RepeaterValues.hdcp14_PropagateTopoErrUpstream == TRUE) {
			return &InstancePtr->RepeaterValues;
		}
	}

	return NULL;
}
/*****************************************************************************/
/**
*
* This function returns a pointer to the downstream Topology structure.
*
* @param    InstancePtr is a pointer to the XHdcp14 core instance.
*
* @return   A pointer to the XHdcp14 Topology structure or NULL when
*           the topology info is invalid.
*
* @note     None.
*
******************************************************************************/
This function returns a pointer to the downstream Topology structure.
This function returns a pointer to the downstream Topology structure .
XHdcp1x_RepeaterExchange *XHdcp1x_TxGetTopology(XHdcp1x *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	if (InstancePtr->IsRepeater) {
		if (InstancePtr->Tx.CurrentState == XHDCP1X_STATE_AUTHENTICATED) {
			return &InstancePtr->RepeaterValues;
		} else if (InstancePtr->RepeaterValues.hdcp14_PropagateTopoErrUpstream == TRUE) {
			return &InstancePtr->RepeaterValues;
		}
	}
	return NULL;
}
XHdcp1x_RepeaterExchange * XHdcp1x_TxGetTopology ( XHdcp1x * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( InstancePtr -> IsRepeater ) { if ( InstancePtr -> Tx . CurrentState == XHDCP1X_STATE_AUTHENTICATED ) { return & InstancePtr -> RepeaterValues ; } else if ( InstancePtr -> RepeaterValues . hdcp14_PropagateTopoErrUpstream == TRUE ) { return & InstancePtr -> RepeaterValues ; } } return NULL ; }
This function returns a pointer to the downstream Topology structure.
This function returns a pointer to the downstream Topology structure .
/* Verify arguments */