1.2.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.

Parameters

ParameterDescription
[in] codingSchemeThe coding scheme of adverting PDUs. 0 is S=8 coding and 1 is S=2 coding.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully setting the extended advertising coding scheme.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed if adv. is not initialized.