# WMCallback

## Definition

  `#include <nitro/wm.h>`

      typedef struct WMCallback
      {
          u16         apiid;
          u16     errcode;
          u16     wlCmdID;
          u16     wlResult;
      } WMCallback;

## Elements

`apiid` | ID of the API that acts as the source for the callback generation. This argument is the same as the `WMApiid` enumerated type.
`errcode` | Result of the asynchronous process. It is equivalent to the `WMErrCode` enumerated type.
`wlCmdID` | If `errcode` is `WM_ERRCODE_FAILED`, this function will store the ID of the command that was in error in the wireless firmware.
`wlResult` | If `errcode` is `WM_ERRCODE_FAILED`, this function will store the code was the source of the error in the wireless firmware.

## Description

This structure is passed to the callback function of a normal WM asynchronous process function.

## Revision History

2004/07/29 Initial version.

CONFIDENTIAL