NCM_SetTDMBusValue( )
Description | Cautions | Example | Error Codes | See Also
NCM_RetCode NCM_SetTDMBusValue(pncmBus, pvariable, pvalue )
NCMDevice *pncmBus NCMVariable *pvariable NCMValue *pvalue NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_SetTDMBusValue( ) function sets the values of the TDM bus. Variables under the TDM Bus family with "User Defined" in the parameter name can be changed by the user. Those with "Resolved" cannot.
For additional information about using this function, see Section 2.10, Clock Master Fallback List.
The function parameters are defined as follows:
Cautions
If you pass in a variable that cannot be modified, the function will return NCME_ACCESS_DENIED.
The variable must be a valid parameter under the TDM Bus configuration; otherwise, the function returns NCME_INVALID_INPUTS.
Currently, only a single bus is supported. Therefore, the bus name for the parameter pncmBus should be "Bus-0".
Example
#include "NCMApi.h" ... // // Prepare inputs // NCMDevice bus; device.name = "Bus-0"; device.next = NULL; NCMVariable variable; variable.name = "Derive Primary Clock From (User Defined)"; variable.next = NULL; NCMValue value; value.name = "InternalOscillator"; value.next = NULL; // // Execute // //set Primary Master FRU clock to Internal Oscillator NCMRetCode ncmRc = NCM_SetTDMBusValue( &bus, &variable, &value ); if ( ncmRc != NCM_SUCCESS ) { // Process error ... } ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation