XilinxProcessorIPLib/drivers/hdcp22_tx_dp/src/xhdcp22_tx.c
u32 XHdcp22Tx_GetTopologyField(XHdcp22_Tx *InstancePtr, XHdcp22_Tx_TopologyField Field)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(Field < XHDCP22_TX_TOPOLOGY_INVALID);

	switch(Field)
	{
	case XHDCP22_TX_TOPOLOGY_DEPTH :
		return XHdcp22Tx_GetTopologyDepth(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_DEVICECNT :
		return XHdcp22Tx_GetTopologyDeviceCnt(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_MAXDEVSEXCEEDED :
		return XHdcp22Tx_GetTopologyMaxDevsExceeded(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_MAXCASCADEEXCEEDED :
		return XHdcp22Tx_GetTopologyMaxCascadeExceeded(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM:
		return XHdcp22Tx_GetTopologyHdcp2LegacyDeviceDownstream(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM :
		return XHdcp22Tx_GetTopologyHdcp1DeviceDownstream(InstancePtr);
	default:
		return 0;
	}
}
/*****************************************************************************/
/**
* This function is used to get various fields inside the topology structure.
*
* @param    InstancePtr is a pointer to the XHdcp22_Tx core instance.
* @param    Field indicates what field of the topology structure to get.
*
* @return   Value associated to field inside the topology structure.
*
* @note     None.
******************************************************************************/
This function is used to get various fields inside the topology structure.
This function is used to get various fields inside the topology structure .
u32 XHdcp22Tx_GetTopologyField(XHdcp22_Tx *InstancePtr, XHdcp22_Tx_TopologyField Field)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(Field < XHDCP22_TX_TOPOLOGY_INVALID);
	switch(Field)
	{
	case XHDCP22_TX_TOPOLOGY_DEPTH :
		return XHdcp22Tx_GetTopologyDepth(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_DEVICECNT :
		return XHdcp22Tx_GetTopologyDeviceCnt(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_MAXDEVSEXCEEDED :
		return XHdcp22Tx_GetTopologyMaxDevsExceeded(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_MAXCASCADEEXCEEDED :
		return XHdcp22Tx_GetTopologyMaxCascadeExceeded(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM:
		return XHdcp22Tx_GetTopologyHdcp2LegacyDeviceDownstream(InstancePtr);
	case XHDCP22_TX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM :
		return XHdcp22Tx_GetTopologyHdcp1DeviceDownstream(InstancePtr);
	default:
		return 0;
	}
}
u32 XHdcp22Tx_GetTopologyField ( XHdcp22_Tx * InstancePtr , XHdcp22_Tx_TopologyField Field ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( Field < XHDCP22_TX_TOPOLOGY_INVALID ) ; switch ( Field ) { case XHDCP22_TX_TOPOLOGY_DEPTH : return XHdcp22Tx_GetTopologyDepth ( InstancePtr ) ; case XHDCP22_TX_TOPOLOGY_DEVICECNT : return XHdcp22Tx_GetTopologyDeviceCnt ( InstancePtr ) ; case XHDCP22_TX_TOPOLOGY_MAXDEVSEXCEEDED : return XHdcp22Tx_GetTopologyMaxDevsExceeded ( InstancePtr ) ; case XHDCP22_TX_TOPOLOGY_MAXCASCADEEXCEEDED : return XHdcp22Tx_GetTopologyMaxCascadeExceeded ( InstancePtr ) ; case XHDCP22_TX_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM : return XHdcp22Tx_GetTopologyHdcp2LegacyDeviceDownstream ( InstancePtr ) ; case XHDCP22_TX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM : return XHdcp22Tx_GetTopologyHdcp1DeviceDownstream ( InstancePtr ) ; default : return 0 ; } }
This function is used to get various fields inside the topology structure.
This function is used to get various fields inside the topology structure .
/* Verify arguments */