Previous PageTable Of Contents../index.htmlIndexNext Page

ms_getxmitslot( )

Description | Cautions | Example | Errors | See Also

Name:

int ms_getxmitslot(devh,tsinfop)

Inputs:

int devh

  station handle

 

SC_TSINFO *tsinfop

  pointer to the SCbus time slot information structure

Returns:

0 on success

 

-1 on failure

Includes:

srllib.h

 

dtilib.h

 

msilib.h

Category:

SCbus Routing

Mode:

asynchronous

Top Of PageDescription

The ms_getxmitslot( ) function returns the SCbus time slot information contained in a SC_TSINFO structure that includes the number of the SCbus time slot connected to the MSI/SC station transmit channel.

Parameter

Description

devh:

The station device handle.

tsinfop:

The pointer to the SCbus time slot information structure.

On return from the function, the SC_TSINFO structure contains the number of SCbus time slots connected to the transmit of the station and points to the array that contains the SCbus time slots (between 0 and 1023). The SC_TSINFO structure is declared as follows:

For MSI/SC station devices, the sc_numts element of the SC_TSINFO array should be set to 1. The sc_tsarrayp must point to an array of type long and, upon return, its first element will contain the SCbus time slot on which the station is transmitting data.

NOTE:
The transmit of an MSI/SC station device can be connected to only one external SCbus time slot.

Top Of PageCautions

This function fails when:

Even though the ms_getxmitslot( ) function provides a valid SCbus time slot of where the station transmit channel connects, the actual transmission of data will not occur until the station receive (listen) channel is connected to a valid SCbus time slot.

Top Of PageExample

Top Of PageErrors

If the function returns a -1 indicating an error, the error code may be retrieved by calling the SRL standard attribute function ATDV_LASTERR( ). A more descriptive error message may be retrieved by using the function ATDV_ERRMSGP( ).

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated February, 2002