1.3.5.1.11 MAC_RF_ScanRequest Function
C
void MAC_RF_ScanRequest ( MAC_SCAN_REQUEST_PARAMS *scanParams );
Summary
The MAC_RF_ScanRequest primitive sets MAC RF layer in Network Scan mode.
Description
Scan operation asks MAC RF layer to send a Beacon Request frame and wait for incoming Beacon frames. During the Scan period, Beacons received will be notified by means of MAC_BeaconNotifyIndication callback. Result is provided in the corresponding Confirm callback.
Precondition
MAC_RF_Init routine must have been called before.
Parameters
Param | Description |
---|---|
scanParams | Pointer to structure containing required parameters for request. See MAC_SCAN_REQUEST_PARAMS |
Returns
None.
Example
MAC_SCAN_REQUEST_PARAMS params = {
.scanDuration = 15
};
MAC_RF_ScanRequest(¶ms);
// Wait for Scan Confirm
Remarks
None.