Previous PageTable Of Contents../index.htmlIndexNext Page

dt_xmitwink( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_xmitwink(devh, tmo)

Inputs:

int devh

  Digital Network Interface logical time slot device handle

 

unsigned int tmo

  timeout value

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

Time Slot Signaling

Mode:

synchronous/asynchronous

Top Of PageDescription

The dt_xmitwink( ) function transmits wink signaling to the T-1 or E-1 network span on any of the available signaling bits. The bit to be used and the polarity or beginning state of the wink are configurable through the download parameter file (see the Installation Reference (for Linux or Windows for details). A wink starts by transmitting signaling state 0, then transmits signaling state 1, and returns to signaling state 0. The signaling bit selected must be in the proper state (state 0) when the dt_xmitwink( ) function is called. Also, the time slot must be in signaling insertion mode to transmit a wink.

Board parameters may be set through dt_setparm( ) to control pre-wink delay and transmit wink duration for all time slots simultaneously.

NOTE:
Separate board parameters are provided for setting minimum and maximum receive wink duration. These have no effect on wink transmission.

Parameter

Description

devh:

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

tmo:

Specifies the maximum amount of time in seconds that the function will block while awaiting a response from the Digital Network Interface

Asynchronous Mode

To operate this function in asynchronous (non-blocking) mode, specify 0 for tmo. This allows the application to continue processing while awaiting a completion event from the device. If event handling is set up properly for your application, DTEV_WINKCPLT is returned by the SRL sr_getevttype( ) function when the wink is successfully completed. See Appendix A - Standard Runtime Library for information on event handling.

Synchronous Mode

To run this function in synchronous (blocking) mode, set tmo to the length of time, in seconds, to await a return. If a response is not returned within tmo seconds, an error is returned. A suggested tmo setting for this function is 2.

Top Of PageCautions

  1. This function will fail under the following conditions:
  2. To use this function in asynchronous mode, you must use the SRL sr_enbhdlr( ) function to enable trapping of events and create an event handler to process the completion event returned by the device. The event can be detected by using the SRL event management functions. See Appendix A - Standard Runtime Library for more information on Digital Network Interface event management.

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 (see Appendix A - Standard Runtime Library for more information). The error codes returned by ATDV_LASTERR( ) are:

Error defines can be found in the file dtilib.h.

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 November, 2001