1.1.2.1.1.4.46 BLE_GAP_SetExtAdvCodingScheme
C
uint16_t BLE_GAP_SetExtAdvCodingScheme(uint8_t codingScheme);
Description
Set preferred phy for extended advertising. When coded phy is used in extended advertising, there are two coding schemes can be chosen (Transmitted Symbols: S=2 or S=8). This API is provided to configure coding scheme when using coded phy in extended advertising.
Note
BLE_GAP_AdvInit and BLE_GAP_ExtAdvInit are required for this API.
Parameters
Parameter | Description |
---|---|
[in] codingScheme | The coding scheme of adverting PDUs. 0 is S=8 coding and 1 is S=2 coding. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully setting the extended advertising coding scheme. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed if adv. is not initialized. |