NCM_GetClockMasterFallbackList( )
Description | Cautions | Example | Error Codes | See Also
Description
The NCM_GetClockMasterFallbackList( ) function returns the clock fallback list. This function fills a pointer to a pointer with the beginning address of a list of devices in the clock fallback list. In addition, this function also returns the total number of devices in the list. For more information about the master clock fallback list, see Section 2.10, Clock Master Fallback List.
The function parameters are defined as follows:
Cautions
Currently, only a single bus is supported. Therefore, the bus name for the parameter pncmBus should be "Bus-0".
The pnumInList includes both the Primary Clock Master device and the Secondary Clock Master device.
The DCM API allocates memory for the data returned by this function. To avoid memory leaks, the client application must deallocate this memory by calling the NCM_Dealloc( ) or NCM_DeallocValue( ) function.
Example
#include "NCMApi.h" ... // // Prepare inputs // NCMDevice bus; device.name = "Bus-0"; device.next = NULL; NCMValue * pfallbackList = NULL; int total; // // Execute // NCMRetCode ncmRc = NCM_GetClockMasterFallbackList( &bus, &total, &pfallbackList ); if ( ncmRc == NCM_SUCCESS ) { NCMValue * pCurrList = pfallbackList; while ( pCurrList != NULL ) { // Process list ... pCurrList = pCurrList ->next; } } else { // Process error ... } // Deallocate memory NCM_Dealloc( pfallbackList );Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation