Intel 05-1832-002 User Manual

Page of 564
38
Voice API for Windows Operating Systems Library Reference — November 2003
ag_getxmitslot( ) — get TDM bus time slot number of analog transmit channel
ag_getxmitslot( )
get TDM bus time slot number of analog transmit channel
!
!
!
Description
The ag_getxmitslot( ) function provides the TDM bus time slot number of the analog transmit 
channel. This information is contained in an SC_TSINFO structure that also includes the number 
of the time slot connected to the analog transmit channel. For more information on this structure, 
see 
Note:
Routing convenience function nr_scroute( ) includes ag_getxmitslot( ) functionality. 
An analog channel can transmit on only one TDM bus time slot. 
!
!
!
Cautions
This function fails if an invalid channel device handle is specified. 
!
!
!
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
Parameter error
EDX_SH_BADCMD
Command is not supported in current bus configuration
Name:
int ag_getxmitslot(chdev, sc_tsinfop)
Inputs:
int chdev
valid analog channel device handle
SC_TSINFO *sc_tsinfop
pointer to TDM bus time slot information structure
Returns:
0 on success
-1 on error
Includes:
srllib.h
dxxxlib.h
Category:
Routing
Mode:
synchronous
Platform:
Springware 
Parameter
Description
chdev 
specifies the valid analog channel handle obtained when the channel was 
opened using 
sc_tsinfop 
specifies a pointer to the data structur