NCM_SetClockMasterFallbackList( )
Description | Cautions | Example | Error Codes | See Also
NCMRetCode NCM_SetClockMasterFallbackList(pncmBus, pfallbackList )
NCMDevice *pncmBus NCMDevice *pfallbackList NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_SetClockMasterFallbackList( ) function sets the clock fallback list.
This function will issue a CTBB_UserApply to validate the changes. If the CTBB returns an error, then the list will not be set and previous values remain unchanged. For more information about defining the master clock fallback list, see Section 2.10, Clock Master Fallback List.
The function parameters are defined as follows:
pncmBus pointer to the a structure containing a specific bus name, for example, "Bus-0" pfallbackList pointer to device list to be set in the clock fallback list Cautions
NCM Device structure to be passed in is of a single link list form.
Currently, only one bus is supported. Therefore, the parameter pncmBus should equal "Bus-0".
The clock fallback list is created in order of user's preference. The first device listed will be the Primary Clock Master, the second device listed will be the Secondary Clock Master, the third device listed will be the next fallback reference clock, and each subsequent device listed will be considered by the system, in order, as a fallback clock source. The list will end with an NCMString = NULL.
If only one device is defined in the list, this device will be the Primary Clock Master, and the system will select the Secondary Clock Master. If no devices are defined, the system will choose both the Primary and Secondary Clock Master.
Example
#include "NCMApi.h" ... // // Prepare inputs // NCMDevice bus; device.name = "Bus-0"; device.next = NULL; NCMDevice * pfallbackList; NCMDevice * pCurrList = pfallbackList; //Populate List while ( ) { // Populate List ... pCurrList = pCurrList->next; pCurrList->next = NULL; } // // Execute // NCMRetCode ncmRc = NCM_SetClockMasterFallbackList( &bus, pfallbackList ); if ( ncmRc != NCM_SUCCESS ) { // Process error ... }Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation