Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 29 in this chapter) Version


swiDisableOutput

Description

Resets specified switch block outputs to their idle state.

Prototype

DWORD swiDisableOutput ( SWIHD swihd,
SWI_TERMINUS output[],
unsigned count)

swihd Handle returned by swiOpenSwitch.

output Array of terminus structures containing the outputs to disable.
The terminus structure is:

typedef struct
{
DWORD bus;
DWORD stream;
DWORD timeslot;
} SWI_TERMINUS;
See swiMakeConnection for a description of these fields.

count The number of elements in the output array.

Return Values

Events

Details

This function resets specified switch block outputs to their idle state.

If the switch block output is on the MVIP bus, it is put into the high impedance state. If the switch block output is on the local bus, the timeslots on the local bus are put into a known state. (The driver vendor must publish these states in its customer documentation.)

Note: Under Solaris, the upper limit for the number of terminuses that can be batched in one call is 32.

Refer to Section 5.4, Disabling Output for more information.

If CTAERR_DRIVER_ERROR is returned, call swiGetLastError to retrieve the MVIP device error code.

See Also

swiCloseSwitch, swiGetLastError, swiGetOutputState, swiGetSwitchCaps, swiMakeConnection, swiMakeFramedConnection, swiOpenSwitch, swiResetSwitch, swiSampleInput, swiSendPattern

Example


void myDisconnectTerminus(SWIHD swihd, SWI_TERMINUS output)
{
unsigned count;
SWI_TERMINUS outputs[6];

/* Disconnect 6 consecutive timeslots */
for (count = 0; count < 5; count++)
{
outputs[count].bus = output.bus;
outputs[count].stream = output.stream;
outputs[count].timeslot = output.timeslot + count;
}
swiDisableOutput(swihd, outputs, count);
}


Table of Contents Index NMS Glossary Previous Page Next Page (Page 10 of 29 in this chapter) Version


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