2.4.2 USR_MLME_ScanConf callback Function

C

void USR_MLME_ScanConf(uint8_t status, uint8_t ScanType,uint8_t ChannelPage, uint32_t UnscannedChannels, uint8_t ResultListSize, void *ResultList)

Summary

Callback function that must be implemented by application (NHLE) for MAC service MLME-SCAN.confirm.

Description

This function implemented by application (NHLE) for MAC service MLME-SCAN.confirm.

Precondition

WPAN_Init() should have been called before calling this function.

Parameters

ParamDescription
statusResult of requested scan operation
ScanTypeType of scan performed
ChannelPageThe channel page on which the scan was performed
UnscannedChannelsBitmap of unscanned channels
ResultListSizeNumber of elements in ResultList
ResultListPointer to array of scan results

Returns

None.

Example

void USR_MLME_ScanConf(uint8_t status, uint8_t ScanType,uint8_t ChannelPage, uint32_t UnscannedChannels, uint8_t ResultListSize, void *ResultList)
{
    status = status;
    ScanType = ScanType;
    ChannelPage = ChannelPage;
    UnscannedChannels = UnscannedChannels;
    ResultListSize = ResultListSize;
    ResultList = ResultList;
}

Remarks

There is weak function for this callback. User has to define own implementation for required operation on the reception of particular callback.