Previous PageTable Of Contents../index.htmlIndexNext Page

ms_listen( )

Description | Cautions | Example | Errors | See Also

Name:

int ms_listen(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_listen( ) function connects the receive of a station to an SCbus time slot. This function uses the information stored in the SC_TSINFO structure to connect the digital receive (listen) channel (T-1/E-1 time slot) to an SCbus time slot. This functon sets up a half-duplex connection. For a full-duplex connection, the receive (listen) channel of the other device must be connected to the digital transmit channel.

Parameter

Description

devh:

The board device handle.

tsinfop:

The pointer to the SCbus time slot information structure.

A pointer to the SC_TSINFO structure is passed to the function. It contains two fields: the first field specifies the total number of SCbus time slots to which the connection is to be made, and the second is a pointer to an array which contains the SCbus time slots (between 0 and 1023) to be connected to the receive of the station device. 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. The first element of the array will contain a valid SCbus time slot number (0 to 1023) which was obtained by issuing the appropriate xx_getxmitslot( ) function call (xx = ag, dt, dx or fx).

NOTES:
1. An MSI/SC station device can listen to only one time slot at a time. However, multiple devices may listen to a time slot at the same time.
2. Dialogic recommends that you unlisten before invoking this function.

Top Of PageCautions

This function fails when:

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