Previous PageTable Of Contents../index.htmlIndexNext Page

dcb_setbrdparm( )

Description | Cautions | Example | Errors | See Also

Name:

int dcb_setbrdparm(devh,param,valuep)

Inputs:

int devh

unsigned char param

void * valuep

  DCB/SC board device handle

  device parameter name

  pointer to parameter value

Returns:

0 on success

-1 on failure

 

Includes:

srllib.h
dcblib.h

dtilib.h

msilib.h

 

Category:

Configuration

Mode:

synchronous

Top Of PageDescription

The dcb_setbrdparm( ) function sets DCB/SC board device parameters.

Parameter

Description

devh:

The valid board device handle returned by a call to dcb_open( ).

param:

The parameter whose value is to be altered.

valuep:

The address of the integer or DCB_VOL structure containing the values to be assigned to the parameter.

Parameters are specified in the param field and may have the IDs and descriptions as shown below:

Active Talker Feature
(MSG_ACTID)

Active talker feature can be enabled or disabled by setting to ACTID_ON or ACTID_OFF.

   

Volume Control Digits
(MSG_VOLDIG)

Defines the volume control status and volume digits. Possible values are UP, DOWN, and RESET digits.

The parameters are disabled by default and must be enabled using the dcb_setbrdparm( ) function.

For MSG_ACTID, valuep points to an integer value. For MSG_VOLDIG, valuep points to an DCB_VOL structure defined as follows:

vol_control indicates whether the volume control is turned ON or OFF. vol_up indicates the digit used for increasing the volume level. vol_down indicates the digit used for decreasing the volume, and vol_reset indicates the digit used to reset the volume level to the default.

Top Of PageCautions

  1. All parameter values must be integers or DCB_VOL structures, but since this routine expects a void pointer to valuep, the address must be cast as a void*.
  2. This function fails when:

Top Of PageExample

Top Of PageErrors

If the function does not complete successfully, it will return -1 to indicate an error. Use the Standard Attribute functions ATDV_LASTERR( ) to obtain the applicable error value, or ATDV_ERRMSGP( ) to obtain a more descriptive error message.

Refer to the error type tables found in Chapter 2 of this guide. Error defines can be found in dtilib.h, msilib.h or dcblib.h.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2000, Dialogic Corporation
All rights reserved
This page generated January, 2002