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
Parameter | Description |
---|---|
[in] codingScheme | The coding scheme for advertising PDUs: 0 for S=8 coding, 1 for S=2 coding. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sets the extended advertising coding scheme. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |
MBA_RES_COMMAND_DISALLOWED | Operation disallowed if advertising is not initialized. |