Previous PageTable Of Contents../index.htmlIndexNext Page

dt_getxmitslot( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_getxmitslot(devh,sc_tsinfop)

Inputs:

int devh

  Digital network interface device time slot

 

SC_TSINFO *sc_tsinfop

  pointer to SCbus time slot information structure

Returns:

0 on success
-1 if error

Includes:

srllib.h
dtilib.h

Category:

SCbus Routing

Mode:

synchronous

Top Of PageDescription

The dt_getxmitslot( ) function returns the SCbus time slot connected to the transmit of a Digital Network Interface device time slot.

NOTE:
The SCbus convenience function nr_scroute( ) includes dt_getxmitslot( ) functionality; see the Voice Programmer's Guide (for Linux or Windows).

Parameter

Description

devh:

Specifies the valid Digital Network Interface time slot device handle returned by a call to dt_open( )

sc_tsinfop:

Specifies the pointer to the data structure SC_TSINFO

The sc_numts member of the SC_TSINFO structure must be initialized with the number of SCbus time slots requested (1 for a Digital Network Interface device time slot). The sc_tsarrayp member of the SC_TSINFO structure must be initialized with a pointer to a valid array. Upon return from the function, the array will contain the number (between 0 and 1023) of the SCbus time slot on which the Digital Network Interface device time slot transmits. The SC_TSINFO structure is declared as follows:

A Digital Network Interface device time slot can transmit on only one SCbus time slot.

Top Of PageCautions

This function will fail when an invalid time slot device handle is specified.

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code or use ATDV_ERRMSGP( ) to obtain a descriptive error message. The error codes returned by ATDV_LASTERR( ) are:

Top Of PageSee Also

In the SCbus Routing Function Reference:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001