
Description | Cautions | Example | Errors | See Also
Name: |
int ATD4_BDTYPE(devh) | |
Inputs: |
int devh |
|
Returns: |
board type |
|
Includes: |
D42LIB.H | |
Mode: |
synchronous | |
The ATD4_BDTYPE( ) function returns the board type of the queried device.
Board Type |
Description |
TYP_D/82L4 |
Lucent Definity 75/85 |
TYP_D/82L2 |
Lucent Definity G3 |
TYP_D/82SR Siemens ROLM Series
TYP_D/82SH Siemens Hicom
TYP_D/82SX MITEL SX Series
TYP_D/82NS |
Nortel Norstar | |
TYP_D/82M1 |
Nortel Meridian 1 | |
Parameter |
Description | |
devh: |
specifies the valid board device descriptor obtained by a call to dx_open( ) | |
None.
void main(void)
{
int devh;
int rc = 0;
/* Open Board Device */
if ( (devh = dx_open("dxxxB1C1",NULL))==-1)
{
printf("Error dx_open()\n");
exit(-1);
} /* End dx_open */
/* Check Board Type */
if ( (rc = ATD4_BDTYPE(devh)) == -1)
{
printf("Error ATD4_BDTYPE()\n");
dx_close(devh);
exit(-1);
}
printf("Board Type = %d\n",rc);
dx_close(devh);
} /* End main */
If this function returns -1 to indicate a failure, one of the following (most common) codes will be contained in dx_errno. For a complete list of error codes and definitions, refer to Appendix C.
EDX_TIMEOUT |
Firmware does not respond within a specified time |
ED42_BADDEVICE |
Invalid or wrong device handle |
ED42_UNSUPPORTED |
Function not supported on this board |
ED42_UNKNOWNBOARD |
Unknown D/42 board type |
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation