
Description | Cautions | Example | Errors
Name: |
long ATDX_DEVTYPE(dev) | |
Inputs: |
int dev |
|
Returns: |
device type if successful | |
Includes: |
srllib.h | |
Category: |
Extended Attribute | |
The ATDX_DEVTYPE( ) function returns device type of the board or channel dev.
The function parameter is defined as follows:
Parameter |
Description |
dev |
specifies the valid Dialogic device handle obtained when a board or channel was opened using dx_open( ). |
Possible return values are the following:
None.
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int bddev;
long devtype;
/* Open the board device */
if ((bddev = dx_open("dxxxB1",NULL)) == -1) {
/* Process error */
}
if((devtype = ATDX_DEVTYPE(bddev)) == AT_FAILURE) {
/* Process error */
}
if(devtype == DT_DXBD) {
printf("Device is a Board\n");
}
/* Continue processing */
.
.
}
This function will fail and return AT_FAILURE if an invalid board or channel device handle is specified in dev.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation