XilinxProcessorIPLib/drivers/audio_formatter/src/xaudioformatter.c
void XAudioFormatterSetFsMultiplier(XAudioFormatter *InstancePtr, u32 Mclk,
	u32 Fs)
{
	u32 val;

	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid((Mclk > 0) && (Fs > 0) && (Mclk > Fs));
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	val = Mclk / Fs;
	XAudioFormatter_WriteReg(InstancePtr->BaseAddress,
		XAUD_FORMATTER_FS_MULTIPLIER, val);
}
/*****************************************************************************/
/**
 ** This function calculates the Fs multiplier value.
 **
 ** @param  InstancePtr is a pointer to the Audio Formatter instance.
 ** @param  MClk is the frequency of the MClk.
 ** @param  Fs is the sampling frequency of the system.
 **
 ** @return - None
 **
 ******************************************************************************/
This function calculates the Fs multiplier value.
@param  InstancePtr is a pointer to the Audio Formatter instance.
@param  MClk is the frequency of the MClk.
@param  Fs is the sampling frequency of the system.

@return - None
This function calculates the Fs multiplier value . @param InstancePtr is a pointer to the Audio Formatter instance . @param MClk is the frequency of the MClk . @param Fs is the sampling frequency of the system . @return - None
void XAudioFormatterSetFsMultiplier(XAudioFormatter *InstancePtr, u32 Mclk,
	u32 Fs)
{
	u32 val;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid((Mclk > 0) && (Fs > 0) && (Mclk > Fs));
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	val = Mclk / Fs;
	XAudioFormatter_WriteReg(InstancePtr->BaseAddress,
		XAUD_FORMATTER_FS_MULTIPLIER, val);
}
void XAudioFormatterSetFsMultiplier ( XAudioFormatter * InstancePtr , u32 Mclk , u32 Fs ) { u32 val ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( ( Mclk > 0 ) && ( Fs > 0 ) && ( Mclk > Fs ) ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; val = Mclk / Fs ; XAudioFormatter_WriteReg ( InstancePtr -> BaseAddress , XAUD_FORMATTER_FS_MULTIPLIER , val ) ; }
This function calculates the Fs multiplier value.
This function calculates the Fs multiplier value .