(Page 11 of 11 in this chapter)


CONFIG_GAIN

Description

Configures the gain coming from the line at the specified line interface. (Applicable only to boards with conferencing capability.)

To invoke this command, include it in a CxDriverCommand function call, as described in section 5.7 above.

Parameters

p[2] array of 2 SWPINTs

SWPINT   p[0] ;   /* timeslot of line interface to configure              */
SWPINT p[1] ; /* gain from line (see table for mapping) */

# of Parameters

2

Return Values

SUCCESS, or an error code from swpath.h. (See the SwitchPath Technical Reference Manual for more information about this file.)

Details

The allowed values for gain are: 0 dB, -3 dB, -6 dB, -9 dB, -12 dB.

Set the value of p[1] according to the following table:
Gain Setting

p[1] Value

0 dB

0x00

-3 dB

0x03

-6 dB

0x06

-9 dB

0x09

-12 dB

0x0C

Availability

OS/2 UNIX Windows NT

Example

This example sets the gain to -3 dB at line interface 5.

SWPINT p[2];

p[0] = 4 ;
p[1] = 0x03 ;

CxDriverCommand( SwHd, CONFIG_GAIN, (SWPINT FAR *) p, sizeof(op)/sizeof(SWPINT) ) ;


(Page 11 of 11 in this chapter)


Tech_Support@nmss.com
Copyright © 1996, Natural MicroSystems, Inc. All rights reserved.