BLE_GAP_ExtScanInit
C
uint16_t BLE_GAP_ExtScanInit(uint16_t maxDataLen, uint8_t maxNumOfSecPkts);
Description
Initializes the BLE GAP extended scanning module.
Note
BLE_GAP_ScanInit must be called prior to enabling this module.
Parameters
Parameter | Description |
---|---|
[in] maxDataLen | The maximum PDU payload size that the scanner can receive. See Extended scan data length. |
[in] maxNumOfSecPkts | The maximum number of advertising packets on the secondary channel that the scanner can receive. See Maximum secondary adv for extended scan. A value of 0 adjusts the maximum number automatically. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully initializes the BLE GAP extended scanning module. |
MBA_RES_OOM | Internal memory allocation failure occurred. |