
Description | Example | Errors | See Also
Name: |
long ATDV_LASTERR(dev) | |
Inputs: |
int dev |
|
Returns: |
AT_FAILURE if an invalid device handle; | |
|
otherwise a valid error number | |
Includes: |
srllib.h | |
Category: |
standard attribute | |
The ATDV_LASTERR( ) function returns a long value that indicates the last error that occurred on this device. The errors are defined in the technology-specific header (.h) file of the specified device.
Parameter |
Description |
dev |
Device handle, the handle returned by the technology-specific xx_open( ). |
#include <windows.h>
#include <srllib.h>
#include <dxxxlib.h>
main()
{
int dxxxdev;
int parm = ET_RON;
/* Open dxxx channel device */
if(( dxxxdev = dx_open( "dxxxB1C1", 0 )) == -1 ){
printf( "Error: cannot open device\n" );
exit( 1 );
}
/*Attempt to set a board level parameter on a channel device-will fail */
if( dx_setparm( dxxxdev, DXBD_R_EDGE, &parm ) == -1 ){
printf( "The last error on the device was 0x%x\n",
ATDV_LASTERR( dxxxdev ));
}
}
This function returns AT_FAILURE if an invalid device handle is specified in dev.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation