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
Param | Description |
---|---|
status | Result of requested scan operation |
ScanType | Type of scan performed |
ChannelPage | The channel page on which the scan was performed |
UnscannedChannels | Bitmap of unscanned channels |
ResultListSize | Number of elements in ResultList |
ResultList | Pointer 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.