XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/I2S/xhdmi_example.c
void RxAuxCallback(void *CallbackRef) {
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
	XHdmiC_Aux *AuxPtr;
	AuxPtr = XV_HdmiRxSs_GetAuxiliary(&HdmiRxSs);

	/* In pass-through mode copy some aux packets into local buffer.
	 * GCP does not need to be sent out because GCP packets on the TX side
	 * is handled by the HDMI TX core fully. Starts storing Aux only
	 * when TX stream has started to prevent AuxFifo Overflow.
	 */
	if (IsPassThrough && AuxPtr->Header.Byte[0] !=
			AUX_GENERAL_CONTROL_PACKET_TYPE &&
						AuxFifoStartFlag == TRUE) {
		memcpy(&(AuxFifo[AuxFifoEndIndex]),
		       AuxPtr,
		       sizeof(XHdmiC_Aux));

		if(AuxFifoEndIndex < (AUXFIFOSIZE - 1)) {
			AuxFifoEndIndex++;
		} else {
			AuxFifoEndIndex = 0;
		}

		if(AuxFifoCount >= AUXFIFOSIZE) {
			AuxFifoOvrFlowCnt++;
		}

		AuxFifoCount++;
	}
#endif
}
/*****************************************************************************/
/**
*
* This function is called when a RX aux irq has occurred.
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function is called when a RX aux irq has occurred.
This function is called when a RX aux irq has occurred .
void RxAuxCallback(void *CallbackRef) {
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
	XHdmiC_Aux *AuxPtr;
	AuxPtr = XV_HdmiRxSs_GetAuxiliary(&HdmiRxSs);
	if (IsPassThrough && AuxPtr->Header.Byte[0] !=
			AUX_GENERAL_CONTROL_PACKET_TYPE &&
						AuxFifoStartFlag == TRUE) {
		memcpy(&(AuxFifo[AuxFifoEndIndex]),
		       AuxPtr,
		       sizeof(XHdmiC_Aux));
		if(AuxFifoEndIndex < (AUXFIFOSIZE - 1)) {
			AuxFifoEndIndex++;
		} else {
			AuxFifoEndIndex = 0;
		}
		if(AuxFifoCount >= AUXFIFOSIZE) {
			AuxFifoOvrFlowCnt++;
		}
		AuxFifoCount++;
	}
#endif
}
void RxAuxCallback ( void * CallbackRef ) { #ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES XHdmiC_Aux * AuxPtr ; AuxPtr = XV_HdmiRxSs_GetAuxiliary ( & HdmiRxSs ) ; if ( IsPassThrough && AuxPtr -> Header . Byte [ 0 ] != AUX_GENERAL_CONTROL_PACKET_TYPE && AuxFifoStartFlag == TRUE ) { memcpy ( & ( AuxFifo [ AuxFifoEndIndex ] ) , AuxPtr , sizeof ( XHdmiC_Aux ) ) ; if ( AuxFifoEndIndex < ( AUXFIFOSIZE - 1 ) ) { AuxFifoEndIndex ++ ; } else { AuxFifoEndIndex = 0 ; } if ( AuxFifoCount >= AUXFIFOSIZE ) { AuxFifoOvrFlowCnt ++ ; } AuxFifoCount ++ ; } #endif }
This function is called when a RX aux irq has occurred.
This function is called when a RX aux irq has occurred .
/* In pass-through mode copy some aux packets into local buffer.
	 * GCP does not need to be sent out because GCP packets on the TX side
	 * is handled by the HDMI TX core fully. Starts storing Aux only
	 * when TX stream has started to prevent AuxFifo Overflow.
	 */