Switching Service Developer's Reference Manual (6421-10): Alphabetical Function Reference
(Page 11 of 28 in this chapter)
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 or on the MC1 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.)
- In MVIP-90 mode, the bus field is ignored and the stream and timeslot fields are interpreted as MVIP-90 streams and timeslots.
- Refer to Section 4.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 myDisconnectVideo(SWIHD agt1hd, 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(agt1hd, outputs, count);
}
(Page 11 of 28 in this chapter)
tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights
reserved.