XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
int XV_HdmiTxSs1_HdcpIsRepeater(XV_HdmiTxSs1 *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  int Status = (int)FALSE;

  switch (InstancePtr->HdcpProtocol)
  {
#ifdef XPAR_XHDCP_NUM_INSTANCES
    /* HDCP 1.4*/
    case XV_HDMITXSS1_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        Status = XHdcp1x_IsRepeater(InstancePtr->Hdcp14Ptr);
      }
      break;
#endif

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    /* HDCP 2.2*/
    case XV_HDMITXSS1_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        Status = XHdcp22Tx_IsRepeater(InstancePtr->Hdcp22Ptr);
      }
      break;
#endif

    default:
      Status = (int)FALSE;
  }

  return Status;
}
/*****************************************************************************/
/**
*
* This function checks if the HDMI transmitter is an HDCP repeater
* downstream interface for the active protocol.
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
*
* @return
*   - TRUE if repeater downstream interface.
*   - FALSE if not repeater downstream interface.
*
* @note   None.
*
******************************************************************************/
This function checks if the HDMI transmitter is an HDCP repeater
downstream interface for the active protocol.
This function checks if the HDMI transmitter is an HDCP repeater downstream interface for the active protocol .
int XV_HdmiTxSs1_HdcpIsRepeater(XV_HdmiTxSs1 *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  int Status = (int)FALSE;
  switch (InstancePtr->HdcpProtocol)
  {
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        Status = XHdcp1x_IsRepeater(InstancePtr->Hdcp14Ptr);
      }
      break;
#endif
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        Status = XHdcp22Tx_IsRepeater(InstancePtr->Hdcp22Ptr);
      }
      break;
#endif
    default:
      Status = (int)FALSE;
  }
  return Status;
}
int XV_HdmiTxSs1_HdcpIsRepeater ( XV_HdmiTxSs1 * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = ( int ) FALSE ; switch ( InstancePtr -> HdcpProtocol ) { #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMITXSS1_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { Status = XHdcp1x_IsRepeater ( InstancePtr -> Hdcp14Ptr ) ; } break ; #endif #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES case XV_HDMITXSS1_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { Status = XHdcp22Tx_IsRepeater ( InstancePtr -> Hdcp22Ptr ) ; } break ; #endif default : Status = ( int ) FALSE ; } return Status ; }
This function checks if the HDMI transmitter is an HDCP repeater
downstream interface for the active protocol.
This function checks if the HDMI transmitter is an HDCP repeater downstream interface for the active protocol .
/* Verify argument. */ /* HDCP 1.4*/ /* HDCP 2.2*/