Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 397
set physical parameters of a channel or board device — dx_setparm( )
!
!!
! Errors
If the function returns -1, use the Standard Runtime Library (SRL) Standard Attribute function
ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive
error message. One of the following error codes may be returned:
EDX_BADPARM
Invalid parameter
EDX_SYSTEM
Error from operating system; use dx_fileerrno( ) to obtain error value
!
!!
! Example
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int bddev, parmval;
/* Open the board using dx_open( ). Get board device descriptor in
* bddev.
*/
if ((bddev = dx_open("dxxxB1",NULL)) == -1) {
/* process error */
}
/* Set the inter-ring delay to 6 seconds (default = 8) */
parmval = 6;
if (
dx_setparm(bddev, DXBD_R_IRD, (void *)&parmval)
== -1) {
/* process error */
}
/* now wait for an incoming ring */
. . .
}
!
!!
! See Also
dx_getparm( )