Version

|
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
|

#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));
}
Version