# WMCallbackFunc

## Definition

  `#include <nitro/wm.h>`

      typedef void ( *WMCallbackFunc )( void* arg );

## Arguments

`arg` | Pointer to a structure that will be passed to a callback function. The corresponding structure that is passed by each calling function is shown below.
The calling function | Structure to be passed.
`WM_StartParent` | `WMStartParentCallback*`
`WM_StartScan` | `WMStartScanCallback*`
`WM_StartScanEx` | `WMStartScanExCallback*`
`WM_StartConnect` `WM_StartConnectEx` | `WMStartConnectCallback*`
`WM_Disconnect`, `WM_DisconnectChildren` | `WMDisconnectCallback*`

`WM_SetMPParameter`
`WM_SetMPFrequency`
`WM_SetMPParentSize`
`WM_SetMPChildSize`
`WM_SetMPTiming`
`WM_SetMPInterval`

`WMSetMPParameterCallback*`

`WM_StartMP` | `WMStartMPCallback*`
`WM_SetMPDataToPort` `WM_SetMPDataToPortEx` `WM_SetMPData` | `WMPortSendCallback*`
`WM_StartDCF` | `WMStartDCFCallback*`
`WM_MeasureChannel` | `WMMeasureChannelCallback*`
`WM_GetWirelessCounter` | `WMGetWirelessCounterCallback*`
`WM_SetIndCallback` | `WMIndCallback*`
`WM_SetPortCallback` | `WMPortRecvCallback*`
Common to other asynchronous functions | `WMCallback*`

## Return Values

None.

## Description

Format of a user callback function that is called either on completion or during an asynchronous process that was started by an asynchronous WM function. It takes as an argument a pointer to the structure where the processing results of an asynchronous process are stored.

## Revision History

2005/11/24 Added `WM-SetMPParameter` callback.
2005/03/04 Added `WM_SetMPData*` callback.
2005/02/14 Added callback for use during `WM_StartScanEx`.
2004/10/26 Added Disconnect callbacks.
2004/08/11 Added callback types.
2004/08/02 Standardized structure names.
2004/07/29 Initial version.

CONFIDENTIAL