BLE_GAP_SetExtAdvParams
C
uint16_t BLE_GAP_SetExtAdvParams(BLE_GAP_ExtAdvParams_T *p_extAdvParams, int8_t *p_selectedTxPower);Description
Configures the extended advertising parameters.
Note
This API is part of the extended advertising feature and is disallowed if any legacy advertising feature API has been used prior. See Categories of advertising APIs and events for advertising API details. Initialization with BLE_GAP_AdvInit or BLE_GAP_ExtAdvInit is required before calling this API. When using coded PHY, the default coding scheme is S=8 (S: Transmitted Symbols). Use BLE_GAP_SetExtAdvCodingScheme to change the coding scheme.
If legacy advertising PDU types are being used and the advertising set already contains data, the type shall be one that supports advertising data, and the amount of data shall not exceed 31 bytes.
If extended advertising PDU types are being used, then:
- High duty cycle directed connectable advertising shall not be used (bit 3 = 0).
Parameters
| Parameter | Description |
|---|---|
| [in] p_extAdvParams | Pointer to the structure containing extended advertising parameters. See BLE_GAP_ExtAdvParams_T. |
| [out] p_selectedTxPower | Pointer to the variable where the selected transmit power level will be stored. (Unit: dBm) |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully configures the extended advertising parameters. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
| MBA_RES_INVALID_PARA | The parameters provided are invalid. |
| MBA_RES_COMMAND_DISALLOWED | Command disallowed due to a conflicting operation or state. |
