XilinxProcessorIPLib/drivers/hdcp22_rx_dp/src/xhdcp22_rx.c
void XHdcp22Rx_SetTopologyField(XHdcp22_Rx *InstancePtr, XHdcp22_Rx_TopologyField Field, u8 Value)
{
	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Field < XHDCP22_RX_TOPOLOGY_INVALID);

	switch(Field)
	{
	case XHDCP22_RX_TOPOLOGY_DEPTH :
		XHdcp22Rx_SetTopologyDepth(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_DEVICECNT :
		XHdcp22Rx_SetTopologyDeviceCnt(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_MAXDEVSEXCEEDED :
		XHdcp22Rx_SetTopologyMaxDevsExceeded(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_MAXCASCADEEXCEEDED :
		XHdcp22Rx_SetTopologyMaxCascadeExceeded(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM :
		XHdcp22Rx_SetTopologyHdcp2LegacyDeviceDownstream(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM :
		XHdcp22Rx_SetTopologyHdcp1DeviceDownstream(InstancePtr, Value);
		break;
	default:
		break;
	}
}
/*****************************************************************************/
/**
* This function is used to set various fields inside the topology structure.
*
* @param    InstancePtr is a pointer to the XHdcp22_Rx core instance.
* @param    Field indicates what field of the topology structure to update.
* @param    Value is the value assigned to the field of the topology structure.
*
* @return   None.
*
* @note     None.
******************************************************************************/
This function is used to set various fields inside the topology structure.
This function is used to set various fields inside the topology structure .
void XHdcp22Rx_SetTopologyField(XHdcp22_Rx *InstancePtr, XHdcp22_Rx_TopologyField Field, u8 Value)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Field < XHDCP22_RX_TOPOLOGY_INVALID);
	switch(Field)
	{
	case XHDCP22_RX_TOPOLOGY_DEPTH :
		XHdcp22Rx_SetTopologyDepth(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_DEVICECNT :
		XHdcp22Rx_SetTopologyDeviceCnt(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_MAXDEVSEXCEEDED :
		XHdcp22Rx_SetTopologyMaxDevsExceeded(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_MAXCASCADEEXCEEDED :
		XHdcp22Rx_SetTopologyMaxCascadeExceeded(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM :
		XHdcp22Rx_SetTopologyHdcp2LegacyDeviceDownstream(InstancePtr, Value);
		break;
	case XHDCP22_RX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM :
		XHdcp22Rx_SetTopologyHdcp1DeviceDownstream(InstancePtr, Value);
		break;
	default:
		break;
	}
}
void XHdcp22Rx_SetTopologyField ( XHdcp22_Rx * InstancePtr , XHdcp22_Rx_TopologyField Field , u8 Value ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( Field < XHDCP22_RX_TOPOLOGY_INVALID ) ; switch ( Field ) { case XHDCP22_RX_TOPOLOGY_DEPTH : XHdcp22Rx_SetTopologyDepth ( InstancePtr , Value ) ; break ; case XHDCP22_RX_TOPOLOGY_DEVICECNT : XHdcp22Rx_SetTopologyDeviceCnt ( InstancePtr , Value ) ; break ; case XHDCP22_RX_TOPOLOGY_MAXDEVSEXCEEDED : XHdcp22Rx_SetTopologyMaxDevsExceeded ( InstancePtr , Value ) ; break ; case XHDCP22_RX_TOPOLOGY_MAXCASCADEEXCEEDED : XHdcp22Rx_SetTopologyMaxCascadeExceeded ( InstancePtr , Value ) ; break ; case XHDCP22_RX_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM : XHdcp22Rx_SetTopologyHdcp2LegacyDeviceDownstream ( InstancePtr , Value ) ; break ; case XHDCP22_RX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM : XHdcp22Rx_SetTopologyHdcp1DeviceDownstream ( InstancePtr , Value ) ; break ; default : break ; } }
This function is used to set various fields inside the topology structure.
This function is used to set various fields inside the topology structure .
/* Verify arguments */