1.3.4.1.12 MAC_PLC_ScanRequest Function
C
void MAC_PLC_ScanRequest
(
    MAC_SCAN_REQUEST_PARAMS *scanParams
);Summary
The MAC_PLC_ScanRequest primitive sets MAC PLC layer in Network Scan mode.
Description
Scan operation asks MAC PLC 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_PLC_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_PLC_ScanRequest(¶ms);
// Wait for Scan ConfirmRemarks
None.
