XilinxProcessorIPLib/drivers/board_common/src/rfclk/src/xrfclk.c
u32 XRFClk_SetConfigOnOneChipFromConfigId(u32 ChipId, u32 ConfigId)
{
	Xil_AssertNonvoid(ChipId < RFCLK_CHIP_NUM);

	if (ChipId == RFCLK_LMK) {
		Xil_AssertNonvoid(ConfigId <
				  sizeof(LMK_CKin) / sizeof(LMK_CKin[0]));
		return XRFClk_SetConfigLMK(ConfigId);
	}
	Xil_AssertNonvoid(ConfigId < sizeof(LMX2594) / sizeof(LMX2594[0]));
	return XRFClk_SetConfigLMX(ChipId, ConfigId);
}
/****************************************************************************/
/**
*
* This function is used to set a full configuration on one of LMX2594 or
* LMX04828 for the requested frequency.where the register settings is
* provided from the selected hard coded data.
*
* @param	ChipId indicates the RF clock chip Id.
* @param	ConfigId indicates the RF clock chip configuration Id.
*
* @return
*	- XST_SUCCESS if successful.
*	- XST_FAILURE if failed.
*
* @note		None
*
****************************************************************************/
This function is used to set a full configuration on one of LMX2594 or
LMX04828 for the requested frequency.where the register settings is
provided from the selected hard coded data.
This function is used to set a full configuration on one of LMX2594 or LMX04828 for the requested frequency . where the register settings is provided from the selected hard coded data .
u32 XRFClk_SetConfigOnOneChipFromConfigId(u32 ChipId, u32 ConfigId)
{
	Xil_AssertNonvoid(ChipId < RFCLK_CHIP_NUM);
	if (ChipId == RFCLK_LMK) {
		Xil_AssertNonvoid(ConfigId <
				  sizeof(LMK_CKin) / sizeof(LMK_CKin[0]));
		return XRFClk_SetConfigLMK(ConfigId);
	}
	Xil_AssertNonvoid(ConfigId < sizeof(LMX2594) / sizeof(LMX2594[0]));
	return XRFClk_SetConfigLMX(ChipId, ConfigId);
}
u32 XRFClk_SetConfigOnOneChipFromConfigId ( u32 ChipId , u32 ConfigId ) { Xil_AssertNonvoid ( ChipId < RFCLK_CHIP_NUM ) ; if ( ChipId == RFCLK_LMK ) { Xil_AssertNonvoid ( ConfigId < sizeof ( LMK_CKin ) / sizeof ( LMK_CKin [ 0 ] ) ) ; return XRFClk_SetConfigLMK ( ConfigId ) ; } Xil_AssertNonvoid ( ConfigId < sizeof ( LMX2594 ) / sizeof ( LMX2594 [ 0 ] ) ) ; return XRFClk_SetConfigLMX ( ChipId , ConfigId ) ; }
This function is used to set a full configuration on one of LMX2594 or
LMX04828 for the requested frequency.where the register settings is
provided from the selected hard coded data.
This function is used to set a full configuration on one of LMX2594 or LMX04828 for the requested frequency . where the register settings is provided from the selected hard coded data .