WM_End

C Specification

#include <nitro/wm.h>

WMErrCode WM_End( 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

Stops all wireless related features and exits the WM library This function is executable only when the WM is in the IDLE state. If the return value for the API is WM_ERRCODE_OPERATING, a callback is generated after the termination process is complete. In such cases, WM library returns to the state it was in prior to initialization when the callback is generated. The work buffer used by the library is also released. To use the WM again, restart from WM_Initialize. Note that this function is a combination of the WM_PowerOff, WM_Disable, and WM_Finish functions. Use these functions separately for low-level control of the termination process.

See Also

WM_Initialize, WM_Init, WM_SetIndCallback, WM_Reset, WM_PowerOff, WM_Disable, WM_Finish

Revision History

06/08/2005 Added statement about callback being called from the interrupt handler.
10/22/2004 Changed type of return value.
10/21/2004 Changed description of state during callback generation.
09/11/2004 Added description about feature division function group.
07/29/2004 Added to Description
07/23/2004 Initial version