# WM_EndParent

## Syntax

      #include <nitro/wm.h>

      WMErrCode WM_EndParent( WMCallbackFunc callback );

## Arguments

callback | Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler.

## Return Values

Returns the results of the `WMErrCode` enumerated type process.

## Description

Ends communication with all connected children After this function disconnects from all connected children, it returns to the `IDLE` state. If the return value for this function is `WM_ERRCODE_OPERATING`, a callback is generated after the communication termination process is complete. Unlike `WM_Reset` which deletes all connect information, `WM_EndParent` does not delete the information that existed when the systems were connected.

## See Also

`WM_SetParentParameter`, `WM_StartParent`

## Revision History

2005/06/08 Added statement about callbacks being called from the interrupt handler.
2004/10/22 Changed return value type.
2004/07/28 Added to Description
2004/07/23 Initial version.

CONFIDENTIAL