XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/RepeaterProfessional/xhdcp.c
void XHdcp_SetProRepeater(XHdcp_Repeater *InstancePtr, u8 Set)
{
  /* Verify arguments */
  Xil_AssertVoid(InstancePtr != NULL);

  if (InstancePtr->IsReady) {

	/* Check for validity of HDCP Professional Timestamp. */
	if (XHdcpPro_VerifyTimestamp(InstancePtr) != XST_SUCCESS) {
	  Set = FALSE;
	}

	/* Set HDCP Pro flag. */
	InstancePtr->IsHdcpProRepeater = Set;

	/* Set Upstream. */
	XV_HdmiRxSs_HdcpSetProRepeater(InstancePtr->UpstreamInstancePtr, Set);

    /* Toggle HPD if upstream is connected */
    if (InstancePtr->UpstreamInstanceConnected) {
      XV_HdmiRxSs_ToggleHpd(InstancePtr->UpstreamInstancePtr);
    }
  }
}
/*****************************************************************************/
/**
*
* This function sets the repeater professional mode for repeater system.
* HPD is toggled after the repeater mode is changed.
*
* @param    InstancePtr is a pointer to the XHdcp_Repeater instance.
* @param    Set is TRUE to enable or FALSE to disable repeater.
*
* @return   None.
*
* @note	    None.
*
******************************************************************************/
This function sets the repeater professional mode for repeater system.
HPD is toggled after the repeater mode is changed.
This function sets the repeater professional mode for repeater system . HPD is toggled after the repeater mode is changed .
void XHdcp_SetProRepeater(XHdcp_Repeater *InstancePtr, u8 Set)
{
  Xil_AssertVoid(InstancePtr != NULL);
  if (InstancePtr->IsReady) {
	if (XHdcpPro_VerifyTimestamp(InstancePtr) != XST_SUCCESS) {
	  Set = FALSE;
	}
	InstancePtr->IsHdcpProRepeater = Set;
	XV_HdmiRxSs_HdcpSetProRepeater(InstancePtr->UpstreamInstancePtr, Set);
    if (InstancePtr->UpstreamInstanceConnected) {
      XV_HdmiRxSs_ToggleHpd(InstancePtr->UpstreamInstancePtr);
    }
  }
}
void XHdcp_SetProRepeater ( XHdcp_Repeater * InstancePtr , u8 Set ) { Xil_AssertVoid ( InstancePtr != NULL ) ; if ( InstancePtr -> IsReady ) { if ( XHdcpPro_VerifyTimestamp ( InstancePtr ) != XST_SUCCESS ) { Set = FALSE ; } InstancePtr -> IsHdcpProRepeater = Set ; XV_HdmiRxSs_HdcpSetProRepeater ( InstancePtr -> UpstreamInstancePtr , Set ) ; if ( InstancePtr -> UpstreamInstanceConnected ) { XV_HdmiRxSs_ToggleHpd ( InstancePtr -> UpstreamInstancePtr ) ; } } }
This function sets the repeater professional mode for repeater system.
This function sets the repeater professional mode for repeater system .
/* Verify arguments */ /* Check for validity of HDCP Professional Timestamp. */ /* Set HDCP Pro flag. */ /* Set Upstream. */ /* Toggle HPD if upstream is connected */