XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
static XV_HdmiRxSs_HdcpEvent XV_HdmiRxSs_HdcpGetEvent(XV_HdmiRxSs *InstancePtr)
{
  XV_HdmiRxSs_HdcpEvent Event;

  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  /* Check if there are any events in the queue */
  if (InstancePtr->HdcpEventQueue.Tail == InstancePtr->HdcpEventQueue.Head) {
    return XV_HDMIRXSS_HDCP_NO_EVT;
  }

  Event = InstancePtr->HdcpEventQueue.Queue[InstancePtr->HdcpEventQueue.Tail];

  /* Update tail pointer */
  if (InstancePtr->HdcpEventQueue.Tail == (XV_HDMIRXSS_HDCP_MAX_QUEUE_SIZE - 1)) {
    InstancePtr->HdcpEventQueue.Tail = 0;
  }
  else {
    InstancePtr->HdcpEventQueue.Tail++;
  }

  return Event;
}
/*****************************************************************************/
/**
*
* This function gets an event from the HDCP event queue.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
*
* @return When the queue is filled, the next event is returned.
*         When the queue is empty, XV_HDMIRXSS_HDCP_NO_EVT is returned.
*
* @note   None.
*
******************************************************************************/
This function gets an event from the HDCP event queue.
This function gets an event from the HDCP event queue .
static XV_HdmiRxSs_HdcpEvent XV_HdmiRxSs_HdcpGetEvent(XV_HdmiRxSs *InstancePtr)
{
  XV_HdmiRxSs_HdcpEvent Event;
  Xil_AssertNonvoid(InstancePtr != NULL);
  if (InstancePtr->HdcpEventQueue.Tail == InstancePtr->HdcpEventQueue.Head) {
    return XV_HDMIRXSS_HDCP_NO_EVT;
  }
  Event = InstancePtr->HdcpEventQueue.Queue[InstancePtr->HdcpEventQueue.Tail];
  if (InstancePtr->HdcpEventQueue.Tail == (XV_HDMIRXSS_HDCP_MAX_QUEUE_SIZE - 1)) {
    InstancePtr->HdcpEventQueue.Tail = 0;
  }
  else {
    InstancePtr->HdcpEventQueue.Tail++;
  }
  return Event;
}
static XV_HdmiRxSs_HdcpEvent XV_HdmiRxSs_HdcpGetEvent ( XV_HdmiRxSs * InstancePtr ) { XV_HdmiRxSs_HdcpEvent Event ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( InstancePtr -> HdcpEventQueue . Tail == InstancePtr -> HdcpEventQueue . Head ) { return XV_HDMIRXSS_HDCP_NO_EVT ; } Event = InstancePtr -> HdcpEventQueue . Queue [ InstancePtr -> HdcpEventQueue . Tail ] ; if ( InstancePtr -> HdcpEventQueue . Tail == ( XV_HDMIRXSS_HDCP_MAX_QUEUE_SIZE - 1 ) ) { InstancePtr -> HdcpEventQueue . Tail = 0 ; } else { InstancePtr -> HdcpEventQueue . Tail ++ ; } return Event ; }
This function gets an event from the HDCP event queue.
This function gets an event from the HDCP event queue .
/* Verify argument. */ /* Check if there are any events in the queue */ /* Update tail pointer */