1.3.3.1.13 MAC_ScanConfirm Typedef

C

typedef void (*MAC_ScanConfirm)(MAC_SCAN_CONFIRM_PARAMS *scParams);

Summary

Pointer to a Scan Confirm Event handler function.

Description

This data type defines the required function signature for the MAC Scan Confirm event handling callback function. A client must register a pointer using the event handling function whose function signature (parameter and return value types) matches the types specified by this function pointer in order to receive Scan Confirm events back from module.

Parameters

ParamDescription
scParamsPointer to structure containing parameters related to Confirm. See MAC_SCAN_CONFIRM_PARAMS

Returns

None.

Example

App_ScanConfirm(MAC_SCAN_CONFIRM_PARAMS *params)
{
    // Check result
    if (params->status != MAC_STATUS_SUCCESS)
    {
        // Handle Scan error
    }
    else
    {
        // Scan performed correctly
        // Check received Beacons
    }
}

Remarks

None.