XilinxProcessorIPLib/drivers/board_common/src/rfclk/src/xrfclk.c
u32 XRFClk_SetConfigOnOneChip(u32 ChipId, u32 *CfgData, u32 Len)
{
	Xil_AssertNonvoid(ChipId < RFCLK_CHIP_NUM);
	Xil_AssertNonvoid(CfgData != NULL);
	Xil_AssertNonvoid(Len < 256);

	u32 *d = CfgData;
	for (u32 i = 0; i < Len; i++, d++) {
		if (XST_SUCCESS != XRFClk_WriteReg(ChipId, *d)) {
			LOG("write reg");
			return XST_FAILURE;
		}
	}
	return XST_SUCCESS;
}
/****************************************************************************/
/**
*
* This function is used to set the full configuration data on one of
* LMX2594 or LMX04828. The all register values are passed as a pointer
* CfgData, Len defines a number of data ready for writing.
*
* @param	ChipId indicates the RF clock chip Id.
* @param	CfgData indicates the configuration for all registers.
* @param	Len indicates a number of data.
*
* @return
*	- XST_SUCCESS if successful.
*	- XST_FAILURE if failed.
*
* @note		None
*
****************************************************************************/
This function is used to set the full configuration data on one of
LMX2594 or LMX04828. The all register values are passed as a pointer
CfgData, Len defines a number of data ready for writing.
This function is used to set the full configuration data on one of LMX2594 or LMX04828 . The all register values are passed as a pointer CfgData Len defines a number of data ready for writing .
u32 XRFClk_SetConfigOnOneChip(u32 ChipId, u32 *CfgData, u32 Len)
{
	Xil_AssertNonvoid(ChipId < RFCLK_CHIP_NUM);
	Xil_AssertNonvoid(CfgData != NULL);
	Xil_AssertNonvoid(Len < 256);
	u32 *d = CfgData;
	for (u32 i = 0; i < Len; i++, d++) {
		if (XST_SUCCESS != XRFClk_WriteReg(ChipId, *d)) {
			LOG("write reg");
			return XST_FAILURE;
		}
	}
	return XST_SUCCESS;
}
u32 XRFClk_SetConfigOnOneChip ( u32 ChipId , u32 * CfgData , u32 Len ) { Xil_AssertNonvoid ( ChipId < RFCLK_CHIP_NUM ) ; Xil_AssertNonvoid ( CfgData != NULL ) ; Xil_AssertNonvoid ( Len < 256 ) ; u32 * d = CfgData ; for ( u32 i = 0 ; i < Len ; i ++ , d ++ ) { if ( XST_SUCCESS != XRFClk_WriteReg ( ChipId , * d ) ) { LOG ( " " ) ; return XST_FAILURE ; } } return XST_SUCCESS ; }
This function is used to set the full configuration data on one of
LMX2594 or LMX04828.
This function is used to set the full configuration data on one of LMX2594 or LMX04828 .