XilinxProcessorIPLib/drivers/v_hdmirxss1/src/xv_hdmirxss1.c
static void XV_HdmiRxSs1_ConnectCallback(void *CallbackRef)
{
  XV_HdmiRxSs1 *HdmiRxSs1Ptr = (XV_HdmiRxSs1 *)CallbackRef;

  /* Is the cable connected?*/
  if (XV_HdmiRx1_IsStreamConnected(HdmiRxSs1Ptr->HdmiRx1Ptr)) {
#ifdef XV_HDMIRXSS1_LOG_ENABLE
    XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_CONNECT, 0);
#endif
    /* Set RX hot plug detect*/
    XV_HdmiRx1_SetHpd(HdmiRxSs1Ptr->HdmiRx1Ptr, TRUE);

    /* Set stream connected flag*/
    HdmiRxSs1Ptr->IsStreamConnected = (TRUE);

#ifdef USE_HDCP_RX
    /* Push connect event to HDCP event queue*/
    XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr, XV_HDMIRXSS1_HDCP_CONNECT_EVT);
#endif
  }

  /* RX cable is disconnected*/
  else {
#ifdef XV_HDMIRXSS1_LOG_ENABLE
    XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_DISCONNECT, 0);
#endif
    /* Clear RX hot plug detect*/
    XV_HdmiRx1_SetHpd(HdmiRxSs1Ptr->HdmiRx1Ptr, FALSE);

    /* Set stream connected flag*/
    HdmiRxSs1Ptr->IsStreamConnected = (FALSE);

#ifdef USE_HDCP_RX
    /* Push disconnect event to HDCP event queue*/
    XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr, XV_HDMIRXSS1_HDCP_DISCONNECT_EVT);
#endif

    XV_HdmiRx1_SetScrambler(HdmiRxSs1Ptr->HdmiRx1Ptr, (FALSE)); /*Disable scrambler*/
  }


  /* Check if user callback has been registered*/
  if (HdmiRxSs1Ptr->ConnectCallback) {
    HdmiRxSs1Ptr->ConnectCallback(HdmiRxSs1Ptr->ConnectRef);
  }

}
/*****************************************************************************/
/**
*
* This function is called when a RX connect event has occurred.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when a RX connect event has occurred.
This function is called when a RX connect event has occurred .
static void XV_HdmiRxSs1_ConnectCallback(void *CallbackRef)
{
  XV_HdmiRxSs1 *HdmiRxSs1Ptr = (XV_HdmiRxSs1 *)CallbackRef;
  if (XV_HdmiRx1_IsStreamConnected(HdmiRxSs1Ptr->HdmiRx1Ptr)) {
#ifdef XV_HDMIRXSS1_LOG_ENABLE
    XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_CONNECT, 0);
#endif
    XV_HdmiRx1_SetHpd(HdmiRxSs1Ptr->HdmiRx1Ptr, TRUE);
    HdmiRxSs1Ptr->IsStreamConnected = (TRUE);
#ifdef USE_HDCP_RX
    XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr, XV_HDMIRXSS1_HDCP_CONNECT_EVT);
#endif
  }
  else {
#ifdef XV_HDMIRXSS1_LOG_ENABLE
    XV_HdmiRxSs1_LogWrite(HdmiRxSs1Ptr, XV_HDMIRXSS1_LOG_EVT_DISCONNECT, 0);
#endif
    XV_HdmiRx1_SetHpd(HdmiRxSs1Ptr->HdmiRx1Ptr, FALSE);
    HdmiRxSs1Ptr->IsStreamConnected = (FALSE);
#ifdef USE_HDCP_RX
    XV_HdmiRxSs1_HdcpPushEvent(HdmiRxSs1Ptr, XV_HDMIRXSS1_HDCP_DISCONNECT_EVT);
#endif
    XV_HdmiRx1_SetScrambler(HdmiRxSs1Ptr->HdmiRx1Ptr, (FALSE)); 
  }
  if (HdmiRxSs1Ptr->ConnectCallback) {
    HdmiRxSs1Ptr->ConnectCallback(HdmiRxSs1Ptr->ConnectRef);
  }
}
static void XV_HdmiRxSs1_ConnectCallback ( void * CallbackRef ) { XV_HdmiRxSs1 * HdmiRxSs1Ptr = ( XV_HdmiRxSs1 * ) CallbackRef ; if ( XV_HdmiRx1_IsStreamConnected ( HdmiRxSs1Ptr -> HdmiRx1Ptr ) ) { #ifdef XV_HDMIRXSS1_LOG_ENABLE XV_HdmiRxSs1_LogWrite ( HdmiRxSs1Ptr , XV_HDMIRXSS1_LOG_EVT_CONNECT , 0 ) ; #endif XV_HdmiRx1_SetHpd ( HdmiRxSs1Ptr -> HdmiRx1Ptr , TRUE ) ; HdmiRxSs1Ptr -> IsStreamConnected = ( TRUE ) ; #ifdef USE_HDCP_RX XV_HdmiRxSs1_HdcpPushEvent ( HdmiRxSs1Ptr , XV_HDMIRXSS1_HDCP_CONNECT_EVT ) ; #endif } else { #ifdef XV_HDMIRXSS1_LOG_ENABLE XV_HdmiRxSs1_LogWrite ( HdmiRxSs1Ptr , XV_HDMIRXSS1_LOG_EVT_DISCONNECT , 0 ) ; #endif XV_HdmiRx1_SetHpd ( HdmiRxSs1Ptr -> HdmiRx1Ptr , FALSE ) ; HdmiRxSs1Ptr -> IsStreamConnected = ( FALSE ) ; #ifdef USE_HDCP_RX XV_HdmiRxSs1_HdcpPushEvent ( HdmiRxSs1Ptr , XV_HDMIRXSS1_HDCP_DISCONNECT_EVT ) ; #endif XV_HdmiRx1_SetScrambler ( HdmiRxSs1Ptr -> HdmiRx1Ptr , ( FALSE ) ) ; } if ( HdmiRxSs1Ptr -> ConnectCallback ) { HdmiRxSs1Ptr -> ConnectCallback ( HdmiRxSs1Ptr -> ConnectRef ) ; } }
This function is called when a RX connect event has occurred.
This function is called when a RX connect event has occurred .
/* Is the cable connected?*/ /* Set RX hot plug detect*/ /* Set stream connected flag*/ /* Push connect event to HDCP event queue*/ /* RX cable is disconnected*/ /* Clear RX hot plug detect*/ /* Set stream connected flag*/ /* Push disconnect event to HDCP event queue*/ /*Disable scrambler*/ /* Check if user callback has been registered*/