XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_rx.c
static void XHdcp1x_RxPostEvent(XHdcp1x *InstancePtr, XHdcp1x_EventType Event)
{
	/* Check for disable and clear any pending enable */
	if (Event == XHDCP1X_EVENT_DISABLE) {
		InstancePtr->Rx.PendingEvents &= ~(1u << XHDCP1X_EVENT_ENABLE);
	}
	/* Check for phy-down and clear any pending phy-up */
	else if (Event == XHDCP1X_EVENT_PHYDOWN) {
		InstancePtr->Rx.PendingEvents &= ~(1u << XHDCP1X_EVENT_PHYUP);
	}

	/* Post it */
	InstancePtr->Rx.PendingEvents |= (1u << Event);
}
/*****************************************************************************/
/**
* This function posts an event to a state machine.
*
* @param	InstancePtr is the receiver instance.
* @param	Event is the event to post.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function posts an event to a state machine.
This function posts an event to a state machine .
static void XHdcp1x_RxPostEvent(XHdcp1x *InstancePtr, XHdcp1x_EventType Event)
{
	if (Event == XHDCP1X_EVENT_DISABLE) {
		InstancePtr->Rx.PendingEvents &= ~(1u << XHDCP1X_EVENT_ENABLE);
	}
	else if (Event == XHDCP1X_EVENT_PHYDOWN) {
		InstancePtr->Rx.PendingEvents &= ~(1u << XHDCP1X_EVENT_PHYUP);
	}
	InstancePtr->Rx.PendingEvents |= (1u << Event);
}
static void XHdcp1x_RxPostEvent ( XHdcp1x * InstancePtr , XHdcp1x_EventType Event ) { if ( Event == XHDCP1X_EVENT_DISABLE ) { InstancePtr -> Rx . PendingEvents &= ~ ( 1u << XHDCP1X_EVENT_ENABLE ) ; } else if ( Event == XHDCP1X_EVENT_PHYDOWN ) { InstancePtr -> Rx . PendingEvents &= ~ ( 1u << XHDCP1X_EVENT_PHYUP ) ; } InstancePtr -> Rx . PendingEvents |= ( 1u << Event ) ; }
This function posts an event to a state machine.
This function posts an event to a state machine .
/* Check for disable and clear any pending enable */ /* Check for phy-down and clear any pending phy-up */ /* Post it */