XilinxProcessorIPLib/drivers/dp14rxss/examples/src/rx_only/xdprxss_dp14_rx.c
void DpRxSs_ExtPacketHandler(void *InstancePtr)
{
	u32 ExtFrame[9];
	int i=1;

	SdpExtFrame.frame_count++;

	/*Header Information*/
	ExtFrame[0] = XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
			XDP_RX_AUDIO_EXT_DATA(1));
	SdpExtFrame.Header[0] =  ExtFrame[0]&0xFF;
	SdpExtFrame.Header[1] = (ExtFrame[0]&0xFF00)>>8;
	SdpExtFrame.Header[2] = (ExtFrame[0]&0xFF0000)>>16;
	SdpExtFrame.Header[3] = (ExtFrame[0]&0xFF000000)>>24;

	/*Payload Information*/
	for (i = 0 ; i < 8 ; i++)
	{
		ExtFrame[i+1] = XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
				XDP_RX_AUDIO_EXT_DATA(i+2));
		SdpExtFrame.Payload[(i*4)]   =  ExtFrame[i+1]&0xFF;
		SdpExtFrame.Payload[(i*4)+1] = (ExtFrame[i+1]&0xFF00)>>8;
		SdpExtFrame.Payload[(i*4)+2] = (ExtFrame[i+1]&0xFF0000)>>16;
		SdpExtFrame.Payload[(i*4)+3] = (ExtFrame[i+1]&0xFF000000)>>24;
	}

}
/*****************************************************************************/
/**
*
* This function is the callback function for Generic Packet Handling of
* 32-Bytes payload.
*
* @param    InstancePtr is a pointer to the XDpRxSs instance.
*
* @return    None.
*
* @note        None.
*
******************************************************************************/
This function is the callback function for Generic Packet Handling of
32-Bytes payload.
This function is the callback function for Generic Packet Handling of 32 - Bytes payload .
void DpRxSs_ExtPacketHandler(void *InstancePtr)
{
	u32 ExtFrame[9];
	int i=1;
	SdpExtFrame.frame_count++;
	ExtFrame[0] = XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
			XDP_RX_AUDIO_EXT_DATA(1));
	SdpExtFrame.Header[0] =  ExtFrame[0]&0xFF;
	SdpExtFrame.Header[1] = (ExtFrame[0]&0xFF00)>>8;
	SdpExtFrame.Header[2] = (ExtFrame[0]&0xFF0000)>>16;
	SdpExtFrame.Header[3] = (ExtFrame[0]&0xFF000000)>>24;
	for (i = 0 ; i < 8 ; i++)
	{
		ExtFrame[i+1] = XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
				XDP_RX_AUDIO_EXT_DATA(i+2));
		SdpExtFrame.Payload[(i*4)]   =  ExtFrame[i+1]&0xFF;
		SdpExtFrame.Payload[(i*4)+1] = (ExtFrame[i+1]&0xFF00)>>8;
		SdpExtFrame.Payload[(i*4)+2] = (ExtFrame[i+1]&0xFF0000)>>16;
		SdpExtFrame.Payload[(i*4)+3] = (ExtFrame[i+1]&0xFF000000)>>24;
	}
}
void DpRxSs_ExtPacketHandler ( void * InstancePtr ) { u32 ExtFrame [ 9 ] ; int i = 1 ; SdpExtFrame . frame_count ++ ; ExtFrame [ 0 ] = XDp_ReadReg ( DpRxSsInst . DpPtr -> Config . BaseAddr , XDP_RX_AUDIO_EXT_DATA ( 1 ) ) ; SdpExtFrame . Header [ 0 ] = ExtFrame [ 0 ] & 0xFF ; SdpExtFrame . Header [ 1 ] = ( ExtFrame [ 0 ] & 0xFF00 ) >> 8 ; SdpExtFrame . Header [ 2 ] = ( ExtFrame [ 0 ] & 0xFF0000 ) >> 16 ; SdpExtFrame . Header [ 3 ] = ( ExtFrame [ 0 ] & 0xFF000000 ) >> 24 ; for ( i = 0 ; i < 8 ; i ++ ) { ExtFrame [ i + 1 ] = XDp_ReadReg ( DpRxSsInst . DpPtr -> Config . BaseAddr , XDP_RX_AUDIO_EXT_DATA ( i + 2 ) ) ; SdpExtFrame . Payload [ ( i * 4 ) ] = ExtFrame [ i + 1 ] & 0xFF ; SdpExtFrame . Payload [ ( i * 4 ) + 1 ] = ( ExtFrame [ i + 1 ] & 0xFF00 ) >> 8 ; SdpExtFrame . Payload [ ( i * 4 ) + 2 ] = ( ExtFrame [ i + 1 ] & 0xFF0000 ) >> 16 ; SdpExtFrame . Payload [ ( i * 4 ) + 3 ] = ( ExtFrame [ i + 1 ] & 0xFF000000 ) >> 24 ; } }
This function is the callback function for Generic Packet Handling of
32-Bytes payload.
This function is the callback function for Generic Packet Handling of 32 - Bytes payload .
/*Header Information*/ /*Payload Information*/