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


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]);
}
}


Table of Contents Index NMS Glossary Previous Page Next Page (Page 3 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.