XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
int XV_HdmiRxSs_HdcpIsEncrypted(XV_HdmiRxSs *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMIRXSS_HDCP_NONE :
      return FALSE;

#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_14 :
      return XHdcp1x_IsEncrypted(InstancePtr->Hdcp14Ptr);
#endif

#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_22 :
      return XHdcp22Rx_IsEncryptionEnabled(InstancePtr->Hdcp22Ptr);
#endif

    default :
      return FALSE;
  }
}
/*****************************************************************************/
/**
*
* This function checks if the active HDCP protocol has encryption enabled.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
*
* @return
*  - TRUE if active protocol has encryption enabled
*  - FALSE if active protocol has encryption disabled
*
* @note   None.
*
******************************************************************************/
This function checks if the active HDCP protocol has encryption enabled.
This function checks if the active HDCP protocol has encryption enabled .
int XV_HdmiRxSs_HdcpIsEncrypted(XV_HdmiRxSs *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMIRXSS_HDCP_NONE :
      return FALSE;
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_14 :
      return XHdcp1x_IsEncrypted(InstancePtr->Hdcp14Ptr);
#endif
#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_22 :
      return XHdcp22Rx_IsEncryptionEnabled(InstancePtr->Hdcp22Ptr);
#endif
    default :
      return FALSE;
  }
}
int XV_HdmiRxSs_HdcpIsEncrypted ( XV_HdmiRxSs * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; switch ( InstancePtr -> HdcpProtocol ) { case XV_HDMIRXSS_HDCP_NONE : return FALSE ; #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMIRXSS_HDCP_14 : return XHdcp1x_IsEncrypted ( InstancePtr -> Hdcp14Ptr ) ; #endif #ifdef XPAR_XHDCP22_RX_NUM_INSTANCES case XV_HDMIRXSS_HDCP_22 : return XHdcp22Rx_IsEncryptionEnabled ( InstancePtr -> Hdcp22Ptr ) ; #endif default : return FALSE ; } }
This function checks if the active HDCP protocol has encryption enabled.
This function checks if the active HDCP protocol has encryption enabled .
/* Verify argument. */