Previous PageTable Of Contents../index.htmlIndexNext Page

dcb_getbrdparm( )

Description | Cautions | Example | Errors | See Also

Name:

int dcb_getbrdparm(devh,param,valuep)

Inputs:

int devh

unsigned char param

void * valuep

  DCB/SC board device handle

  device parameter defined name

  pointer to returned 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_getbrdparm( ) function retrieves a DCB/SC board parameter value. Each parameter has a symbolic name that is defined in dcblib.h. The parameters are explained in the dcb_setbrdparm( ) function description.

Parameter

Description

devh:

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

param:

The parameter to be examined.

valuep:

Pointer to the integer or DCB_VOL structure for storage of the parameter value.

The valid values for param and valuep are shown below:

Parameter

Description

MSG_ACTID

Indicates Active Talker feature status. Possible values are ACTID_ON or ACTID_OFF. ACTID_OFF is the default.

MSG_VOLDIG

Defines the volume control status and volume up/down/reset digits.

The following structure contains the volume control status and digits:

The digits for volume control are not received by the application. The vol_control field indicates whether the volume control is turned on or off. The vol_up field indicates the digit used for increasing the volume level. vol_down indicates the digit used for decreasing the volume. vol_reset indicates the digit used to set the volume to its default level. By default, vol_control is OFF.

Top Of PageCautions

  1. The value of the parameter returned by this function is currently an integer or an DCB_VOL structure. valuep is the address of the value, but should be cast as a void pointer when passed in the value field.
  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