Intel 05-1832-002 IP Phone User Manual


 
118 Voice API for Windows Operating Systems Library Reference — November 2003
ATDX_TRCOUNT( ) — return the byte count for the last I/O transfer
ATDX_TRCOUNT( )
return the byte count for the last I/O transfer
!
!!
! Description
The ATDX_TRCOUNT( ) function returns the number of bytes transferred during the last play or
record on the channel chdev.
!
!!
! Cautions
None.
!
!!
! Errors
This function will fail and return AT_FAILURE if an invalid channel device handle is specified in
chdev.
!
!!
! Example
#include <stdio.h>
#include <fcntl.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int chdev;
long trcount;
DX_IOTT iott;
DV_TPT tpt[2];
/* Open the channel device */
if ((chdev = dx_open("dxxxB1C1",NULL)) == -1) {
/* Process error */
}
Name: long ATDX_TRCOUNT(chdev)
Inputs: int chdev
valid channel device handle
Returns: last play/record transfer count if successful
AT_FAILURE if error
Includes: srllib.h
dxxxlib.h
Category: Extended Attribute
Mode: synchronous
Platform: DM3, Springware
Parameter Description
chdev specifies the valid channel device handle obtained when the channel was opened
using dx_open( )