(Page 25 of 28 in this chapter)


swiResetSwitch

Description

Resets the entire switch block to the idle state.

Prototype

DWORD swiResetSwitch ( SWIHD swihd)

swihd Handle returned by swiOpenSwitch.

Return Values

Events

Details

This function resets the entire switch block to the idle state. All the timeslots on the MVIP bus are put into a high impedance state. The timeslots on the local bus are put into a known state. (The driver vendor must publish these states in customer documentation.)

If the switch handle was opened with the SWI_ENABLE_RESTORE flag specified in swiOpenSwitch, this function will return SWIERR_RESTORE_ENABLED and this function will not affect the switch block.

Refer to Section 3.2.2, Enabling Terminus Output State Restoration for more information.

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

Note: This function does not alter the state of the clocks.

See Also

swiGetLastError, swiOpenSwitch

Example


extern SWIHD hd;

void myAppInit(CTAHD ctahd)
{
/* Open the Switch */
swiOpenSwitch(ctahd, "AGSW", 0, 0, &hd);

/* Reset the Switch to defaults */
swiResetSwitch(hd);
}


(Page 25 of 28 in this chapter)


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