Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 419
force termination of currently active I/O functions — dx_stopch( )
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 chdev, srlmode;
/* Set SRL to run in polled mode. */
srlmode = SR_POLLMODE;
if (sr_setparm(SRL_DEVICE, SR_MODEID, (void *)&srlmode) == -1) {
/* process error */
}
/* Open the channel using dx_open( ). Get channel device descriptor in
* chdev.
*/
if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {
/* process error */
}
/* continue processing */
.
.
/* Force the channel idle. The I/O function that the channel is
* executing will be terminated, and control passed to the handler
* function previously enabled, using sr_enbhdlr(), for the
* termination event corresponding to that I/O function.
* In the asynchronous mode, dx_stopch() returns immediately,
* without waiting for the channel to go idle.
*/
if (
dx_stopch(chdev, EV_ASYNC) ==
-1) {
/* process error */
}
}
!
!!
! See Also
dx_dial( )
dx_getdig( )
dx_play( )
dx_playf( )
dx_playiottdata( )
dx_playtone( )
dx_playvox( )
dx_rec( )
dx_recf( )
dx_reciottdata( )
dx_recvox( )
dx_wink( )
ATDX_TERMMSK( )