WMIndCallback

Definitions

#include <nitro/wm.h>
typedef struct WMIndCallback
{ 
u16         apiid;
u16         errcode;
u16         state;
u16     reason;

} WMIndCallback;

Elements

apiid This is the ID of the API that acts as the source for the callback generation. It is synonymous to the WMApiid enumerated type. In this case, it is fixed in WM_APIID_INDICATION.
errcode This is the result of the asynchronous process. It is synonymous to the WMErrCode enumerated type.
state If errcode is WM_ERRCODE_SUCCESS, the WM Cause Code generated by the callback is stored. There are six cause codes that can be generated:
WM_STATECODE_BEACON_RECV、WM_STATECODE_DISASSOCIATE、WM_STATECODE_REASSOCIATE、WM_STATECODE_AUTHENTICATE、WM_STATECODE_FIFO_ERROR、WM_STATECODE_INFORMATION。
reason The cause code is stored according to the state value.

Description

The structure that is passed to the callback function that is set in WM_SetIndCallback. If the state is STATECODE_BEACON_RECV, detailed beacon info can be obtained by casting to WMBeaconRecvIndCallback.

Revision History

07/29/2005 Added WM_STATECODE_INFORMATION to the list of causes.
02/01/2005 Added WM_STATECODE_FIFO_ERROR to the list of causes.
11/10/2004 Added a description of the reason member.
08/02/2004 Standardized structure names
07/29/2004 Initial version.