Previous PageTable Of Contents../index.htmlIndexNext Page

dt_settssig( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_settssig(devh,bitmask,action)

Inputs:

int devh

  Digital Network Interface logical time slot device handle

 

unsigned short bitmask

  signaling bits to change

 

int action

  set, add, or subtract bitmask

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

Time Slot Signaling

Mode:

synchronous

Top Of PageDescription

The dt_settssig( ) function sets or clears the transmit for the time slot requested.

Parameter

Description

devh:

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

bitmask:

Specifies which signaling bits to change. All signaling bits may be changed with one function call if the bitmask values are logically ORed together as in the example. The possible values for the bitmask parameter are:

 

  DTB_ABIT - "A" signaling bit

 

  DTB_BBIT - "B" signaling bit

 

  DTB_CBIT - "C" signaling bit (E-1 only)

 

  DTB_DBIT - "D" signaling bit (E-1 only)

action:

Specifies whether the signaling bits in the mask should be set or cleared, (i.e., set to one or set to zero). The possible values are:

 

  DTA_SETMSK - set bits specified in bitmask and clear all other bits.

 

  DTA_ADDMSK - set bits specified in bitmask. This will not affect other bits that are currently set.

 

  DTA_SUBMSK - clear bits in specified bitmask. This will not affect other bits that are currently set.

Top Of PageCautions

This function will fail under the following conditions:

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 on SRL functions. 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