Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference 423
transmit data on a specified channel — dx_TxIottData( )
dx_TxIottData( )
transmit data on a specified channel
!
!!
! Description
The dx_TxIottData( ) function is used to transmit 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 transmitted, for example ADSI data. The iottp parameter specifies the messages
to be transmitted.
Upon asynchronous completion of dx_TxIottData( ), the TDX_TXDATA event is posted. 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 transmit
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
TM_USRSTOP
Function stopped by user
Name: int dx_TxIottData(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