NCM_AddThirdPartyDevice( )
Description | Cautions | Example | Error Codes | See Also
Description
The NCM_AddThirdPartyDevice( ) function adds a third party device to the Intel® Dialogic system. The function uses the NCM_TDM_BUSCAPS data structure to define the TDM bus capabilities of the third party device. The TDM bus capabilities indicate the following:
- bus type (H.100, H.110 or SCbus)
- if the device is capable of being defined as the primary clock master and/or the secondary clock master
- clock rate (for SCbus systems only)
The eMasterStatus parameter actually sets the TDM bus status of the third party device.
The function parameters are defined as follows:
Cautions
- You cannot set the pDeviceName parameter to NULL.
- You must ensure that each third party device that is added to the system has a unique device name. Intel® Dialogic recommends embedding a "ThirdPartyDevice" prefix to any third party device name that is added to the system. For example, if your third party board is from XYZ company, Intel® Dialogic recommends using "ThirdPartyDevice-XYZnnn" as the device name, where nnn is a device number or an identifiable string.
Example
#include "NCMApi.h" NCM_TDM_BUSCAPS busCAps; NCMRetCode ncmRc=NCM_SUCCESS; NCMMasterStatus clockStatus=NCM_PRIMARY; NCMDevice deviceName; Char DeviceString[] = "ThirdPartyDevice-XYZ#1"; deviceName.name = (char *) DeviceString; deviceName.next = NULL; //adding a third party device that is only SCBus/H100 capable BusCaps.structVersion = NCM_BUSCAPS_VER_0100; BusCaps.bH100MasterCapable = true; BusCaps.bH100SlaveCapable = true; BusCaps.bH110MasterCapable = false; BusCaps.bH110SlaveCapable = false; BusCaps.bScbusMasterCapable = true; BusCaps.bScbusSlaveCapable = true; BusCaps.bMvipMasterCapable = false; BusCaps.bMvipSlaveCapable = false; BusCaps.bScbus2MhzCapable = false; BusCaps.bScbus4MhzCapable = true; BusCaps.bScbus8MhzCapable = true //call NCM API function: ncmRc = NCM_AddThirdPartyDevice(deviceName, busCaps, clockStatus); if (ncmRc ! = NCM_SUCCESS) { /*process error*/ } else { //process successful function call } ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation