Table of Contents Index NMS Glossary Previous Page Next Page Version


Chapter 6

Other Configurations


6.1 Introduction
6.2 Stream Speed Configuration
6.3 Board and Driver Configuration

6.1 IntroductionTop of Page

In addition to clock configurations, the Switching service allows you to configure:

6.2 Stream Speed ConfigurationTop of Page

The following table lists when to use the Switching service stream speed configuration functions:
If you want to...

Then use...

Identify all H.100 streams operating at one specified speed

swiGetStreamsBySpeed

Configure the speed of one or more streams of the H.100 bus

swiConfigStreamSpeed

These functions are used to query and configure the speed of an H.100 stream on an H.100 bus. The speed is specified in millions of bits per second. They can also be used to configure parts of the H.100 bus to be compatible with the MVIP bus.

6.3 Board and Driver ConfigurationTop of Page

The Switching service provides functions for board-specific and driver-specific configuring and querying. These functions are for special device-specific and board-specific needs.
If you want to...

Then use...

Configure stream-specific characteristics of a local device

swiConfigLocalStream

Configure stream-specific and timeslot-specific characteristics of a local device

swiConfigLocalTimeslot

Obtain vendor-specific information about the board

swiGetBoardInfo

Retrieve general and vendor-specific information about the device driver

swiGetDriverInfo

Retrieve stream-specific characteristics of a local device

swiGetLocalStreamInfo

Retrieve stream-specific and timeslot-specific characteristics of a local device

swiGetLocalTimeslotInfo

Note: swiGetLocalStreamInfo, swiGetLocalTimeslotInfo, swiConfigLocalStream, and swiConfigLocalTimeslot take board- specific arguments. Refer to the board-specific documentation for the arguments to pass to these functions.

The following code shows how to use swiConfigLocalTimeslot to access the carrier function:

#include "swidef.h"  /*  CT Access Switching service                   */
#include "mvip95.h"  /*  MVIP-95 definitions                   */
#include "nmshw.h"   /*  NMS hardware-specific definitions                     */
*/
DWORD mySetReceiveGain ( SWIHD swihd, SWI_TERMINUS terminus, INT32 gain_dB )
{
     SWI_LOCALTIMESLOT_ARGS  args;
     NMS_LINE_GAIN_PARMS     device ;
     
     args.localstream      = terminus.stream ;
     args.localtimeslot    = terminus.timeslot ;
     args.deviceid         = MVIP95_ANALOG_LINE_DEVICE ;
     args.parameterid      = MVIP95_INPUT_GAIN ;
     
     device.gain  =  gain_dB * 1000  ;
     
     return swiConfigLocalTimeslot (
               /* CT Access switch handle                */ swihd,
               /* target device and config item                */ & args,
               /* buffer (defined by parameterid)                */ (void*) &
device,
/* buffer size in bytes */
sizeof(device));
}



Table of Contents Index NMS Glossary Previous Page Next Page Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.