#include <nitro/wm.h>
WMErrCode WM_MeasureChannel(
WMCallbackFunc callback
u16 ccaMode ,
u16 edThreshold ,
u16 channel ,
u16 measureTime
);
callback |
Designates the callback function to call when the asynchronous process completes. This callback is called from within the interrupt handler. |
ccaMode | Select the measure mode by using a value below (0-3).
|
edThreshold | If not in carrier sense mode, specifies the lower limit of signal strength to measure. The value should be from 0 through 61 (-60 dBm to -80 dBm). |
channel | Specifies channel to measure. Use a value in the range of 1-14. |
measureTime | Specifies the measure period in units of 1 ms. The value should be 1 or higher. |
Returns the results of the WMErrCode
enumerated type process.
This measures the electrical usage rate of the specified channel The function is only executable when the WM is in the IDLE
state. If the API return value is WM_ERRCODE_OPERATING
, a callback occurs after the measurement of the electrical usage rate is complete.
06/08/2005 Added statement about callbacks being called from the interrupt handler.
03/02/2005 Added to Description.
10/22/2004 Changed return value type.
08/11/2004 Initial version