Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 361
receive data on a specified channel — dx_RxIottData( )
dx_RxIottData( )
receive data on a specified channel
!
!!
! Description
The dx_RxIottData( ) function is used to receive data on a specified channel. The data may come
from any combination of data files, memory, or custom devices. The wType parameter specifies the
type of data to be received, for example ADSI data.
After dx_RxIottData( ) is called, data reception continues until one of the following occurs:
dx_stopch( ) is called
the data requirements specified in the DX_IOTT are fulfilled
the channel detects end of FSK data
one of the conditions in the DV_TPT is satisfied
If the channel detects end of FSK data, the function is terminated. Use ATDX_TERMMSK( ) to
return the reason for the last I/O function termination on the channel. Possible return values are:
TM_EOD
End of FSK data detected on receive
TM_ERROR
I/O device error
TM_MAXDATA
Maximum data reached; returned when the last I/O function terminates on DX_MAXDATA
TM_MAXTIME
Maximum function time exceeded
Name: int dx_RxIottData(chdev, iottp, lpTerminations, wType, lpParams, mode)
Inputs: int chdev
valid channel device handle
DX_IOTT *iottp
pointer to I/O Transfer Table
DV_TPT *lpTerminations
pointer to Termination Parameter Table
int wType
data type
LPVOID lpParams
pointer to data type-specific information
int mode
function mode
Returns: 0 if successful
-1 if error
Includes: srllib.h
dxxxlib.h
Category: Analog Display Services Interface (ADSI)
Mode: asynchronous or synchronous
Platform: DM3, Springware