#include <nitro/wm.h>typedef struct WMIndCallback
{
u16 apiid;
u16 errcode;
u16 state;
u16 reason;
} WMIndCallback;
apiid |
ID of the API that acts as the source for the callback generation. It is equivalent to the WMApiid enumerated type.
In this case, it is fixed in WM_APIID_INDICATION.
|
errcode |
Result of the asynchronous process. It is equivalent 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. |
The structure that is passed to the callback function that is set in WM_SetIndCallback. If the state is STATECODE_BEACON_RECV, detailed beacon information can be obtained by casting to WMBeaconRecvIndCallback.
2005/07/29 Added WM_STATECODE_INFORMATION to the list of causes.
2005/02/01 Added WM_STATECODE_FIFO_ERROR to the list of causes.
2004/11/10 Added a description of the reason member.
2004/08/02 Standardized structure names.
2004/07/29 Initial version.
CONFIDENTIAL