Previous PageTable Of Contents../index.htmlIndexNext Page

dt_setparm( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_setparm(devh,param,valuep)

Inputs:

int devh

  Digital Network Interface logical board device handle

 

unsigned long param

  device parameter defined name

 

void* valuep

  pointer to device parameter value

0Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

Parameter Setting

Mode:

synchronous

Top Of PageDescription

The dt_setparm( ) function changes the value of a DNI device parameter.

Parameter

Description

devh:

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

param:

Specifies the parameter value to alter

valuep:

Specifies the address of the integer containing the value to be assigned to the parameter

All time slots on the selected Digital Network Interface device must be closed when this function is called.

Table 6, found in the dt_getparm( ) function description, lists each parameter name, its default value, and a brief description.

Top Of PageCautions

  1. This function will fail under the following conditions:
  2. Changing a Digital Network Interface device parameter affects all the time slots on the logical board. All the time slots on a logical board must be closed when device parameters are altered.
  3. All values of the parameter have to be integers, but since this routine expects a void pointer to valuep, the address must be cast as a void*.

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