(Page 26 of 29 in this chapter) Version
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 CTAERR_FUNCTION_NOT_AVAIL 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 26 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.