(Page 4 of 28 in this chapter)


swiCloseSwitch

Description

Closes a switching device and invalidates the specified switch handle.

Prototype

DWORD swiCloseSwitch ( SWIHD swihd)

swihd Handle returned by swiOpenSwitch.

Return Values

Events

Details

This function frees memory associated with the open switch handle and invalidates the handle. If the switch handle was opened with the SWI_ENABLE_RESTORE flag set in swiOpenSwitch, switch block outputs affected by switching calls (using this handle) will be restored to the state they were in when swiOpenSwitch was called.

Refer to Section 3.3, Closing a Switch Handle.

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

Refer to Section 3.3, Closing a Switch Handle for more information.

See Also

swiGetLastError, swiOpenSwitch

Example


void myApplicationShutdown(SWIHD hd[], unsigned count)
{
unsigned i;

for (i = 0; i < count; i++)
{
swiCloseSwitch(hd[i]);
}
}


(Page 4 of 28 in this chapter)


tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights reserved.