XilinxProcessorIPLib/drivers/audio_formatter/src/xaudioformatter.c
u32 XAudioFormatterGetDMATransferCount(XAudioFormatter *InstancePtr)
{
	u32 offset;
	u32 val;

	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	if (InstancePtr->ChannelId == XAudioFormatter_S2MM) {
		offset = XAUD_FORMATTER_S2MM_OFFSET;
	}
	if (InstancePtr->ChannelId == XAudioFormatter_MM2S) {
		offset = XAUD_FORMATTER_MM2S_OFFSET;
	}
	val = XAudioFormatter_ReadReg(InstancePtr->BaseAddress,
		XAUD_FORMATTER_XFER_COUNT + offset);
	return val;
}
/*****************************************************************************/
/**
 ** This function returns the No. of bytes of data read from memory..
 **
 ** @param  InstancePtr is a pointer to the Audio Formatter instance.
 **
 ** @return - No. of bytes of data read from memory.
 **
 ******************************************************************************/
This function returns the No. of bytes of data read from memory
@param  InstancePtr is a pointer to the Audio Formatter instance.

@return - No. of bytes of data read from memory.
This function returns the No . of bytes of data read from memory @param InstancePtr is a pointer to the Audio Formatter instance . @return - No . of bytes of data read from memory .
u32 XAudioFormatterGetDMATransferCount(XAudioFormatter *InstancePtr)
{
	u32 offset;
	u32 val;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	if (InstancePtr->ChannelId == XAudioFormatter_S2MM) {
		offset = XAUD_FORMATTER_S2MM_OFFSET;
	}
	if (InstancePtr->ChannelId == XAudioFormatter_MM2S) {
		offset = XAUD_FORMATTER_MM2S_OFFSET;
	}
	val = XAudioFormatter_ReadReg(InstancePtr->BaseAddress,
		XAUD_FORMATTER_XFER_COUNT + offset);
	return val;
}
u32 XAudioFormatterGetDMATransferCount ( XAudioFormatter * InstancePtr ) { u32 offset ; u32 val ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; if ( InstancePtr -> ChannelId == XAudioFormatter_S2MM ) { offset = XAUD_FORMATTER_S2MM_OFFSET ; } if ( InstancePtr -> ChannelId == XAudioFormatter_MM2S ) { offset = XAUD_FORMATTER_MM2S_OFFSET ; } val = XAudioFormatter_ReadReg ( InstancePtr -> BaseAddress , XAUD_FORMATTER_XFER_COUNT + offset ) ; return val ; }
This function returns the No.
This function returns the No .