BLE_GAP_SetExtAdvCodingScheme

C

uint16_t BLE_GAP_SetExtAdvCodingScheme(uint8_t codingScheme);

Description

Sets the preferred PHY coding scheme for extended advertising.

Note

This function configures the coding scheme used for the PHY layer in extended advertising. There are two possible coding schemes based on the number of transmitted symbols: S=2 or S=8. Before using this function, initialize the advertising module with BLE_GAP_AdvInit or BLE_GAP_ExtAdvInit.

Parameters

ParameterDescription
[in] codingSchemeThe coding scheme for advertising PDUs: 0 for S=8 coding, 1 for S=2 coding.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sets the extended advertising coding scheme.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_COMMAND_DISALLOWEDOperation disallowed if advertising is not initialized.