# WMMeasureChannelCallback

## Definition

  `#include <nitro/wm.h>`

      typedef struct WMMeasureChannelCallback
      {
          u16         apiid;
          u16         errcode;
          u16     wlCmdID;
          u16     wlResult;
          u16         channel;
          u16     ccaBusyRatio;
      } WMMeasureChannelCallback;

## Elements

`apiid` | ID of the API that acts as the source for the callback generation. It is equivalent to the `WMApiid` enumerated type. This argument is fixed to `WM_APIID_MEASURE_CHANNEL`.
`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.
`channel` | When errcode is `WM_ERRCODE_SUCCESS`, the channel that measured signal usage rate is stored.
`ccaBusyRatio` | When errcode is `WM_ERRCODE_SUCCESS`, electrical usage rate in the range of 0-100 is stored.

## Description

This structure is passed to the callback function for the `WM_MeasureChannel` function.

## Revision History

2004/08/11 Initial version.

CONFIDENTIAL