MiApp_InitChannelHopping Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiApp_InitChannelHopping Function
C
BOOL MiApp_InitChannelHopping(
    DWORD ChannelMap
);
Description

This is the primary user interface function for the application to do energy scan to locate the channel with least noise. If the channel is not current operating channel, process of channel hopping will be started.

Preconditions

Transceiver has been initialized

Parameters
Parameters 
Description 
DWORD ChannelMap 
The bit map of the candicate channels which can be hopped to 
Returns

a boolean to indicate if channel hopping is initiated

Example
// if condition meets, scan all possible channels and hop 
// to the one with least noise
MiApp_InitChannelHopping(0xFFFFFFFF);

 

Remark: The operating channel will change to the optimal channel with least noise

Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.