![]() |
nrfxlib API 3.4.99
|
| uint8_t sdc_hci_cmd_le_set_decision_data | ( | const sdc_hci_cmd_le_set_decision_data_t * | p_params | ) |
#include <sdc_hci_cmd_le.h>
LE Set Decision Data.
The description below is extracted from Core_v6.3, Vol 4, Part E, Section 7.8.144
This command is used to set the decision data used by the specified advertising set in those advertising PDUs that contain decision data. This command may be issued at any time after an advertising set identified by the Advertising_Handle parameter has been created, regardless of whether advertising in that set is enabled or disabled. When an advertising set is created, Decision_Type_Flags shall be set to zero and there shall be zero octets of decision data.
If advertising is currently enabled for the specified advertising set, the Controller shall use the new decision data in subsequent extended advertising events for this advertising set. If an extended advertising event is in progress when this command is issued, the Controller may use the old or new decision data for that event.
If advertising is currently disabled for the specified advertising set, the decision data shall be kept by the Controller and used once advertising is enabled for that set. The decision data shall be discarded when the advertising set is removed.
The Decision_Type_Flags and Decision_Data parameters specify the decision data to be used with the advertising set.
Errors:
See Section 4.5.2 for a list of error types and descriptions.
Type Condition Error code
MC Advertising_Handle does not identify an advertising set. Unknown Advertising
Identifier (0x42)
MC Decision_Data_Length is not large enough to contain the Invalid HCI Command
subfields specified in Decision_Type_Flags. Parameters (0x12)
Event(s) generated (unless masked away):
When the HCI_LE_Set_Decision_Data command has completed, an HCI_Command_Complete event shall be generated.
| [in] | p_params | Input parameters. |
| 0 | if success. |